mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 22:29:48 +01:00
We indent with tabs, but align with spaces.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31223d73ed
commit
73938cd0a9
@ -114,7 +114,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
'demo.addTwoNumbers' => 'this:addTwoNumbers'
|
||||
);
|
||||
|
||||
$this->initialise_blog_option_info( );
|
||||
$this->initialise_blog_option_info();
|
||||
$this->methods = apply_filters('xmlrpc_methods', $this->methods);
|
||||
}
|
||||
|
||||
@ -290,7 +290,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 2.6.0
|
||||
*/
|
||||
function initialise_blog_option_info( ) {
|
||||
function initialise_blog_option_info() {
|
||||
global $wp_version;
|
||||
|
||||
$this->blog_options = array(
|
||||
@ -451,7 +451,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.getUsersBlogs' );
|
||||
|
||||
$blogs = (array) get_blogs_of_user( $user->ID );
|
||||
$struct = array( );
|
||||
$struct = array();
|
||||
|
||||
foreach ( $blogs as $blog ) {
|
||||
// Don't include blogs that aren't hosted at this site
|
||||
@ -470,7 +470,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
'xmlrpc' => site_url( 'xmlrpc.php' )
|
||||
);
|
||||
|
||||
restore_current_blog( );
|
||||
restore_current_blog();
|
||||
}
|
||||
|
||||
return $struct;
|
||||
@ -1095,7 +1095,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$posts_list = wp_get_recent_posts( $query );
|
||||
|
||||
if ( ! $posts_list )
|
||||
return array( );
|
||||
return array();
|
||||
|
||||
// holds all the posts data
|
||||
$struct = array();
|
||||
@ -1499,7 +1499,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
do_action( 'xmlrpc_call', 'wp.getKeywords' );
|
||||
|
||||
$tags = array( );
|
||||
$tags = array();
|
||||
|
||||
if ( $all_tags = get_tags() ) {
|
||||
foreach( (array) $all_tags as $tag ) {
|
||||
@ -2009,7 +2009,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
do_action('xmlrpc_call', 'wp.getCommentStatusList');
|
||||
|
||||
return get_comment_statuses( );
|
||||
return get_comment_statuses();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2068,7 +2068,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
do_action('xmlrpc_call', 'wp.getPostStatusList');
|
||||
|
||||
return get_post_statuses( );
|
||||
return get_post_statuses();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2094,7 +2094,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
do_action('xmlrpc_call', 'wp.getPageStatusList');
|
||||
|
||||
return get_page_statuses( );
|
||||
return get_page_statuses();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2118,7 +2118,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
if ( !current_user_can( 'edit_pages' ) )
|
||||
return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
|
||||
|
||||
$templates = get_page_templates( );
|
||||
$templates = get_page_templates();
|
||||
$templates['Default'] = 'default';
|
||||
|
||||
return $templates;
|
||||
@ -2159,7 +2159,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
* @return array
|
||||
*/
|
||||
function _getOptions($options) {
|
||||
$data = array( );
|
||||
$data = array();
|
||||
foreach ( $options as $option ) {
|
||||
if ( array_key_exists( $option, $this->blog_options ) ) {
|
||||
$data[$option] = $this->blog_options[$option];
|
||||
@ -3542,7 +3542,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$posts_list = wp_get_recent_posts( $query );
|
||||
|
||||
if ( !$posts_list )
|
||||
return array( );
|
||||
return array();
|
||||
|
||||
foreach ($posts_list as $entry) {
|
||||
if ( !current_user_can( 'edit_post', $entry['ID'] ) )
|
||||
|
Loading…
Reference in New Issue
Block a user