<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[20074] trunk/wp-includes/class-wp-xmlrpc-server.php: We indent with tabs, but align with spaces.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/20074">20074</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2012-03-02 18:06:30 +0000 (Fri, 02 Mar 2012)</dd>
</dl>
<h3>Log Message</h3>
<pre>We indent with tabs, but align with spaces.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesclasswpxmlrpcserverphp">trunk/wp-includes/class-wp-xmlrpc-server.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesclasswpxmlrpcserverphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/class-wp-xmlrpc-server.php (20073 => 20074)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/class-wp-xmlrpc-server.php        2012-03-02 17:59:47 UTC (rev 20073)
+++ trunk/wp-includes/class-wp-xmlrpc-server.php        2012-03-02 18:06:30 UTC (rev 20074)
</span><span class="lines">@@ -114,7 +114,7 @@
</span><span class="cx">                         'demo.addTwoNumbers' => 'this:addTwoNumbers'
</span><span class="cx">                 );
</span><span class="cx">
</span><del>-                $this->initialise_blog_option_info( );
</del><ins>+                $this->initialise_blog_option_info();
</ins><span class="cx">                 $this->methods = apply_filters('xmlrpc_methods', $this->methods);
</span><span class="cx">         }
</span><span class="cx">
</span><span class="lines">@@ -290,40 +290,40 @@
</span><span class="cx">          *
</span><span class="cx">          * @since 2.6.0
</span><span class="cx">          */
</span><del>-        function initialise_blog_option_info( ) {
</del><ins>+        function initialise_blog_option_info() {
</ins><span class="cx">                 global $wp_version;
</span><span class="cx">
</span><span class="cx">                 $this->blog_options = array(
</span><span class="cx">                         // Read only options
</span><del>-                        'software_name'                => array(
-                                'desc'                        => __( 'Software Name' ),
-                                'readonly'                => true,
-                                'value'                        => 'WordPress'
</del><ins>+                        'software_name' => array(
+                                'desc' => __( 'Software Name' ),
+                                'readonly' => true,
+                                'value' => 'WordPress'
</ins><span class="cx">                         ),
</span><del>-                        'software_version'        => array(
-                                'desc'                        => __( 'Software Version' ),
-                                'readonly'                => true,
-                                'value'                        => $wp_version
</del><ins>+                        'software_version' => array(
+                                'desc' => __( 'Software Version' ),
+                                'readonly' => true,
+                                'value' => $wp_version
</ins><span class="cx">                         ),
</span><del>-                        'blog_url'                        => array(
-                                'desc'                        => __( 'Site URL' ),
-                                'readonly'                => true,
-                                'option'                => 'siteurl'
</del><ins>+                        'blog_url' => array(
+                                'desc' => __( 'Site URL' ),
+                                'readonly' => true,
+                                'option' => 'siteurl'
</ins><span class="cx">                         ),
</span><del>-                        'image_default_link_type'        => array(
-                                'desc'                        => __( 'Image default link type' ),
-                                'readonly'                => true,
-                                'option'                => 'image_default_link_type'
</del><ins>+                        'image_default_link_type' => array(
+                                'desc' => __( 'Image default link type' ),
+                                'readonly' => true,
+                                'option' => 'image_default_link_type'
</ins><span class="cx">                         ),
</span><del>-                        'image_default_size'        => array(
-                                'desc'                        => __( 'Image default size' ),
-                                'readonly'                => true,
-                                'option'                => 'image_default_size'
</del><ins>+                        'image_default_size' => array(
+                                'desc' => __( 'Image default size' ),
+                                'readonly' => true,
+                                'option' => 'image_default_size'
</ins><span class="cx">                         ),
</span><del>-                        'image_default_align'        => array(
-                                'desc'                        => __( 'Image default align' ),
-                                'readonly'                => true,
-                                'option'                => 'image_default_align'
</del><ins>+                        'image_default_align' => array(
+                                'desc' => __( 'Image default align' ),
+                                'readonly' => true,
+                                'option' => 'image_default_align'
</ins><span class="cx">                         ),
</span><span class="cx">                         'template' => array(
</span><span class="cx">                                 'desc' => __( 'Template' ),
</span><span class="lines">@@ -337,80 +337,80 @@
</span><span class="cx">                         ),
</span><span class="cx">
</span><span class="cx">                         // Updatable options
</span><del>-                        'time_zone'                        => array(
-                                'desc'                        => __( 'Time Zone' ),
-                                'readonly'                => false,
-                                'option'                => 'gmt_offset'
</del><ins>+                        'time_zone' => array(
+                                'desc' => __( 'Time Zone' ),
+                                'readonly' => false,
+                                'option' => 'gmt_offset'
</ins><span class="cx">                         ),
</span><del>-                        'blog_title'                => array(
-                                'desc'                        => __( 'Site Title' ),
-                                'readonly'                => false,
-                                'option'                        => 'blogname'
</del><ins>+                        'blog_title' => array(
+                                'desc' => __( 'Site Title' ),
+                                'readonly' => false,
+                                'option' => 'blogname'
</ins><span class="cx">                         ),
</span><del>-                        'blog_tagline'                => array(
-                                'desc'                        => __( 'Site Tagline' ),
-                                'readonly'                => false,
-                                'option'                => 'blogdescription'
</del><ins>+                        'blog_tagline' => array(
+                                'desc' => __( 'Site Tagline' ),
+                                'readonly' => false,
+                                'option' => 'blogdescription'
</ins><span class="cx">                         ),
</span><del>-                        'date_format'                => array(
-                                'desc'                        => __( 'Date Format' ),
-                                'readonly'                => false,
-                                'option'                => 'date_format'
</del><ins>+                        'date_format' => array(
+                                'desc' => __( 'Date Format' ),
+                                'readonly' => false,
+                                'option' => 'date_format'
</ins><span class="cx">                         ),
</span><del>-                        'time_format'                => array(
-                                'desc'                        => __( 'Time Format' ),
-                                'readonly'                => false,
-                                'option'                => 'time_format'
</del><ins>+                        'time_format' => array(
+                                'desc' => __( 'Time Format' ),
+                                'readonly' => false,
+                                'option' => 'time_format'
</ins><span class="cx">                         ),
</span><del>-                        'users_can_register'        => array(
-                                'desc'                        => __( 'Allow new users to sign up' ),
-                                'readonly'                => false,
-                                'option'                => 'users_can_register'
</del><ins>+                        'users_can_register' => array(
+                                'desc' => __( 'Allow new users to sign up' ),
+                                'readonly' => false,
+                                'option' => 'users_can_register'
</ins><span class="cx">                         ),
</span><del>-                        'thumbnail_size_w'        => array(
-                                'desc'                        => __( 'Thumbnail Width' ),
-                                'readonly'                => false,
-                                'option'                => 'thumbnail_size_w'
</del><ins>+                        'thumbnail_size_w' => array(
+                                'desc' => __( 'Thumbnail Width' ),
+                                'readonly' => false,
+                                'option' => 'thumbnail_size_w'
</ins><span class="cx">                         ),
</span><del>-                        'thumbnail_size_h'        => array(
-                                'desc'                        => __( 'Thumbnail Height' ),
-                                'readonly'                => false,
-                                'option'                => 'thumbnail_size_h'
</del><ins>+                        'thumbnail_size_h' => array(
+                                'desc' => __( 'Thumbnail Height' ),
+                                'readonly' => false,
+                                'option' => 'thumbnail_size_h'
</ins><span class="cx">                         ),
</span><del>-                        'thumbnail_crop'        => array(
-                                'desc'                        => __( 'Crop thumbnail to exact dimensions' ),
-                                'readonly'                => false,
-                                'option'                => 'thumbnail_crop'
</del><ins>+                        'thumbnail_crop' => array(
+                                'desc' => __( 'Crop thumbnail to exact dimensions' ),
+                                'readonly' => false,
+                                'option' => 'thumbnail_crop'
</ins><span class="cx">                         ),
</span><del>-                        'medium_size_w'        => array(
-                                'desc'                        => __( 'Medium size image width' ),
-                                'readonly'                => false,
-                                'option'                => 'medium_size_w'
</del><ins>+                        'medium_size_w' => array(
+                                'desc' => __( 'Medium size image width' ),
+                                'readonly' => false,
+                                'option' => 'medium_size_w'
</ins><span class="cx">                         ),
</span><del>-                        'medium_size_h'        => array(
-                                'desc'                        => __( 'Medium size image height' ),
-                                'readonly'                => false,
-                                'option'                => 'medium_size_h'
</del><ins>+                        'medium_size_h' => array(
+                                'desc' => __( 'Medium size image height' ),
+                                'readonly' => false,
+                                'option' => 'medium_size_h'
</ins><span class="cx">                         ),
</span><del>-                        'large_size_w'        => array(
-                                'desc'                        => __( 'Large size image width' ),
-                                'readonly'                => false,
-                                'option'                => 'large_size_w'
</del><ins>+                        'large_size_w' => array(
+                                'desc' => __( 'Large size image width' ),
+                                'readonly' => false,
+                                'option' => 'large_size_w'
</ins><span class="cx">                         ),
</span><del>-                        'large_size_h'        => array(
-                                'desc'                        => __( 'Large size image height' ),
-                                'readonly'                => false,
-                                'option'                => 'large_size_h'
</del><ins>+                        'large_size_h' => array(
+                                'desc' => __( 'Large size image height' ),
+                                'readonly' => false,
+                                'option' => 'large_size_h'
</ins><span class="cx">                         ),
</span><del>-                        'default_comment_status'        => array(
-                                'desc'                        => __( 'Allow people to post comments on new articles' ),
-                                'readonly'                => false,
-                                'option'                => 'default_comment_status'
</del><ins>+                        'default_comment_status' => array(
+                                'desc' => __( 'Allow people to post comments on new articles' ),
+                                'readonly' => false,
+                                'option' => 'default_comment_status'
</ins><span class="cx">                         ),
</span><del>-                        'default_ping_status'        => array(
-                                'desc'                        => __( 'Allow link notifications from other blogs (pingbacks and trackbacks)' ),
-                                'readonly'                => false,
-                                'option'                => 'default_ping_status'
</del><ins>+                        'default_ping_status' => array(
+                                'desc' => __( 'Allow link notifications from other blogs (pingbacks and trackbacks)' ),
+                                'readonly' => false,
+                                'option' => 'default_ping_status'
</ins><span class="cx">                         )
</span><span class="cx">                 );
</span><span class="cx">
</span><span class="lines">@@ -451,7 +451,7 @@
</span><span class="cx">                 do_action( 'xmlrpc_call', 'wp.getUsersBlogs' );
</span><span class="cx">
</span><span class="cx">                 $blogs = (array) get_blogs_of_user( $user->ID );
</span><del>-                $struct = array( );
</del><ins>+                $struct = array();
</ins><span class="cx">
</span><span class="cx">                 foreach ( $blogs as $blog ) {
</span><span class="cx">                         // Don't include blogs that aren't hosted at this site
</span><span class="lines">@@ -470,7 +470,7 @@
</span><span class="cx">                                 'xmlrpc'                => site_url( 'xmlrpc.php' )
</span><span class="cx">                         );
</span><span class="cx">
</span><del>-                        restore_current_blog( );
</del><ins>+                        restore_current_blog();
</ins><span class="cx">                 }
</span><span class="cx">
</span><span class="cx">                 return $struct;
</span><span class="lines">@@ -1095,7 +1095,7 @@
</span><span class="cx">                 $posts_list = wp_get_recent_posts( $query );
</span><span class="cx">
</span><span class="cx">                 if ( ! $posts_list )
</span><del>-                        return array( );
</del><ins>+                        return array();
</ins><span class="cx">
</span><span class="cx">                 // holds all the posts data
</span><span class="cx">                 $struct = array();
</span><span class="lines">@@ -1499,7 +1499,7 @@
</span><span class="cx">
</span><span class="cx">                 do_action( 'xmlrpc_call', 'wp.getKeywords' );
</span><span class="cx">
</span><del>-                $tags = array( );
</del><ins>+                $tags = array();
</ins><span class="cx">
</span><span class="cx">                 if ( $all_tags = get_tags() ) {
</span><span class="cx">                         foreach( (array) $all_tags as $tag ) {
</span><span class="lines">@@ -2009,7 +2009,7 @@
</span><span class="cx">
</span><span class="cx">                 do_action('xmlrpc_call', 'wp.getCommentStatusList');
</span><span class="cx">
</span><del>-                return get_comment_statuses( );
</del><ins>+                return get_comment_statuses();
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         /**
</span><span class="lines">@@ -2068,7 +2068,7 @@
</span><span class="cx">
</span><span class="cx">                 do_action('xmlrpc_call', 'wp.getPostStatusList');
</span><span class="cx">
</span><del>-                return get_post_statuses( );
</del><ins>+                return get_post_statuses();
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         /**
</span><span class="lines">@@ -2094,7 +2094,7 @@
</span><span class="cx">
</span><span class="cx">                 do_action('xmlrpc_call', 'wp.getPageStatusList');
</span><span class="cx">
</span><del>-                return get_page_statuses( );
</del><ins>+                return get_page_statuses();
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         /**
</span><span class="lines">@@ -2118,7 +2118,7 @@
</span><span class="cx">                 if ( !current_user_can( 'edit_pages' ) )
</span><span class="cx">                         return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
</span><span class="cx">
</span><del>-                $templates = get_page_templates( );
</del><ins>+                $templates = get_page_templates();
</ins><span class="cx">                 $templates['Default'] = 'default';
</span><span class="cx">
</span><span class="cx">                 return $templates;
</span><span class="lines">@@ -2159,7 +2159,7 @@
</span><span class="cx">          * @return array
</span><span class="cx">          */
</span><span class="cx">         function _getOptions($options) {
</span><del>-                $data = array( );
</del><ins>+                $data = array();
</ins><span class="cx">                 foreach ( $options as $option ) {
</span><span class="cx">                         if ( array_key_exists( $option, $this->blog_options ) ) {
</span><span class="cx">                                 $data[$option] = $this->blog_options[$option];
</span><span class="lines">@@ -3542,7 +3542,7 @@
</span><span class="cx">                 $posts_list = wp_get_recent_posts( $query );
</span><span class="cx">
</span><span class="cx">                 if ( !$posts_list )
</span><del>-                        return array( );
</del><ins>+                        return array();
</ins><span class="cx">
</span><span class="cx">                 foreach ($posts_list as $entry) {
</span><span class="cx">                         if ( !current_user_can( 'edit_post', $entry['ID'] ) )
</span></span></pre>
</div>
</div>
</body>
</html>