<!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' =&gt; 'this:addTwoNumbers'
</span><span class="cx">                 );
</span><span class="cx"> 
</span><del>-                $this-&gt;initialise_blog_option_info( );
</del><ins>+                $this-&gt;initialise_blog_option_info();
</ins><span class="cx">                 $this-&gt;methods = apply_filters('xmlrpc_methods', $this-&gt;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-&gt;blog_options = array(
</span><span class="cx">                         // Read only options
</span><del>-                        'software_name'                =&gt; array(
-                                'desc'                        =&gt; __( 'Software Name' ),
-                                'readonly'                =&gt; true,
-                                'value'                        =&gt; 'WordPress'
</del><ins>+                        'software_name'     =&gt; array(
+                                'desc'          =&gt; __( 'Software Name' ),
+                                'readonly'      =&gt; true,
+                                'value'         =&gt; 'WordPress'
</ins><span class="cx">                         ),
</span><del>-                        'software_version'        =&gt; array(
-                                'desc'                        =&gt; __( 'Software Version' ),
-                                'readonly'                =&gt; true,
-                                'value'                        =&gt; $wp_version
</del><ins>+                        'software_version'  =&gt; array(
+                                'desc'          =&gt; __( 'Software Version' ),
+                                'readonly'      =&gt; true,
+                                'value'         =&gt; $wp_version
</ins><span class="cx">                         ),
</span><del>-                        'blog_url'                        =&gt; array(
-                                'desc'                        =&gt; __( 'Site URL' ),
-                                'readonly'                =&gt; true,
-                                'option'                =&gt; 'siteurl'
</del><ins>+                        'blog_url'          =&gt; array(
+                                'desc'          =&gt; __( 'Site URL' ),
+                                'readonly'      =&gt; true,
+                                'option'        =&gt; 'siteurl'
</ins><span class="cx">                         ),
</span><del>-                        'image_default_link_type'        =&gt; array(
-                                'desc'                        =&gt; __( 'Image default link type' ),
-                                'readonly'                =&gt; true,
-                                'option'                =&gt; 'image_default_link_type'
</del><ins>+                        'image_default_link_type' =&gt; array(
+                                'desc'          =&gt; __( 'Image default link type' ),
+                                'readonly'      =&gt; true,
+                                'option'        =&gt; 'image_default_link_type'
</ins><span class="cx">                         ),
</span><del>-                        'image_default_size'        =&gt; array(
-                                'desc'                        =&gt; __( 'Image default size' ),
-                                'readonly'                =&gt; true,
-                                'option'                =&gt; 'image_default_size'
</del><ins>+                        'image_default_size' =&gt; array(
+                                'desc'          =&gt; __( 'Image default size' ),
+                                'readonly'      =&gt; true,
+                                'option'        =&gt; 'image_default_size'
</ins><span class="cx">                         ),
</span><del>-                        'image_default_align'        =&gt; array(
-                                'desc'                        =&gt; __( 'Image default align' ),
-                                'readonly'                =&gt; true,
-                                'option'                =&gt; 'image_default_align'
</del><ins>+                        'image_default_align' =&gt; array(
+                                'desc'          =&gt; __( 'Image default align' ),
+                                'readonly'      =&gt; true,
+                                'option'        =&gt; 'image_default_align'
</ins><span class="cx">                         ),
</span><span class="cx">                         'template'          =&gt; array(
</span><span class="cx">                                 'desc'          =&gt; __( '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'                        =&gt; array(
-                                'desc'                        =&gt; __( 'Time Zone' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'gmt_offset'
</del><ins>+                        'time_zone'         =&gt; array(
+                                'desc'          =&gt; __( 'Time Zone' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'gmt_offset'
</ins><span class="cx">                         ),
</span><del>-                        'blog_title'                =&gt; array(
-                                'desc'                        =&gt; __( 'Site Title' ),
-                                'readonly'                =&gt; false,
-                                'option'                        =&gt; 'blogname'
</del><ins>+                        'blog_title'        =&gt; array(
+                                'desc'          =&gt; __( 'Site Title' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'blogname'
</ins><span class="cx">                         ),
</span><del>-                        'blog_tagline'                =&gt; array(
-                                'desc'                        =&gt; __( 'Site Tagline' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'blogdescription'
</del><ins>+                        'blog_tagline'      =&gt; array(
+                                'desc'          =&gt; __( 'Site Tagline' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'blogdescription'
</ins><span class="cx">                         ),
</span><del>-                        'date_format'                =&gt; array(
-                                'desc'                        =&gt; __( 'Date Format' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'date_format'
</del><ins>+                        'date_format'       =&gt; array(
+                                'desc'          =&gt; __( 'Date Format' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'date_format'
</ins><span class="cx">                         ),
</span><del>-                        'time_format'                =&gt; array(
-                                'desc'                        =&gt; __( 'Time Format' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'time_format'
</del><ins>+                        'time_format'       =&gt; array(
+                                'desc'          =&gt; __( 'Time Format' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'time_format'
</ins><span class="cx">                         ),
</span><del>-                        'users_can_register'        =&gt; array(
-                                'desc'                        =&gt; __( 'Allow new users to sign up' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'users_can_register'
</del><ins>+                        'users_can_register' =&gt; array(
+                                'desc'          =&gt; __( 'Allow new users to sign up' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'users_can_register'
</ins><span class="cx">                         ),
</span><del>-                        'thumbnail_size_w'        =&gt; array(
-                                'desc'                        =&gt; __( 'Thumbnail Width' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'thumbnail_size_w'
</del><ins>+                        'thumbnail_size_w'  =&gt; array(
+                                'desc'          =&gt; __( 'Thumbnail Width' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'thumbnail_size_w'
</ins><span class="cx">                         ),
</span><del>-                        'thumbnail_size_h'        =&gt; array(
-                                'desc'                        =&gt; __( 'Thumbnail Height' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'thumbnail_size_h'
</del><ins>+                        'thumbnail_size_h'  =&gt; array(
+                                'desc'          =&gt; __( 'Thumbnail Height' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'thumbnail_size_h'
</ins><span class="cx">                         ),
</span><del>-                        'thumbnail_crop'        =&gt; array(
-                                'desc'                        =&gt; __( 'Crop thumbnail to exact dimensions' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'thumbnail_crop'
</del><ins>+                        'thumbnail_crop'    =&gt; array(
+                                'desc'          =&gt; __( 'Crop thumbnail to exact dimensions' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'thumbnail_crop'
</ins><span class="cx">                         ),
</span><del>-                        'medium_size_w'        =&gt; array(
-                                'desc'                        =&gt; __( 'Medium size image width' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'medium_size_w'
</del><ins>+                        'medium_size_w'     =&gt; array(
+                                'desc'          =&gt; __( 'Medium size image width' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'medium_size_w'
</ins><span class="cx">                         ),
</span><del>-                        'medium_size_h'        =&gt; array(
-                                'desc'                        =&gt; __( 'Medium size image height' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'medium_size_h'
</del><ins>+                        'medium_size_h'     =&gt; array(
+                                'desc'          =&gt; __( 'Medium size image height' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'medium_size_h'
</ins><span class="cx">                         ),
</span><del>-                        'large_size_w'        =&gt; array(
-                                'desc'                        =&gt; __( 'Large size image width' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'large_size_w'
</del><ins>+                        'large_size_w'      =&gt; array(
+                                'desc'          =&gt; __( 'Large size image width' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'large_size_w'
</ins><span class="cx">                         ),
</span><del>-                        'large_size_h'        =&gt; array(
-                                'desc'                        =&gt; __( 'Large size image height' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'large_size_h'
</del><ins>+                        'large_size_h'      =&gt; array(
+                                'desc'          =&gt; __( 'Large size image height' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'large_size_h'
</ins><span class="cx">                         ),
</span><del>-                        'default_comment_status'        =&gt; array(
-                                'desc'                        =&gt; __( 'Allow people to post comments on new articles' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'default_comment_status'
</del><ins>+                        'default_comment_status' =&gt; array(
+                                'desc'          =&gt; __( 'Allow people to post comments on new articles' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; 'default_comment_status'
</ins><span class="cx">                         ),
</span><del>-                        'default_ping_status'        =&gt; array(
-                                'desc'                        =&gt; __( 'Allow link notifications from other blogs (pingbacks and trackbacks)' ),
-                                'readonly'                =&gt; false,
-                                'option'                =&gt; 'default_ping_status'
</del><ins>+                        'default_ping_status' =&gt; array(
+                                'desc'          =&gt; __( 'Allow link notifications from other blogs (pingbacks and trackbacks)' ),
+                                'readonly'      =&gt; false,
+                                'option'        =&gt; '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-&gt;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'                =&gt; 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-&gt;blog_options ) ) {
</span><span class="cx">                                 $data[$option] = $this-&gt;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>