<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[12752] trunk: Coding standards, space after if</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12752">12752</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-01-18 20:34:48 +0000 (Mon, 18 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Coding standards, space after if</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincustomheaderphp">trunk/wp-admin/custom-header.php</a></li>
<li><a href="#trunkwpadminimportbloggerphp">trunk/wp-admin/import/blogger.php</a></li>
<li><a href="#trunkwpadminimportblogwarephp">trunk/wp-admin/import/blogware.php</a></li>
<li><a href="#trunkwpadminimportdotclearphp">trunk/wp-admin/import/dotclear.php</a></li>
<li><a href="#trunkwpadminincludesclasswpfilesystembasephp">trunk/wp-admin/includes/class-wp-filesystem-base.php</a></li>
<li><a href="#trunkwpadminincludesclasswpfilesystemssh2php">trunk/wp-admin/includes/class-wp-filesystem-ssh2.php</a></li>
<li><a href="#trunkwpadminincludesclasswpupgraderphp">trunk/wp-admin/includes/class-wp-upgrader.php</a></li>
<li><a href="#trunkwpadminincludesfilephp">trunk/wp-admin/includes/file.php</a></li>
<li><a href="#trunkwpadminincludesmiscphp">trunk/wp-admin/includes/misc.php</a></li>
<li><a href="#trunkwpadminincludesmsphp">trunk/wp-admin/includes/ms.php</a></li>
<li><a href="#trunkwpadminincludesplugininstallphp">trunk/wp-admin/includes/plugin-install.php</a></li>
<li><a href="#trunkwpadminincludespluginphp">trunk/wp-admin/includes/plugin.php</a></li>
<li><a href="#trunkwpadminincludespostphp">trunk/wp-admin/includes/post.php</a></li>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpadminincludesthemephp">trunk/wp-admin/includes/theme.php</a></li>
<li><a href="#trunkwpadminincludesupdatephp">trunk/wp-admin/includes/update.php</a></li>
<li><a href="#trunkwpadminincludesupgradephp">trunk/wp-admin/includes/upgrade.php</a></li>
<li><a href="#trunkwpadminmseditphp">trunk/wp-admin/ms-edit.php</a></li>
<li><a href="#trunkwpadminmsoptionsphp">trunk/wp-admin/ms-options.php</a></li>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
<li><a href="#trunkwpadminmsupgradesitephp">trunk/wp-admin/ms-upgrade-site.php</a></li>
<li><a href="#trunkwpadminmsusersphp">trunk/wp-admin/ms-users.php</a></li>
<li><a href="#trunkwpadminoptionsgeneralphp">trunk/wp-admin/options-general.php</a></li>
<li><a href="#trunkwpadminoptionsphp">trunk/wp-admin/options.php</a></li>
<li><a href="#trunkwpadminplugininstallphp">trunk/wp-admin/plugin-install.php</a></li>
<li><a href="#trunkwpadminpluginsphp">trunk/wp-admin/plugins.php</a></li>
<li><a href="#trunkwpadminpressthisphp">trunk/wp-admin/press-this.php</a></li>
<li><a href="#trunkwpadminthemeeditorphp">trunk/wp-admin/theme-editor.php</a></li>
<li><a href="#trunkwpadminthemeinstallphp">trunk/wp-admin/theme-install.php</a></li>
<li><a href="#trunkwpadminthemesphp">trunk/wp-admin/themes.php</a></li>
<li><a href="#trunkwpadminupdatephp">trunk/wp-admin/update.php</a></li>
<li><a href="#trunkwpadminupgradephp">trunk/wp-admin/upgrade.php</a></li>
<li><a href="#trunkwpadminusereditphp">trunk/wp-admin/user-edit.php</a></li>
<li><a href="#trunkwpadminusernewphp">trunk/wp-admin/user-new.php</a></li>
<li><a href="#trunkwpadminusersphp">trunk/wp-admin/users.php</a></li>
<li><a href="#trunkwpappphp">trunk/wp-app.php</a></li>
<li><a href="#trunkwpsignupphp">trunk/wp-signup.php</a></li>
<li><a href="#trunkxmlrpcphp">trunk/xmlrpc.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincustomheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/custom-header.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/custom-header.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/custom-header.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -189,7 +189,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function toggle_text(force) {
</span><del>-                if(jQuery('#textcolor').val() == 'blank') {
</del><ins>+                if (jQuery('#textcolor').val() == 'blank') {
</ins><span class="cx">                         //Show text
</span><span class="cx">                         jQuery( buttons.toString() ).show();
</span><span class="cx">                         jQuery('#textcolor').val('&lt;?php echo HEADER_TEXTCOLOR; ?&gt;');
</span></span></pre></div>
<a id="trunkwpadminimportbloggerphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/import/blogger.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/import/blogger.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/import/blogger.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -781,7 +781,7 @@
</span><span class="cx"> 
</span><span class="cx">                 // First line of headers is the HTTP response code
</span><span class="cx">                 $http_response_line = array_shift($response_header_lines);
</span><del>-                if(preg_match('@^HTTP/[0-9]\.[0-9] ([0-9]{3})@',$http_response_line, $matches)) { $response_code = $matches[1]; }
</del><ins>+                if (preg_match('@^HTTP/[0-9]\.[0-9] ([0-9]{3})@',$http_response_line, $matches)) { $response_code = $matches[1]; }
</ins><span class="cx"> 
</span><span class="cx">                 // put the rest of the headers in an array
</span><span class="cx">                 $response_header_array = array();
</span><span class="lines">@@ -958,7 +958,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $this-&gt;depth++;
</span><span class="cx"> 
</span><del>-                if(!empty($this-&gt;in_content)) {
</del><ins>+                if (!empty($this-&gt;in_content)) {
</ins><span class="cx">                         $attrs_prefix = array();
</span><span class="cx"> 
</span><span class="cx">                         // resolve prefixes for attributes
</span><span class="lines">@@ -966,28 +966,28 @@
</span><span class="cx">                                 $attrs_prefix[$this-&gt;ns_to_prefix($key)] = $this-&gt;xml_escape($value);
</span><span class="cx">                         }
</span><span class="cx">                         $attrs_str = join(' ', array_map( array( &amp;$this, '_map_attrs_func' ), array_keys($attrs_prefix), array_values($attrs_prefix)));
</span><del>-                        if(strlen($attrs_str) &gt; 0) {
</del><ins>+                        if (strlen($attrs_str) &gt; 0) {
</ins><span class="cx">                                 $attrs_str = &quot; &quot; . $attrs_str;
</span><span class="cx">                         }
</span><span class="cx"> 
</span><span class="cx">                         $xmlns_str = join(' ', array_map( array( &amp;$this, '_map_xmlns_func' ), array_keys($this-&gt;ns_contexts[0]), array_values($this-&gt;ns_contexts[0])));
</span><del>-                        if(strlen($xmlns_str) &gt; 0) {
</del><ins>+                        if (strlen($xmlns_str) &gt; 0) {
</ins><span class="cx">                                 $xmlns_str = &quot; &quot; . $xmlns_str;
</span><span class="cx">                         }
</span><span class="cx"> 
</span><span class="cx">                         // handle self-closing tags (case: a new child found right-away, no text node)
</span><del>-                        if(count($this-&gt;in_content) == 2) {
</del><ins>+                        if (count($this-&gt;in_content) == 2) {
</ins><span class="cx">                                 array_push($this-&gt;in_content, &quot;&gt;&quot;);
</span><span class="cx">                         }
</span><span class="cx"> 
</span><span class="cx">                         array_push($this-&gt;in_content, &quot;&lt;&quot;. $this-&gt;ns_to_prefix($name) .&quot;{$xmlns_str}{$attrs_str}&quot;);
</span><del>-                } else if(in_array($tag, $this-&gt;ATOM_CONTENT_ELEMENTS) || in_array($tag, $this-&gt;ATOM_SIMPLE_ELEMENTS)) {
</del><ins>+                } else if (in_array($tag, $this-&gt;ATOM_CONTENT_ELEMENTS) || in_array($tag, $this-&gt;ATOM_SIMPLE_ELEMENTS)) {
</ins><span class="cx">                         $this-&gt;in_content = array();
</span><span class="cx">                         $this-&gt;is_xhtml = $attrs['type'] == 'xhtml';
</span><span class="cx">                         array_push($this-&gt;in_content, array($tag,$this-&gt;depth));
</span><del>-                } else if($tag == 'link') {
</del><ins>+                } else if ($tag == 'link') {
</ins><span class="cx">                         array_push($this-&gt;entry-&gt;links, $attrs);
</span><del>-                } else if($tag == 'category') {
</del><ins>+                } else if ($tag == 'category') {
</ins><span class="cx">                         array_push($this-&gt;entry-&gt;categories, $attrs['term']);
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -998,11 +998,11 @@
</span><span class="cx"> 
</span><span class="cx">                 $tag = array_pop(split(&quot;:&quot;, $name));
</span><span class="cx"> 
</span><del>-                if(!empty($this-&gt;in_content)) {
-                        if($this-&gt;in_content[0][0] == $tag &amp;&amp;
</del><ins>+                if (!empty($this-&gt;in_content)) {
+                        if ($this-&gt;in_content[0][0] == $tag &amp;&amp;
</ins><span class="cx">                         $this-&gt;in_content[0][1] == $this-&gt;depth) {
</span><span class="cx">                                 array_shift($this-&gt;in_content);
</span><del>-                                if($this-&gt;is_xhtml) {
</del><ins>+                                if ($this-&gt;is_xhtml) {
</ins><span class="cx">                                         $this-&gt;in_content = array_slice($this-&gt;in_content, 2, count($this-&gt;in_content)-3);
</span><span class="cx">                                 }
</span><span class="cx">                                 $this-&gt;entry-&gt;$tag = join('',$this-&gt;in_content);
</span><span class="lines">@@ -1035,7 +1035,7 @@
</span><span class="cx"> 
</span><span class="cx">         function cdata($parser, $data) {
</span><span class="cx">                 #print str_repeat(&quot; &quot;, $this-&gt;depth * $this-&gt;indent) . &quot;data: #&quot; . $data . &quot;#\n&quot;;
</span><del>-                if(!empty($this-&gt;in_content)) {
</del><ins>+                if (!empty($this-&gt;in_content)) {
</ins><span class="cx">                         // handle self-closing tags (case: text node found, need to close element started)
</span><span class="cx">                         if (strpos($this-&gt;in_content[count($this-&gt;in_content)-1], '&lt;') !== false) {
</span><span class="cx">                                 array_push($this-&gt;in_content, &quot;&gt;&quot;);
</span><span class="lines">@@ -1053,11 +1053,11 @@
</span><span class="cx">                 $components = split(&quot;:&quot;, $qname);
</span><span class="cx">                 $name = array_pop($components);
</span><span class="cx"> 
</span><del>-                if(!empty($components)) {
</del><ins>+                if (!empty($components)) {
</ins><span class="cx">                         $ns = join(&quot;:&quot;,$components);
</span><del>-                        foreach($this-&gt;ns_contexts as $context) {
-                                foreach($context as $mapping) {
-                                        if($mapping[1] == $ns &amp;&amp; strlen($mapping[0]) &gt; 0) {
</del><ins>+                        foreach ($this-&gt;ns_contexts as $context) {
+                                foreach ($context as $mapping) {
+                                        if ($mapping[1] == $ns &amp;&amp; strlen($mapping[0]) &gt; 0) {
</ins><span class="cx">                                                 return &quot;$mapping[0]:$name&quot;;
</span><span class="cx">                                         }
</span><span class="cx">                                 }
</span></span></pre></div>
<a id="trunkwpadminimportblogwarephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/import/blogware.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/import/blogware.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/import/blogware.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">                         flush();
</span><span class="cx">                         preg_match('|&lt;item type=\&quot;(.*?)\&quot;&gt;|is', $post, $post_type);
</span><span class="cx">                         $post_type = $post_type[1];
</span><del>-                        if($post_type == &quot;photo&quot;) {
</del><ins>+                        if ($post_type == &quot;photo&quot;) {
</ins><span class="cx">                                 preg_match('|&lt;photoFilename&gt;(.*?)&lt;/photoFilename&gt;|is', $post, $post_title);
</span><span class="cx">                         } else {
</span><span class="cx">                                 preg_match('|&lt;title&gt;(.*?)&lt;/title&gt;|is', $post, $post_title);
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx">                                 $cat_index++;
</span><span class="cx">                         }
</span><span class="cx"> 
</span><del>-                        if(strcasecmp($post_type, &quot;photo&quot;) === 0) {
</del><ins>+                        if (strcasecmp($post_type, &quot;photo&quot;) === 0) {
</ins><span class="cx">                                 preg_match('|&lt;sizedPhotoUrl&gt;(.*?)&lt;/sizedPhotoUrl&gt;|is', $post, $post_content);
</span><span class="cx">                                 $post_content = '&lt;img src=&quot;'.trim($post_content[1]).'&quot; /&gt;';
</span><span class="cx">                                 $post_content = $this-&gt;unhtmlentities($post_content);
</span><span class="lines">@@ -117,7 +117,7 @@
</span><span class="cx">                                         echo '&lt;/li&gt;';
</span><span class="cx">                                         break;
</span><span class="cx">                                 }
</span><del>-                                if(0 != count($categories))
</del><ins>+                                if (0 != count($categories))
</ins><span class="cx">                                         wp_create_categories($categories, $post_id);
</span><span class="cx">                         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminimportdotclearphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/import/dotclear.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/import/dotclear.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/import/dotclear.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -12,8 +12,7 @@
</span><span class="cx">         Add These Functions to make our lives easier
</span><span class="cx"> **/
</span><span class="cx"> 
</span><del>-if(!function_exists('get_comment_count'))
-{
</del><ins>+if (!function_exists('get_comment_count')) {
</ins><span class="cx">         /**
</span><span class="cx">          * Get the comment count for posts.
</span><span class="cx">          *
</span><span class="lines">@@ -30,8 +29,7 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if(!function_exists('link_exists'))
-{
</del><ins>+if (!function_exists('link_exists')) {
</ins><span class="cx">         /**
</span><span class="cx">          * Check whether link already exists.
</span><span class="cx">          *
</span><span class="lines">@@ -180,11 +178,9 @@
</span><span class="cx">                 $count = 0;
</span><span class="cx">                 $dccat2wpcat = array();
</span><span class="cx">                 // Do the Magic
</span><del>-                if(is_array($categories))
-                {
</del><ins>+                if (is_array($categories)) {
</ins><span class="cx">                         echo '&lt;p&gt;'.__('Importing Categories...').'&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;';
</span><del>-                        foreach ($categories as $category)
-                        {
</del><ins>+                        foreach ($categories as $category) {
</ins><span class="cx">                                 $count++;
</span><span class="cx">                                 extract($category);
</span><span class="cx"> 
</span><span class="lines">@@ -193,12 +189,9 @@
</span><span class="cx">                                 $title = $wpdb-&gt;escape(csc ($cat_libelle));
</span><span class="cx">                                 $desc = $wpdb-&gt;escape(csc ($cat_desc));
</span><span class="cx"> 
</span><del>-                                if($cinfo = category_exists($name))
-                                {
</del><ins>+                                if ($cinfo = category_exists($name)) {
</ins><span class="cx">                                         $ret_id = wp_insert_category(array('cat_ID' =&gt; $cinfo, 'category_nicename' =&gt; $name, 'cat_name' =&gt; $title, 'category_description' =&gt; $desc));
</span><del>-                                }
-                                else
-                                {
</del><ins>+                                } else {
</ins><span class="cx">                                         $ret_id = wp_insert_category(array('category_nicename' =&gt; $name, 'cat_name' =&gt; $title, 'category_description' =&gt; $desc));
</span><span class="cx">                                 }
</span><span class="cx">                                 $dccat2wpcat[$id] = $ret_id;
</span><span class="lines">@@ -213,19 +206,16 @@
</span><span class="cx">                 return false;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function users2wp($users='')
-        {
</del><ins>+        function users2wp($users='') {
</ins><span class="cx">                 // General Housekeeping
</span><span class="cx">                 global $wpdb;
</span><span class="cx">                 $count = 0;
</span><span class="cx">                 $dcid2wpid = array();
</span><span class="cx"> 
</span><span class="cx">                 // Midnight Mojo
</span><del>-                if(is_array($users))
-                {
</del><ins>+                if (is_array($users)) {
</ins><span class="cx">                         echo '&lt;p&gt;'.__('Importing Users...').'&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;';
</span><del>-                        foreach($users as $user)
-                        {
</del><ins>+                        foreach ($users as $user) {
</ins><span class="cx">                                 $count++;
</span><span class="cx">                                 extract($user);
</span><span class="cx"> 
</span><span class="lines">@@ -233,8 +223,7 @@
</span><span class="cx">                                 $name = $wpdb-&gt;escape(csc ($name));
</span><span class="cx">                                 $RealName = $wpdb-&gt;escape(csc ($user_pseudo));
</span><span class="cx"> 
</span><del>-                                if($uinfo = get_userdatabylogin($name))
-                                {
</del><ins>+                                if ($uinfo = get_userdatabylogin($name)) {
</ins><span class="cx"> 
</span><span class="cx">                                         $ret_id = wp_insert_user(array(
</span><span class="cx">                                                                 'ID'                =&gt; $uinfo-&gt;ID,
</span><span class="lines">@@ -244,9 +233,7 @@
</span><span class="cx">                                                                 'user_url'        =&gt; 'http://',
</span><span class="cx">                                                                 'display_name'        =&gt; $Realname)
</span><span class="cx">                                                                 );
</span><del>-                                }
-                                else
-                                {
</del><ins>+                                } else {
</ins><span class="cx">                                         $ret_id = wp_insert_user(array(
</span><span class="cx">                                                                 'user_login'        =&gt; $user_id,
</span><span class="cx">                                                                 'user_nicename'        =&gt; csc ($user_pseudo),
</span><span class="lines">@@ -262,12 +249,12 @@
</span><span class="cx">                                 // Update Usermeta Data
</span><span class="cx">                                 $user = new WP_User($ret_id);
</span><span class="cx">                                 $wp_perms = $user_level + 1;
</span><del>-                                if(10 == $wp_perms) { $user-&gt;set_role('administrator'); }
-                                else if(9  == $wp_perms) { $user-&gt;set_role('editor'); }
-                                else if(5  &lt;= $wp_perms) { $user-&gt;set_role('editor'); }
-                                else if(4  &lt;= $wp_perms) { $user-&gt;set_role('author'); }
-                                else if(3  &lt;= $wp_perms) { $user-&gt;set_role('contributor'); }
-                                else if(2  &lt;= $wp_perms) { $user-&gt;set_role('contributor'); }
</del><ins>+                                if (10 == $wp_perms) { $user-&gt;set_role('administrator'); }
+                                else if (9  == $wp_perms) { $user-&gt;set_role('editor'); }
+                                else if (5  &lt;= $wp_perms) { $user-&gt;set_role('editor'); }
+                                else if (4  &lt;= $wp_perms) { $user-&gt;set_role('author'); }
+                                else if (3  &lt;= $wp_perms) { $user-&gt;set_role('contributor'); }
+                                else if (2  &lt;= $wp_perms) { $user-&gt;set_role('contributor'); }
</ins><span class="cx">                                 else                     { $user-&gt;set_role('subscriber'); }
</span><span class="cx"> 
</span><span class="cx">                                 update_usermeta( $ret_id, 'wp_user_level', $wp_perms);
</span><span class="lines">@@ -289,8 +276,7 @@
</span><span class="cx"> 
</span><span class="cx">         }// End function user2wp()
</span><span class="cx"> 
</span><del>-        function posts2wp($posts='')
-        {
</del><ins>+        function posts2wp($posts='') {
</ins><span class="cx">                 // General Housekeeping
</span><span class="cx">                 global $wpdb;
</span><span class="cx">                 $count = 0;
</span><span class="lines">@@ -298,8 +284,7 @@
</span><span class="cx">                 $cats = array();
</span><span class="cx"> 
</span><span class="cx">                 // Do the Magic
</span><del>-                if(is_array($posts))
-                {
</del><ins>+                if (is_array($posts)) {
</ins><span class="cx">                         echo '&lt;p&gt;'.__('Importing Posts...').'&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;';
</span><span class="cx">                         foreach($posts as $post)
</span><span class="cx">                         {
</span><span class="lines">@@ -327,8 +312,7 @@
</span><span class="cx"> 
</span><span class="cx">                                 // Import Post data into WordPress
</span><span class="cx"> 
</span><del>-                                if($pinfo = post_exists($Title,$post_content))
-                                {
</del><ins>+                                if ($pinfo = post_exists($Title,$post_content)) {
</ins><span class="cx">                                         $ret_id = wp_insert_post(array(
</span><span class="cx">                                                         'ID'                        =&gt; $pinfo,
</span><span class="cx">                                                         'post_author'                =&gt; $authorid,
</span><span class="lines">@@ -347,9 +331,7 @@
</span><span class="cx">                                                         );
</span><span class="cx">                                         if ( is_wp_error( $ret_id ) )
</span><span class="cx">                                                 return $ret_id;
</span><del>-                                }
-                                else
-                                {
</del><ins>+                                } else {
</ins><span class="cx">                                         $ret_id = wp_insert_post(array(
</span><span class="cx">                                                         'post_author'                =&gt; $authorid,
</span><span class="cx">                                                         'post_date'                =&gt; $post_dt,
</span><span class="lines">@@ -375,9 +357,9 @@
</span><span class="cx">                                 $category1 = get_category_by_slug($post_cat_name);
</span><span class="cx">                                 $category1 = $category1-&gt;term_id;
</span><span class="cx"> 
</span><del>-                                if($cat1 = $category1) { $cats[1] = $cat1; }
</del><ins>+                                if ($cat1 = $category1) { $cats[1] = $cat1; }
</ins><span class="cx"> 
</span><del>-                                if(!empty($cats)) { wp_set_post_categories($ret_id, $cats); }
</del><ins>+                                if (!empty($cats)) { wp_set_post_categories($ret_id, $cats); }
</ins><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="cx">                 // Store ID translation for later use
</span><span class="lines">@@ -387,8 +369,7 @@
</span><span class="cx">                 return true;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function comments2wp($comments='')
-        {
</del><ins>+        function comments2wp($comments='') {
</ins><span class="cx">                 // General Housekeeping
</span><span class="cx">                 global $wpdb;
</span><span class="cx">                 $count = 0;
</span><span class="lines">@@ -396,11 +377,9 @@
</span><span class="cx">                 $postarr = get_option('dcposts2wpposts');
</span><span class="cx"> 
</span><span class="cx">                 // Magic Mojo
</span><del>-                if(is_array($comments))
-                {
</del><ins>+                if (is_array($comments)) {
</ins><span class="cx">                         echo '&lt;p&gt;'.__('Importing Comments...').'&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;';
</span><del>-                        foreach($comments as $comment)
-                        {
</del><ins>+                        foreach ($comments as $comment) {
</ins><span class="cx">                                 $count++;
</span><span class="cx">                                 extract($comment);
</span><span class="cx"> 
</span><span class="lines">@@ -449,18 +428,15 @@
</span><span class="cx">                 return false;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function links2wp($links='')
-        {
</del><ins>+        function links2wp($links='') {
</ins><span class="cx">                 // General Housekeeping
</span><span class="cx">                 global $wpdb;
</span><span class="cx">                 $count = 0;
</span><span class="cx"> 
</span><span class="cx">                 // Deal with the links
</span><del>-                if(is_array($links))
-                {
</del><ins>+                if (is_array($links)) {
</ins><span class="cx">                         echo '&lt;p&gt;'.__('Importing Links...').'&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;';
</span><del>-                        foreach($links as $link)
-                        {
</del><ins>+                        foreach ($links as $link) {
</ins><span class="cx">                                 $count++;
</span><span class="cx">                                 extract($link);
</span><span class="cx"> 
</span><span class="lines">@@ -475,7 +451,7 @@
</span><span class="cx">                                         $linkname = $wpdb-&gt;escape(csc ($label));
</span><span class="cx">                                         $description = $wpdb-&gt;escape(csc ($title));
</span><span class="cx"> 
</span><del>-                                        if($linfo = link_exists($linkname)) {
</del><ins>+                                        if ($linfo = link_exists($linkname)) {
</ins><span class="cx">                                                 $ret_id = wp_insert_link(array(
</span><span class="cx">                                                                         'link_id'                =&gt; $linfo,
</span><span class="cx">                                                                         'link_url'                =&gt; $href,
</span><span class="lines">@@ -504,8 +480,7 @@
</span><span class="cx">                 return false;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function import_categories()
-        {
</del><ins>+        function import_categories() {
</ins><span class="cx">                 // Category Import
</span><span class="cx">                 $cats = $this-&gt;get_dc_cats();
</span><span class="cx">                 $this-&gt;cat2wp($cats);
</span><span class="lines">@@ -520,8 +495,7 @@
</span><span class="cx"> 
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function import_users()
-        {
</del><ins>+        function import_users() {
</ins><span class="cx">                 // User Import
</span><span class="cx">                 $users = $this-&gt;get_dc_users();
</span><span class="cx">                 $this-&gt;users2wp($users);
</span><span class="lines">@@ -532,8 +506,7 @@
</span><span class="cx">                 echo '&lt;/form&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function import_posts()
-        {
</del><ins>+        function import_posts() {
</ins><span class="cx">                 // Post Import
</span><span class="cx">                 $posts = $this-&gt;get_dc_posts();
</span><span class="cx">                 $result = $this-&gt;posts2wp($posts);
</span><span class="lines">@@ -546,8 +519,7 @@
</span><span class="cx">                 echo '&lt;/form&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function import_comments()
-        {
</del><ins>+        function import_comments() {
</ins><span class="cx">                 // Comment Import
</span><span class="cx">                 $comments = $this-&gt;get_dc_comments();
</span><span class="cx">                 $this-&gt;comments2wp($comments);
</span><span class="lines">@@ -571,8 +543,7 @@
</span><span class="cx">                 echo '&lt;/form&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function cleanup_dcimport()
-        {
</del><ins>+        function cleanup_dcimport() {
</ins><span class="cx">                 delete_option('dcdbprefix');
</span><span class="cx">                 delete_option('dc_cats');
</span><span class="cx">                 delete_option('dcid2wpid');
</span><span class="lines">@@ -589,8 +560,7 @@
</span><span class="cx">                 $this-&gt;tips();
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function tips()
-        {
</del><ins>+        function tips() {
</ins><span class="cx">                 echo '&lt;p&gt;'.__('Welcome to WordPress.  We hope (and expect!) that you will find this platform incredibly rewarding!  As a new WordPress user coming from DotClear, there are some things that we would like to point out.  Hopefully, they will help your transition go as smoothly as possible.').'&lt;/p&gt;';
</span><span class="cx">                 echo '&lt;h3&gt;'.__('Users').'&lt;/h3&gt;';
</span><span class="cx">                 echo '&lt;p&gt;'.sprintf(__('You have already setup WordPress and have been assigned an administrative login and password.  Forget it.  You didn&amp;#8217;t have that login in DotClear, why should you have it here?  Instead we have taken care to import all of your users into our system.  Unfortunately there is one downside.  Because both WordPress and DotClear uses a strong encryption hash with passwords, it is impossible to decrypt it and we are forced to assign temporary passwords to all your users.  &lt;strong&gt;Every user has the same username, but their passwords are reset to password123.&lt;/strong&gt;  So &lt;a href=&quot;%1$s&quot;&gt;Log in&lt;/a&gt; and change it.'), '/wp-login.php').'&lt;/p&gt;';
</span><span class="lines">@@ -608,8 +578,7 @@
</span><span class="cx">                 echo '&lt;p&gt;'.sprintf(__('That&amp;#8217;s it! What are you waiting for? Go &lt;a href=&quot;%1$s&quot;&gt;log in&lt;/a&gt;!'), '../wp-login.php').'&lt;/p&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function db_form()
-        {
</del><ins>+        function db_form() {
</ins><span class="cx">                 echo '&lt;table class=&quot;form-table&quot;&gt;';
</span><span class="cx">                 printf('&lt;tr&gt;&lt;th&gt;&lt;label for=&quot;dbuser&quot;&gt;%s&lt;/label&gt;&lt;/th&gt;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;dbuser&quot; id=&quot;dbuser&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;', __('DotClear Database User:'));
</span><span class="cx">                 printf('&lt;tr&gt;&lt;th&gt;&lt;label for=&quot;dbpass&quot;&gt;%s&lt;/label&gt;&lt;/th&gt;&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;dbpass&quot; id=&quot;dbpass&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;', __('DotClear Database Password:'));
</span><span class="lines">@@ -620,8 +589,7 @@
</span><span class="cx">                 echo '&lt;/table&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function dispatch()
-        {
</del><ins>+        function dispatch() {
</ins><span class="cx"> 
</span><span class="cx">                 if (empty ($_GET['step']))
</span><span class="cx">                         $step = 0;
</span><span class="lines">@@ -629,44 +597,37 @@
</span><span class="cx">                         $step = (int) $_GET['step'];
</span><span class="cx">                 $this-&gt;header();
</span><span class="cx"> 
</span><del>-                if ( $step &gt; 0 )
-                {
</del><ins>+                if ( $step &gt; 0 ) {
</ins><span class="cx">                         check_admin_referer('import-dotclear');
</span><span class="cx"> 
</span><del>-                        if($_POST['dbuser'])
-                        {
</del><ins>+                        if ($_POST['dbuser']) {
</ins><span class="cx">                                 if(get_option('dcuser'))
</span><span class="cx">                                         delete_option('dcuser');
</span><span class="cx">                                 add_option('dcuser', sanitize_user($_POST['dbuser'], true));
</span><span class="cx">                         }
</span><del>-                        if($_POST['dbpass'])
-                        {
</del><ins>+                        if ($_POST['dbpass']) {
</ins><span class="cx">                                 if(get_option('dcpass'))
</span><span class="cx">                                         delete_option('dcpass');
</span><span class="cx">                                 add_option('dcpass', sanitize_user($_POST['dbpass'], true));
</span><span class="cx">                         }
</span><span class="cx"> 
</span><del>-                        if($_POST['dbname'])
-                        {
-                                if(get_option('dcname'))
</del><ins>+                        if ($_POST['dbname']) {
+                                if (get_option('dcname'))
</ins><span class="cx">                                         delete_option('dcname');
</span><span class="cx">                                 add_option('dcname', sanitize_user($_POST['dbname'], true));
</span><span class="cx">                         }
</span><del>-                        if($_POST['dbhost'])
-                        {
</del><ins>+                        if ($_POST['dbhost']) {
</ins><span class="cx">                                 if(get_option('dchost'))
</span><span class="cx">                                         delete_option('dchost');
</span><span class="cx">                                 add_option('dchost', sanitize_user($_POST['dbhost'], true));
</span><span class="cx">                         }
</span><del>-                        if($_POST['dccharset'])
-                        {
-                                if(get_option('dccharset'))
</del><ins>+                        if ($_POST['dccharset']) {
+                                if (get_option('dccharset'))
</ins><span class="cx">                                         delete_option('dccharset');
</span><span class="cx">                                 add_option('dccharset', sanitize_user($_POST['dccharset'], true));
</span><span class="cx">                         }
</span><del>-                        if($_POST['dbprefix'])
-                        {
-                                if(get_option('dcdbprefix'))
</del><ins>+                        if ($_POST['dbprefix']) {
+                                if (get_option('dcdbprefix'))
</ins><span class="cx">                                         delete_option('dcdbprefix');
</span><span class="cx">                                 add_option('dcdbprefix', sanitize_user($_POST['dbprefix'], true));
</span><span class="cx">                         }
</span><span class="lines">@@ -674,8 +635,7 @@
</span><span class="cx"> 
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                switch ($step)
-                {
</del><ins>+                switch ($step) {
</ins><span class="cx">                         default:
</span><span class="cx">                         case 0 :
</span><span class="cx">                                 $this-&gt;greet();
</span><span class="lines">@@ -705,8 +665,7 @@
</span><span class="cx">                 $this-&gt;footer();
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function Dotclear_Import()
-        {
</del><ins>+        function Dotclear_Import() {
</ins><span class="cx">                 // Nothing.
</span><span class="cx">         }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpfilesystembasephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-filesystem-base.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-filesystem-base.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/class-wp-filesystem-base.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">                         $this-&gt;cache[ $folder ] = $folder;
</span><span class="cx">                         return $folder;
</span><span class="cx">                 }
</span><del>-                if( $return = $this-&gt;search_for_folder($folder) )
</del><ins>+                if ( $return = $this-&gt;search_for_folder($folder) )
</ins><span class="cx">                         $this-&gt;cache[ $folder ] = $return;
</span><span class="cx">                 return $return;
</span><span class="cx">         }
</span><span class="lines">@@ -288,8 +288,8 @@
</span><span class="cx">                 $legal =  array('', 'w', 'r', 'x', '-');
</span><span class="cx">                 $attarray = preg_split('//', $mode);
</span><span class="cx"> 
</span><del>-                for($i=0; $i &lt; count($attarray); $i++)
-                   if($key = array_search($attarray[$i], $legal))
</del><ins>+                for ($i=0; $i &lt; count($attarray); $i++)
+                   if ($key = array_search($attarray[$i], $legal))
</ins><span class="cx">                            $realmode .= $legal[$key];
</span><span class="cx"> 
</span><span class="cx">                 $mode = str_pad($realmode, 9, '-');
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpfilesystemssh2php"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-filesystem-ssh2.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-filesystem-ssh2.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/class-wp-filesystem-ssh2.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -171,7 +171,7 @@
</span><span class="cx"> 
</span><span class="cx">         function cwd() {
</span><span class="cx">                 $cwd = $this-&gt;run_command('pwd');
</span><del>-                if( $cwd )
</del><ins>+                if ( $cwd )
</ins><span class="cx">                         $cwd = trailingslashit($cwd);
</span><span class="cx">                 return $cwd;
</span><span class="cx">         }
</span><span class="lines">@@ -239,10 +239,10 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function copy($source, $destination, $overwrite = false ) {
</span><del>-                if( ! $overwrite &amp;&amp; $this-&gt;exists($destination) )
</del><ins>+                if ( ! $overwrite &amp;&amp; $this-&gt;exists($destination) )
</ins><span class="cx">                         return false;
</span><span class="cx">                 $content = $this-&gt;get_contents($source);
</span><del>-                if( false === $content)
</del><ins>+                if ( false === $content)
</ins><span class="cx">                         return false;
</span><span class="cx">                 return $this-&gt;put_contents($destination, $content);
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpupgraderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-upgrader.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-upgrader.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/class-wp-upgrader.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -912,7 +912,7 @@
</span><span class="cx">                         return;
</span><span class="cx"> 
</span><span class="cx">                 $this-&gt;plugin = $this-&gt;upgrader-&gt;plugin_info();
</span><del>-                if( !empty($this-&gt;plugin) &amp;&amp; !is_wp_error($this-&gt;result) &amp;&amp; $this-&gt;plugin_active ){
</del><ins>+                if ( !empty($this-&gt;plugin) &amp;&amp; !is_wp_error($this-&gt;result) &amp;&amp; $this-&gt;plugin_active ){
</ins><span class="cx">                         show_message(__('Reactivating the plugin&amp;#8230;'));
</span><span class="cx">                         echo '&lt;iframe style=&quot;border:0;overflow:hidden&quot; width=&quot;100%&quot; height=&quot;170px&quot; src=&quot;' . wp_nonce_url('update.php?action=activate-plugin&amp;plugin=' . $this-&gt;plugin, 'activate-plugin_' . $this-&gt;plugin) .'&quot;&gt;&lt;/iframe&gt;';
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkwpadminincludesfilephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/file.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/file.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/file.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -109,10 +109,10 @@
</span><span class="cx">  * @return bool|array False on failure, Else array of files
</span><span class="cx">  */
</span><span class="cx"> function list_files( $folder = '', $levels = 100 ) {
</span><del>-        if( empty($folder) )
</del><ins>+        if ( empty($folder) )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><del>-        if( ! $levels )
</del><ins>+        if ( ! $levels )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $files = array();
</span><span class="lines">@@ -122,7 +122,7 @@
</span><span class="cx">                                 continue;
</span><span class="cx">                         if ( is_dir( $folder . '/' . $file ) ) {
</span><span class="cx">                                 $files2 = list_files( $folder . '/' . $file, $levels - 1);
</span><del>-                                if( $files2 )
</del><ins>+                                if ( $files2 )
</ins><span class="cx">                                         $files = array_merge($files, $files2 );
</span><span class="cx">                                 else
</span><span class="cx">                                         $files[] = $folder . '/' . $file . '/';
</span><span class="lines">@@ -621,7 +621,7 @@
</span><span class="cx"> 
</span><span class="cx">         if ( ! class_exists(&quot;WP_Filesystem_$method&quot;) ) {
</span><span class="cx">                 $abstraction_file = apply_filters('filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method);
</span><del>-                if( ! file_exists($abstraction_file) )
</del><ins>+                if ( ! file_exists($abstraction_file) )
</ins><span class="cx">                         return;
</span><span class="cx"> 
</span><span class="cx">                 require_once($abstraction_file);
</span><span class="lines">@@ -670,7 +670,7 @@
</span><span class="cx"> function get_filesystem_method($args = array(), $context = false) {
</span><span class="cx">         $method = defined('FS_METHOD') ? FS_METHOD : false; //Please ensure that this is either 'direct', 'ssh', 'ftpext' or 'ftpsockets'
</span><span class="cx"> 
</span><del>-        if( ! $method &amp;&amp; function_exists('getmyuid') &amp;&amp; function_exists('fileowner') ){
</del><ins>+        if ( ! $method &amp;&amp; function_exists('getmyuid') &amp;&amp; function_exists('fileowner') ){
</ins><span class="cx">                 if ( !$context )
</span><span class="cx">                         $context = WP_CONTENT_DIR;
</span><span class="cx">                 $context = trailingslashit($context);
</span><span class="lines">@@ -807,12 +807,12 @@
</span><span class="cx"> &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx"> &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx"> &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;hostname&quot;&gt;&lt;?php _e('Hostname') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><del>-&lt;td&gt;&lt;input name=&quot;hostname&quot; type=&quot;text&quot; id=&quot;hostname&quot; value=&quot;&lt;?php echo esc_attr($hostname); if ( !empty($port) ) echo &quot;:$port&quot;; ?&gt;&quot;&lt;?php if( defined('FTP_HOST') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;&lt;/td&gt;
</del><ins>+&lt;td&gt;&lt;input name=&quot;hostname&quot; type=&quot;text&quot; id=&quot;hostname&quot; value=&quot;&lt;?php echo esc_attr($hostname); if ( !empty($port) ) echo &quot;:$port&quot;; ?&gt;&quot;&lt;?php if ( defined('FTP_HOST') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;&lt;/td&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx"> &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;username&quot;&gt;&lt;?php _e('Username') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><del>-&lt;td&gt;&lt;input name=&quot;username&quot; type=&quot;text&quot; id=&quot;username&quot; value=&quot;&lt;?php echo esc_attr($username) ?&gt;&quot;&lt;?php if( defined('FTP_USER') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;&lt;/td&gt;
</del><ins>+&lt;td&gt;&lt;input name=&quot;username&quot; type=&quot;text&quot; id=&quot;username&quot; value=&quot;&lt;?php echo esc_attr($username) ?&gt;&quot;&lt;?php if ( defined('FTP_USER') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;&lt;/td&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tr valign=&quot;top&quot;&gt;
</span><span class="lines">@@ -827,7 +827,7 @@
</span><span class="cx"> &lt;label for=&quot;public_key&quot;&gt;&lt;?php _e('Public Key:') ?&gt;&lt;/label &gt;&lt;br /&gt;
</span><span class="cx"> &lt;label for=&quot;private_key&quot;&gt;&lt;?php _e('Private Key:') ?&gt;&lt;/label&gt;
</span><span class="cx"> &lt;/div&gt;&lt;/th&gt;
</span><del>-&lt;td&gt;&lt;br /&gt;&lt;input name=&quot;public_key&quot; type=&quot;text&quot; id=&quot;public_key&quot; value=&quot;&lt;?php echo esc_attr($public_key) ?&gt;&quot;&lt;?php if( defined('FTP_PUBKEY') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;&lt;br /&gt;&lt;input name=&quot;private_key&quot; type=&quot;text&quot; id=&quot;private_key&quot; value=&quot;&lt;?php echo esc_attr($private_key) ?&gt;&quot;&lt;?php if( defined('FTP_PRIKEY') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;
</del><ins>+&lt;td&gt;&lt;br /&gt;&lt;input name=&quot;public_key&quot; type=&quot;text&quot; id=&quot;public_key&quot; value=&quot;&lt;?php echo esc_attr($public_key) ?&gt;&quot;&lt;?php if ( defined('FTP_PUBKEY') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;&lt;br /&gt;&lt;input name=&quot;private_key&quot; type=&quot;text&quot; id=&quot;private_key&quot; value=&quot;&lt;?php echo esc_attr($private_key) ?&gt;&quot;&lt;?php if ( defined('FTP_PRIKEY') ) echo ' disabled=&quot;disabled&quot;' ?&gt; size=&quot;40&quot; /&gt;
</ins><span class="cx"> &lt;div&gt;&lt;?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?&gt;&lt;/div&gt;&lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesmiscphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/misc.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/misc.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/misc.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -266,8 +266,8 @@
</span><span class="cx">  * @param unknown_type $message
</span><span class="cx">  */
</span><span class="cx"> function show_message($message) {
</span><del>-        if( is_wp_error($message) ){
-                if( $message-&gt;get_error_data() )
</del><ins>+        if ( is_wp_error($message) ){
+                if ( $message-&gt;get_error_data() )
</ins><span class="cx">                         $message = $message-&gt;get_error_message() . ': ' . $message-&gt;get_error_data();
</span><span class="cx">                 else
</span><span class="cx">                         $message = $message-&gt;get_error_message();
</span></span></pre></div>
<a id="trunkwpadminincludesmsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/ms.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/ms.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/ms.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx">         if ( get_site_option( 'upload_space_check_disabled' ) ) {
</span><span class="cx">                 return $file;
</span><span class="cx">         }
</span><del>-        if( $file['error'] != '0' ) // there's already an error
</del><ins>+        if ( $file['error'] != '0' ) // there's already an error
</ins><span class="cx">                 return $file;
</span><span class="cx"> 
</span><span class="cx">         if ( defined( 'WP_IMPORTING' ) )
</span><span class="lines">@@ -13,14 +13,14 @@
</span><span class="cx">         $space_used = get_dirsize( BLOGUPLOADDIR );
</span><span class="cx">         $space_left = $space_allowed - $space_used;
</span><span class="cx">         $file_size = filesize( $file['tmp_name'] );
</span><del>-        if( $space_left &lt; $file_size )
</del><ins>+        if ( $space_left &lt; $file_size )
</ins><span class="cx">                 $file['error'] = sprintf( __( 'Not enough space to upload. %1$s Kb needed.' ), number_format( ($file_size - $space_left) /1024 ) );
</span><del>-        if( $file_size &gt; ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) )
</del><ins>+        if ( $file_size &gt; ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) )
</ins><span class="cx">                 $file['error'] = sprintf(__('This file is too big. Files must be less than %1$s Kb in size.'), get_site_option( 'fileupload_maxk', 1500 ) );
</span><del>-        if( upload_is_user_over_quota( false ) ) {
</del><ins>+        if ( upload_is_user_over_quota( false ) ) {
</ins><span class="cx">                 $file['error'] = __('You have used your space quota. Please delete files before uploading.');
</span><span class="cx">         }
</span><del>-        if( $file['error'] != '0' )
</del><ins>+        if ( $file['error'] != '0' )
</ins><span class="cx">                 wp_die( $file['error'] . ' &lt;a href=&quot;javascript:history.go(-1)&quot;&gt;' . __( 'Back' ) . '&lt;/a&gt;' );
</span><span class="cx"> 
</span><span class="cx">         return $file;
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx">         $blogs = get_site_option( &quot;blog_list&quot; );
</span><span class="cx">         if ( is_array( $blogs ) ) {
</span><span class="cx">                 foreach( $blogs as $n =&gt; $blog ) {
</span><del>-                        if( $blog[ 'blog_id' ] == $blog_id ) {
</del><ins>+                        if ( $blog[ 'blog_id' ] == $blog_id ) {
</ins><span class="cx">                                 unset( $blogs[ $n ] );
</span><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function confirm_delete_users( $users ) {
</span><del>-        if( !is_array( $users ) )
</del><ins>+        if ( !is_array( $users ) )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         echo '&lt;p&gt;' . __( 'Transfer posts before deleting users:' ) . '&lt;/p&gt;';
</span><span class="lines">@@ -147,25 +147,25 @@
</span><span class="cx">         echo '&lt;input type=&quot;hidden&quot; name=&quot;alluser_transfer_delete&quot; /&gt;';
</span><span class="cx">         wp_nonce_field( 'allusers' );
</span><span class="cx">         foreach ( (array) $_POST['allusers'] as $key =&gt; $val ) {
</span><del>-                if( $val != '' &amp;&amp; $val != '0' ) {
</del><ins>+                if ( $val != '' &amp;&amp; $val != '0' ) {
</ins><span class="cx">                         $user = new WP_User( $val );
</span><span class="cx">                         if ( in_array( $user-&gt;user_login, get_site_option( 'site_admins', array( 'admin' ) ) ) ) {
</span><span class="cx">                                 wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a site admnistrator.' ), $user-&gt;user_login ) );
</span><span class="cx">                         }
</span><span class="cx">                         echo &quot;&lt;input type='hidden' name='user[]' value='{$val}'/&gt;\n&quot;;
</span><span class="cx">                         $blogs = get_blogs_of_user( $val, true );
</span><del>-                        if( !empty( $blogs ) ) {
</del><ins>+                        if ( !empty( $blogs ) ) {
</ins><span class="cx">                                 foreach ( (array) $blogs as $key =&gt; $details ) {
</span><span class="cx">                                         $blog_users = get_users_of_blog( $details-&gt;userblog_id );
</span><del>-                                        if( is_array( $blog_users ) &amp;&amp; !empty( $blog_users ) ) {
</del><ins>+                                        if ( is_array( $blog_users ) &amp;&amp; !empty( $blog_users ) ) {
</ins><span class="cx">                                                 echo &quot;&lt;p&gt;&lt;a href='http://{$details-&gt;domain}{$details-&gt;path}'&gt;{$details-&gt;blogname}&lt;/a&gt; &quot;;
</span><span class="cx">                                                 echo &quot;&lt;select name='blog[$val][{$key}]'&gt;&quot;;
</span><span class="cx">                                                 $out = '';
</span><span class="cx">                                                 foreach( $blog_users as $user ) {
</span><del>-                                                        if( $user-&gt;user_id != $val )
</del><ins>+                                                        if ( $user-&gt;user_id != $val )
</ins><span class="cx">                                                                 $out .= &quot;&lt;option value='{$user-&gt;user_id}'&gt;{$user-&gt;user_login}&lt;/option&gt;&quot;;
</span><span class="cx">                                                 }
</span><del>-                                                if( $out == '' )
</del><ins>+                                                if ( $out == '' )
</ins><span class="cx">                                                         $out = &quot;&lt;option value='1'&gt;admin&lt;/option&gt;&quot;;
</span><span class="cx">                                                 echo $out;
</span><span class="cx">                                                 echo &quot;&lt;/select&gt;\n&quot;;
</span><span class="lines">@@ -182,17 +182,17 @@
</span><span class="cx"> function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
</span><span class="cx">         $themes = get_themes();
</span><span class="cx"> 
</span><del>-        if( $blog_id != 0 )
</del><ins>+        if ( $blog_id != 0 )
</ins><span class="cx">                 switch_to_blog( $blog_id );
</span><span class="cx"> 
</span><span class="cx">         $blog_allowed_themes = get_option( &quot;allowedthemes&quot; );
</span><del>-        if( !is_array( $blog_allowed_themes ) || empty( $blog_allowed_themes ) ) { // convert old allowed_themes to new allowedthemes
</del><ins>+        if ( !is_array( $blog_allowed_themes ) || empty( $blog_allowed_themes ) ) { // convert old allowed_themes to new allowedthemes
</ins><span class="cx">                 $blog_allowed_themes = get_option( &quot;allowed_themes&quot; );
</span><span class="cx"> 
</span><del>-                if( is_array( $blog_allowed_themes ) ) {
</del><ins>+                if ( is_array( $blog_allowed_themes ) ) {
</ins><span class="cx">                         foreach( (array) $themes as $key =&gt; $theme ) {
</span><span class="cx">                                 $theme_key = wp_specialchars( $theme[ 'Stylesheet' ] );
</span><del>-                                if( isset( $blog_allowed_themes[ $key ] ) == true ) {
</del><ins>+                                if ( isset( $blog_allowed_themes[ $key ] ) == true ) {
</ins><span class="cx">                                         $blog_allowedthemes[ $theme_key ] = 1;
</span><span class="cx">                                 }
</span><span class="cx">                         }
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if( $blog_id != 0 )
</del><ins>+        if ( $blog_id != 0 )
</ins><span class="cx">                 restore_current_blog();
</span><span class="cx"> 
</span><span class="cx">         return $blog_allowed_themes;
</span><span class="lines">@@ -256,9 +256,9 @@
</span><span class="cx"> 
</span><span class="cx"> function update_profile_email() {
</span><span class="cx">         global $current_user, $wpdb;
</span><del>-        if( isset( $_GET[ 'newuseremail' ] ) &amp;&amp; $current_user-&gt;ID ) {
</del><ins>+        if ( isset( $_GET[ 'newuseremail' ] ) &amp;&amp; $current_user-&gt;ID ) {
</ins><span class="cx">                 $new_email = get_option( $current_user-&gt;ID . '_new_email' );
</span><del>-                if( $new_email[ 'hash' ] == $_GET[ 'newuseremail' ] ) {
</del><ins>+                if ( $new_email[ 'hash' ] == $_GET[ 'newuseremail' ] ) {
</ins><span class="cx">                         $user-&gt;ID = $current_user-&gt;ID;
</span><span class="cx">                         $user-&gt;user_email = wp_specialchars( trim( $new_email[ 'newemail' ] ) );
</span><span class="cx">                         if ( $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT user_login FROM {$wpdb-&gt;signups} WHERE user_login = %s&quot;, $current_user-&gt;user_login ) ) ) {
</span><span class="lines">@@ -277,16 +277,16 @@
</span><span class="cx">         if ( ! is_object($errors) )
</span><span class="cx">                 $errors = new WP_Error();
</span><span class="cx"> 
</span><del>-        if( $current_user-&gt;id != $_POST[ 'user_id' ] )
</del><ins>+        if ( $current_user-&gt;id != $_POST[ 'user_id' ] )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><del>-        if( $current_user-&gt;user_email != $_POST[ 'email' ] ) {
</del><ins>+        if ( $current_user-&gt;user_email != $_POST[ 'email' ] ) {
</ins><span class="cx">                 if ( !is_email( $_POST[ 'email' ] ) ) {
</span><span class="cx">                         $errors-&gt;add( 'user_email', __( &quot;&lt;strong&gt;ERROR&lt;/strong&gt;: The e-mail address isn't correct.&quot; ), array( 'form-field' =&gt; 'email' ) );
</span><span class="cx">                         return;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if( $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT user_email FROM {$wpdb-&gt;users} WHERE user_email=%s&quot;, $_POST[ 'email' ] ) ) ) {
</del><ins>+                if ( $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT user_email FROM {$wpdb-&gt;users} WHERE user_email=%s&quot;, $_POST[ 'email' ] ) ) ) {
</ins><span class="cx">                         $errors-&gt;add( 'user_email', __( &quot;&lt;strong&gt;ERROR&lt;/strong&gt;: The e-mail address is already used.&quot; ), array( 'form-field' =&gt; 'email' ) );
</span><span class="cx">                         delete_option( $current_user-&gt;ID . '_new_email' );
</span><span class="cx">                         return;
</span><span class="lines">@@ -327,7 +327,7 @@
</span><span class="cx"> 
</span><span class="cx"> function new_user_email_admin_notice() {
</span><span class="cx">         global $current_user;
</span><del>-        if( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) &amp;&amp; isset( $_GET[ 'updated' ] ) &amp;&amp; $email = get_option( $current_user-&gt;ID . '_new_email' ) )
</del><ins>+        if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) &amp;&amp; isset( $_GET[ 'updated' ] ) &amp;&amp; $email = get_option( $current_user-&gt;ID . '_new_email' ) )
</ins><span class="cx">                 echo &quot;&lt;div id='update-nag'&gt;&quot; . sprintf( __( &quot;Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.&quot; ), $email[ 'newemail' ] ) . &quot;&lt;/div&gt;&quot;;
</span><span class="cx"> }
</span><span class="cx"> add_action( 'admin_notices', 'new_user_email_admin_notice' );
</span><span class="lines">@@ -335,14 +335,14 @@
</span><span class="cx"> function get_site_allowed_themes() {
</span><span class="cx">         $themes = get_themes();
</span><span class="cx">         $allowed_themes = get_site_option( 'allowedthemes' );
</span><del>-        if( !is_array( $allowed_themes ) || empty( $allowed_themes ) ) {
</del><ins>+        if ( !is_array( $allowed_themes ) || empty( $allowed_themes ) ) {
</ins><span class="cx">                 $allowed_themes = get_site_option( &quot;allowed_themes&quot; ); // convert old allowed_themes format
</span><del>-                if( !is_array( $allowed_themes ) ) {
</del><ins>+                if ( !is_array( $allowed_themes ) ) {
</ins><span class="cx">                         $allowed_themes = array();
</span><span class="cx">                 } else {
</span><span class="cx">                         foreach( (array) $themes as $key =&gt; $theme ) {
</span><span class="cx">                                 $theme_key = wp_specialchars( $theme[ 'Stylesheet' ] );
</span><del>-                                if( isset( $allowed_themes[ $key ] ) == true ) {
</del><ins>+                                if ( isset( $allowed_themes[ $key ] ) == true ) {
</ins><span class="cx">                                         $allowedthemes[ $theme_key ] = 1;
</span><span class="cx">                                 }
</span><span class="cx">                         }
</span><span class="lines">@@ -354,9 +354,9 @@
</span><span class="cx"> 
</span><span class="cx"> function get_space_allowed() {
</span><span class="cx">         $spaceAllowed = get_option(&quot;blog_upload_space&quot;);
</span><del>-        if( $spaceAllowed == false )
</del><ins>+        if ( $spaceAllowed == false )
</ins><span class="cx">                 $spaceAllowed = get_site_option(&quot;blog_upload_space&quot;);
</span><del>-        if( empty($spaceAllowed) || !is_numeric($spaceAllowed) )
</del><ins>+        if ( empty($spaceAllowed) || !is_numeric($spaceAllowed) )
</ins><span class="cx">                 $spaceAllowed = 50;
</span><span class="cx"> 
</span><span class="cx">         return $spaceAllowed;
</span><span class="lines">@@ -369,7 +369,7 @@
</span><span class="cx">         if ($used &gt; $space) $percentused = '100';
</span><span class="cx">         else $percentused = ( $used / $space ) * 100;
</span><span class="cx"> 
</span><del>-        if( $space &gt; 1000 ) {
</del><ins>+        if ( $space &gt; 1000 ) {
</ins><span class="cx">                 $space = number_format( $space / 1024 );
</span><span class="cx">                 $space .= __('GB');
</span><span class="cx">         } else {
</span><span class="lines">@@ -407,13 +407,13 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">         &lt;?php
</span><span class="cx"> }
</span><del>-if( current_user_can('edit_posts') )
</del><ins>+if ( current_user_can('edit_posts') )
</ins><span class="cx">         add_action('activity_box_end', 'dashboard_quota');
</span><span class="cx"> 
</span><span class="cx"> // Edit blog upload space setting on Edit Blog page
</span><span class="cx"> function upload_space_setting( $id ) {
</span><span class="cx">         $quota = get_blog_option($id, &quot;blog_upload_space&quot;);
</span><del>-        if( !$quota )
</del><ins>+        if ( !$quota )
</ins><span class="cx">                 $quota = '';
</span><span class="cx"> 
</span><span class="cx">         ?&gt;
</span><span class="lines">@@ -430,11 +430,11 @@
</span><span class="cx"> 
</span><span class="cx">         $wpdb-&gt;update( $wpdb-&gt;users, array( $pref =&gt; $value ), array( 'ID' =&gt; $id ) );
</span><span class="cx"> 
</span><del>-        if( $refresh == 1 )
</del><ins>+        if ( $refresh == 1 )
</ins><span class="cx">                 refresh_user_details($id);
</span><span class="cx"> 
</span><del>-        if( $pref == 'spam' ) {
-                if( $value == 1 )
</del><ins>+        if ( $pref == 'spam' ) {
+                if ( $value == 1 )
</ins><span class="cx">                         do_action( &quot;make_spam_user&quot;, $id );
</span><span class="cx">                 else
</span><span class="cx">                         do_action( &quot;make_ham_user&quot;, $id );
</span><span class="lines">@@ -482,7 +482,7 @@
</span><span class="cx">         $dir-&gt;close();
</span><span class="cx">         $size = $size / 1024 / 1024;
</span><span class="cx"> 
</span><del>-        if( ($spaceAllowed - $size) &lt;= 0 ) {
</del><ins>+        if ( ($spaceAllowed - $size) &lt;= 0 ) {
</ins><span class="cx">                 wp_die( __('Sorry, you must delete files before you can upload any more.') );
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="lines">@@ -496,8 +496,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function sync_category_tag_slugs( $term, $taxonomy ) {
</span><del>-        if( $taxonomy == 'category' || $taxonomy == 'post_tag' ) {
-                if( is_object( $term ) ) {
</del><ins>+        if ( $taxonomy == 'category' || $taxonomy == 'post_tag' ) {
+                if ( is_object( $term ) ) {
</ins><span class="cx">                         $term-&gt;slug = sanitize_title( $term-&gt;name );
</span><span class="cx">                 } else {
</span><span class="cx">                         $term[ 'slug' ] = sanitize_title( $term[ 'name' ] );
</span><span class="lines">@@ -520,7 +520,7 @@
</span><span class="cx"> 
</span><span class="cx">         $blog = get_active_blog_for_user( $current_user-&gt;ID );
</span><span class="cx">         $dashboard_blog = get_dashboard_blog();
</span><del>-        if( is_object( $blog ) ) {
</del><ins>+        if ( is_object( $blog ) ) {
</ins><span class="cx">                 $protocol = ( is_ssl() ? 'https://' : 'http://' );
</span><span class="cx">                 wp_redirect( $protocol . $blog-&gt;domain . $blog-&gt;path . 'wp-admin/?c=' . $c ); // redirect and count to 5, &quot;just in case&quot;
</span><span class="cx">                 exit;
</span><span class="lines">@@ -625,17 +625,17 @@
</span><span class="cx">         $media_title = __('Add Media');
</span><span class="cx">         $mu_media_buttons = get_site_option( 'mu_media_buttons' );
</span><span class="cx">         $out = '';
</span><del>-        if( $mu_media_buttons[ 'image' ] ) {
</del><ins>+        if ( $mu_media_buttons[ 'image' ] ) {
</ins><span class="cx">                 $image_upload_iframe_src = apply_filters('image_upload_iframe_src', &quot;$media_upload_iframe_src&amp;amp;type=image&quot;);
</span><span class="cx">                 $image_title = __('Add an Image');
</span><span class="cx">                 $out .= &quot;&lt;a href='{$image_upload_iframe_src}&amp;amp;TB_iframe=true' id='add_image' class='thickbox' title='$image_title'&gt;&lt;img src='images/media-button-image.gif' alt='$image_title' /&gt;&lt;/a&gt;&quot;;
</span><span class="cx">         }
</span><del>-        if( $mu_media_buttons[ 'video' ] ) {
</del><ins>+        if ( $mu_media_buttons[ 'video' ] ) {
</ins><span class="cx">                 $video_upload_iframe_src = apply_filters('video_upload_iframe_src', &quot;$media_upload_iframe_src&amp;amp;type=video&quot;);
</span><span class="cx">                 $video_title = __('Add Video');
</span><span class="cx">                 $out .= &quot;&lt;a href='{$video_upload_iframe_src}&amp;amp;TB_iframe=true' id='add_video' class='thickbox' title='$video_title'&gt;&lt;img src='images/media-button-video.gif' alt='$video_title' /&gt;&lt;/a&gt;&quot;;
</span><span class="cx">         }
</span><del>-        if( $mu_media_buttons[ 'audio' ] ) {
</del><ins>+        if ( $mu_media_buttons[ 'audio' ] ) {
</ins><span class="cx">                 $audio_upload_iframe_src = apply_filters('audio_upload_iframe_src', &quot;$media_upload_iframe_src&amp;amp;type=audio&quot;);
</span><span class="cx">                 $audio_title = __('Add Audio');
</span><span class="cx">                 $out .= &quot;&lt;a href='{$audio_upload_iframe_src}&amp;amp;TB_iframe=true' id='add_audio' class='thickbox' title='$audio_title'&gt;&lt;img src='images/media-button-music.gif' alt='$audio_title' /&gt;&lt;/a&gt;&quot;;
</span><span class="lines">@@ -648,15 +648,15 @@
</span><span class="cx"> 
</span><span class="cx"> /* Warn the admin if SECRET SALT information is missing from wp-config.php */
</span><span class="cx"> function secret_salt_warning() {
</span><del>-        if( !is_super_admin() )
</del><ins>+        if ( !is_super_admin() )
</ins><span class="cx">                 return;
</span><span class="cx">         $secret_keys = array( 'NONCE_KEY', 'AUTH_KEY', 'AUTH_SALT', 'LOGGED_IN_KEY', 'LOGGED_IN_SALT', 'SECURE_AUTH_KEY', 'SECURE_AUTH_SALT' );
</span><span class="cx">         $out = '';
</span><span class="cx">         foreach( $secret_keys as $key ) {
</span><del>-                if( !defined( $key ) )
</del><ins>+                if ( !defined( $key ) )
</ins><span class="cx">                         $out .= &quot;define( '$key', '&quot; . wp_generate_password() . wp_generate_password() . &quot;' );&lt;br /&gt;&quot;;
</span><span class="cx">         }
</span><del>-        if( $out != '' ) {
</del><ins>+        if ( $out != '' ) {
</ins><span class="cx">                 $msg = sprintf( __( 'Warning! WordPress encrypts user cookies, but you must add the following lines to &lt;strong&gt;%swp-config.php&lt;/strong&gt; for it to be more secure.&lt;br /&gt;Please add the code before the line, &lt;code&gt;/* That\'s all, stop editing! Happy blogging. */&lt;/code&gt;' ), ABSPATH );
</span><span class="cx">                 $msg .= &quot;&lt;blockquote&gt;$out&lt;/blockquote&gt;&quot;;
</span><span class="cx"> 
</span><span class="lines">@@ -686,19 +686,19 @@
</span><span class="cx"> 
</span><span class="cx"> function admin_notice_feed() {
</span><span class="cx">         global $current_user;
</span><del>-        if( substr( $_SERVER[ 'PHP_SELF' ], -19 ) != '/wp-admin/index.php' )
</del><ins>+        if ( substr( $_SERVER[ 'PHP_SELF' ], -19 ) != '/wp-admin/index.php' )
</ins><span class="cx">                 return;
</span><span class="cx"> 
</span><del>-        if( isset( $_GET[ 'feed_dismiss' ] ) )
</del><ins>+        if ( isset( $_GET[ 'feed_dismiss' ] ) )
</ins><span class="cx">                 update_user_option( $current_user-&gt;id, 'admin_feed_dismiss', $_GET[ 'feed_dismiss' ], true );
</span><span class="cx"> 
</span><span class="cx">         $url = get_site_option( 'admin_notice_feed' );
</span><del>-        if( $url == '' )
</del><ins>+        if ( $url == '' )
</ins><span class="cx">                 return;
</span><span class="cx">         include_once( ABSPATH . 'wp-includes/rss.php' );
</span><span class="cx">         $rss = @fetch_rss( $url );
</span><del>-        if( isset($rss-&gt;items) &amp;&amp; 1 &lt;= count($rss-&gt;items) ) {
-                if( md5( $rss-&gt;items[0][ 'title' ] ) == get_user_option( 'admin_feed_dismiss', $current_user-&gt;id ) )
</del><ins>+        if ( isset($rss-&gt;items) &amp;&amp; 1 &lt;= count($rss-&gt;items) ) {
+                if ( md5( $rss-&gt;items[0][ 'title' ] ) == get_user_option( 'admin_feed_dismiss', $current_user-&gt;id ) )
</ins><span class="cx">                         return;
</span><span class="cx">                 $item = $rss-&gt;items[0];
</span><span class="cx">                 $msg = &quot;&lt;h3&gt;&quot; . wp_specialchars( $item[ 'title' ] ) . &quot;&lt;/h3&gt;\n&quot;;
</span><span class="lines">@@ -714,7 +714,7 @@
</span><span class="cx">                 $link = clean_url( strip_tags( $item['link'] ) );
</span><span class="cx">                 $msg .= &quot;&lt;p&gt;&quot; . $content . &quot; &lt;a href='$link'&gt;&quot; . __( 'Read More' ) . &quot;&lt;/a&gt; &lt;a href='index.php?feed_dismiss=&quot; . md5( $item[ 'title' ] ) . &quot;'&gt;&quot; . __( &quot;Dismiss&quot; ) . &quot;&lt;/a&gt;&lt;/p&gt;&quot;;
</span><span class="cx">                 echo &quot;&lt;div class='updated fade'&gt;$msg&lt;/div&gt;&quot;;
</span><del>-        } elseif( is_super_admin() ) {
</del><ins>+        } elseif ( is_super_admin() ) {
</ins><span class="cx">                 printf(&quot;&lt;div id='update-nag'&gt;&quot; . __(&quot;Your feed at %s is empty.&quot;) . &quot;&lt;/div&gt;&quot;, wp_specialchars( $url ));
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="lines">@@ -722,7 +722,7 @@
</span><span class="cx"> 
</span><span class="cx"> function site_admin_notice() {
</span><span class="cx">         global $current_user, $wp_db_version;
</span><del>-        if( !is_super_admin() )
</del><ins>+        if ( !is_super_admin() )
</ins><span class="cx">                 return false;
</span><span class="cx">         printf(&quot;&lt;div id='update-nag'&gt;&quot; . __(&quot;Hi %s! You're logged in as a site administrator.&quot;) . &quot;&lt;/div&gt;&quot;, $current_user-&gt;user_login);
</span><span class="cx">         if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) {
</span><span class="lines">@@ -732,13 +732,13 @@
</span><span class="cx"> add_action( 'admin_notices', 'site_admin_notice' );
</span><span class="cx"> 
</span><span class="cx"> function avoid_blog_page_permalink_collision( $data, $postarr ) {
</span><del>-        if( is_subdomain_install() )
</del><ins>+        if ( is_subdomain_install() )
</ins><span class="cx">                 return $data;
</span><del>-        if( $data[ 'post_type' ] != 'page' )
</del><ins>+        if ( $data[ 'post_type' ] != 'page' )
</ins><span class="cx">                 return $data;
</span><del>-        if( !isset( $data[ 'post_name' ] ) || $data[ 'post_name' ] == '' )
</del><ins>+        if ( !isset( $data[ 'post_name' ] ) || $data[ 'post_name' ] == '' )
</ins><span class="cx">                 return $data;
</span><del>-        if( !is_main_blog() )
</del><ins>+        if ( !is_main_blog() )
</ins><span class="cx">                 return $data;
</span><span class="cx"> 
</span><span class="cx">         $post_name = $data[ 'post_name' ];
</span><span class="lines">@@ -747,7 +747,7 @@
</span><span class="cx">                 $post_name .= mt_rand( 1, 10 );
</span><span class="cx">                 $c ++;
</span><span class="cx">         }
</span><del>-        if( $post_name != $data[ 'post_name' ] ) {
</del><ins>+        if ( $post_name != $data[ 'post_name' ] ) {
</ins><span class="cx">                 $data[ 'post_name' ] = $post_name;
</span><span class="cx">         }
</span><span class="cx">         return $data;
</span><span class="lines">@@ -1033,7 +1033,7 @@
</span><span class="cx"> 
</span><span class="cx"> function remove_edit_plugin_link( $action_links, $plugin_file, $plugin_data, $context ) {
</span><span class="cx">         foreach( $action_links as $t =&gt; $link ) {
</span><del>-                if( !strpos( $link, __( &quot;Open this file in the Plugin Editor&quot; ) ) )
</del><ins>+                if ( !strpos( $link, __( &quot;Open this file in the Plugin Editor&quot; ) ) )
</ins><span class="cx">                         $links[ $t ] = $link;
</span><span class="cx">         }
</span><span class="cx">         return $links;
</span><span class="lines">@@ -1050,25 +1050,25 @@
</span><span class="cx">                 &lt;?php
</span><span class="cx">                 $all_blogs = get_blogs_of_user( $current_user-&gt;ID );
</span><span class="cx">                 $primary_blog = get_usermeta($current_user-&gt;ID, 'primary_blog');
</span><del>-                if( count( $all_blogs ) &gt; 1 ) {
</del><ins>+                if ( count( $all_blogs ) &gt; 1 ) {
</ins><span class="cx">                         $found = false;
</span><span class="cx">                         ?&gt;
</span><span class="cx">                         &lt;select name=&quot;primary_blog&quot;&gt;
</span><span class="cx">                                 &lt;?php foreach( (array) $all_blogs as $blog ) {
</span><del>-                                        if( $primary_blog == $blog-&gt;userblog_id )
</del><ins>+                                        if ( $primary_blog == $blog-&gt;userblog_id )
</ins><span class="cx">                                                 $found = true;
</span><del>-                                        ?&gt;&lt;option value='&lt;?php echo $blog-&gt;userblog_id ?&gt;'&lt;?php if( $primary_blog == $blog-&gt;userblog_id ) echo ' selected=&quot;selected&quot;' ?&gt;&gt;http://&lt;?php echo $blog-&gt;domain.$blog-&gt;path ?&gt;&lt;/option&gt;&lt;?php
</del><ins>+                                        ?&gt;&lt;option value='&lt;?php echo $blog-&gt;userblog_id ?&gt;'&lt;?php if ( $primary_blog == $blog-&gt;userblog_id ) echo ' selected=&quot;selected&quot;' ?&gt;&gt;http://&lt;?php echo $blog-&gt;domain.$blog-&gt;path ?&gt;&lt;/option&gt;&lt;?php
</ins><span class="cx">                                 } ?&gt;
</span><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                         &lt;?php
</span><del>-                        if( !$found ) {
</del><ins>+                        if ( !$found ) {
</ins><span class="cx">                                 $blog = array_shift( $all_blogs );
</span><span class="cx">                                 update_usermeta( $current_user-&gt;ID, 'primary_blog', $blog-&gt;userblog_id );
</span><span class="cx">                         }
</span><del>-                } elseif( count( $all_blogs ) == 1 ) {
</del><ins>+                } elseif ( count( $all_blogs ) == 1 ) {
</ins><span class="cx">                         $blog = array_shift( $all_blogs );
</span><span class="cx">                         echo $blog-&gt;domain;
</span><del>-                        if( $primary_blog != $blog-&gt;userblog_id ) // Set the primary blog again if it's out of sync with blog list.
</del><ins>+                        if ( $primary_blog != $blog-&gt;userblog_id ) // Set the primary blog again if it's out of sync with blog list.
</ins><span class="cx">                                 update_usermeta( $current_user-&gt;ID, 'primary_blog', $blog-&gt;userblog_id );
</span><span class="cx">                 } else {
</span><span class="cx">                         echo &quot;N/A&quot;;
</span><span class="lines">@@ -1081,7 +1081,7 @@
</span><span class="cx"> }
</span><span class="cx"> add_action ( 'myblogs_allblogs_options', 'choose_primary_blog' );
</span><span class="cx"> 
</span><del>-if( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) ) {
</del><ins>+if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) ) {
</ins><span class="cx">         add_action( 'admin_init', 'update_profile_email' );
</span><span class="cx">         add_action( 'admin_init', 'profile_page_email_warning_ob_start' );
</span><span class="cx"> }
</span><span class="lines">@@ -1132,7 +1132,7 @@
</span><span class="cx">         global $current_user;
</span><span class="cx"> 
</span><span class="cx">         $blogs = get_blogs_of_user( $current_user-&gt;ID );
</span><del>-        if( !$blogs || ( is_array( $blogs ) &amp;&amp; empty( $blogs ) ) ) {
</del><ins>+        if ( !$blogs || ( is_array( $blogs ) &amp;&amp; empty( $blogs ) ) ) {
</ins><span class="cx">                 wp_die( __( 'You must be a member of at least one blog to use this page.' ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -1140,7 +1140,7 @@
</span><span class="cx">                 $title = apply_filters( 'my_blogs_title', __( 'My Blogs' ) );
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div class=&quot;wrap&quot;&gt;
</span><del>-        &lt;?php if( $_GET[ 'updated' ] ) { ?&gt;
</del><ins>+        &lt;?php if ( $_GET[ 'updated' ] ) { ?&gt;
</ins><span class="cx">                 &lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Your blog options have been updated.' ); ?&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;
</span><span class="cx">         &lt;?php } ?&gt;
</span><span class="cx">         &lt;?php screen_icon(); ?&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesplugininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/plugin-install.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/plugin-install.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/plugin-install.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx">  */
</span><span class="cx"> function plugins_api($action, $args = null) {
</span><span class="cx"> 
</span><del>-        if( is_array($args) )
</del><ins>+        if ( is_array($args) )
</ins><span class="cx">                 $args = (object)$args;
</span><span class="cx"> 
</span><span class="cx">         if ( !isset($args-&gt;per_page) )
</span><span class="lines">@@ -325,10 +325,10 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;tbody class=&quot;plugins&quot;&gt;
</span><span class="cx">                 &lt;?php
</span><del>-                        if( empty($plugins) )
</del><ins>+                        if ( empty($plugins) )
</ins><span class="cx">                                 echo '&lt;tr&gt;&lt;td colspan=&quot;5&quot;&gt;', __('No plugins match your request.'), '&lt;/td&gt;&lt;/tr&gt;';
</span><span class="cx"> 
</span><del>-                        foreach( (array) $plugins as $plugin ){
</del><ins>+                        foreach ( (array) $plugins as $plugin ){
</ins><span class="cx">                                 if ( is_object($plugin) )
</span><span class="cx">                                         $plugin = (array) $plugin;
</span><span class="cx"> 
</span><span class="lines">@@ -349,12 +349,12 @@
</span><span class="cx">                                 $name = strip_tags($title . ' ' . $version);
</span><span class="cx"> 
</span><span class="cx">                                 $author = $plugin['author'];
</span><del>-                                if( ! empty($plugin['author']) )
</del><ins>+                                if ( ! empty($plugin['author']) )
</ins><span class="cx">                                         $author = ' &lt;cite&gt;' . sprintf( __('By %s'), $author ) . '.&lt;/cite&gt;';
</span><span class="cx"> 
</span><span class="cx">                                 $author = wp_kses($author, $plugins_allowedtags);
</span><span class="cx"> 
</span><del>-                                if( isset($plugin['homepage']) )
</del><ins>+                                if ( isset($plugin['homepage']) )
</ins><span class="cx">                                         $title = '&lt;a target=&quot;_blank&quot; href=&quot;' . esc_attr($plugin['homepage']) . '&quot;&gt;' . $title . '&lt;/a&gt;';
</span><span class="cx"> 
</span><span class="cx">                                 $action_links = array();
</span><span class="lines">@@ -423,7 +423,7 @@
</span><span class="cx">                 $api-&gt;$key = wp_kses($api-&gt;$key, $plugins_allowedtags);
</span><span class="cx"> 
</span><span class="cx">         $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English.
</span><del>-        if( empty($section) || ! isset($api-&gt;sections[ $section ]) )
</del><ins>+        if ( empty($section) || ! isset($api-&gt;sections[ $section ]) )
</ins><span class="cx">                 $section = array_shift( $section_titles = array_keys((array)$api-&gt;sections) );
</span><span class="cx"> 
</span><span class="cx">         iframe_header( __('Plugin Install') );
</span></span></pre></div>
<a id="trunkwpadminincludespluginphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/plugin.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/plugin.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/plugin.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -92,8 +92,8 @@
</span><span class="cx"> function _get_plugin_data_markup_translate($plugin_file, $plugin_data, $markup = true, $translate = true) {
</span><span class="cx"> 
</span><span class="cx">         //Translate fields
</span><del>-        if( $translate &amp;&amp; ! empty($plugin_data['TextDomain']) ) {
-                if( ! empty( $plugin_data['DomainPath'] ) )
</del><ins>+        if ( $translate &amp;&amp; ! empty($plugin_data['TextDomain']) ) {
+                if ( ! empty( $plugin_data['DomainPath'] ) )
</ins><span class="cx">                         load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file). $plugin_data['DomainPath']);
</span><span class="cx">                 else
</span><span class="cx">                         load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file));
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">                         $plugin_data['Author'] = '&lt;a href=&quot;' . $plugin_data['AuthorURI'] . '&quot; title=&quot;' . __( 'Visit author homepage' ) . '&quot;&gt;' . $plugin_data['Author'] . '&lt;/a&gt;';
</span><span class="cx"> 
</span><span class="cx">                 $plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
</span><del>-                if( ! empty($plugin_data['Author']) )
</del><ins>+                if ( ! empty($plugin_data['Author']) )
</ins><span class="cx">                         $plugin_data['Description'] .= ' &lt;cite&gt;' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.&lt;/cite&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx"> 
</span><span class="cx">         $wp_plugins = array ();
</span><span class="cx">         $plugin_root = WP_PLUGIN_DIR;
</span><del>-        if( !empty($plugin_folder) )
</del><ins>+        if ( !empty($plugin_folder) )
</ins><span class="cx">                 $plugin_root .= $plugin_folder;
</span><span class="cx"> 
</span><span class="cx">         // Files in wp-content/plugins directory
</span><span class="lines">@@ -330,7 +330,7 @@
</span><span class="cx"> 
</span><span class="cx">         foreach ( $plugins as $plugin ) {
</span><span class="cx">                 $plugin = plugin_basename($plugin);
</span><del>-                if( ! is_plugin_active($plugin) )
</del><ins>+                if ( ! is_plugin_active($plugin) )
</ins><span class="cx">                         continue;
</span><span class="cx">                 if ( ! $silent )
</span><span class="cx">                         do_action( 'deactivate_plugin', trim( $plugin ) );
</span><span class="lines">@@ -398,7 +398,7 @@
</span><span class="cx"> function delete_plugins($plugins, $redirect = '' ) {
</span><span class="cx">         global $wp_filesystem;
</span><span class="cx"> 
</span><del>-        if( empty($plugins) )
</del><ins>+        if ( empty($plugins) )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $checked = array();
</span><span class="lines">@@ -410,7 +410,7 @@
</span><span class="cx">         if ( false === ($credentials = request_filesystem_credentials($url)) ) {
</span><span class="cx">                 $data = ob_get_contents();
</span><span class="cx">                 ob_end_clean();
</span><del>-                if( ! empty($data) ){
</del><ins>+                if ( ! empty($data) ){
</ins><span class="cx">                         include_once( ABSPATH . 'wp-admin/admin-header.php');
</span><span class="cx">                         echo $data;
</span><span class="cx">                         include( ABSPATH . 'wp-admin/admin-footer.php');
</span><span class="lines">@@ -423,7 +423,7 @@
</span><span class="cx">                 request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again
</span><span class="cx">                 $data = ob_get_contents();
</span><span class="cx">                 ob_end_clean();
</span><del>-                if( ! empty($data) ){
</del><ins>+                if ( ! empty($data) ){
</ins><span class="cx">                         include_once( ABSPATH . 'wp-admin/admin-header.php');
</span><span class="cx">                         echo $data;
</span><span class="cx">                         include( ABSPATH . 'wp-admin/admin-footer.php');
</span><span class="lines">@@ -1064,7 +1064,7 @@
</span><span class="cx">  * @return unknown
</span><span class="cx">  */
</span><span class="cx"> function add_option_whitelist( $new_options, $options = '' ) {
</span><del>-        if( $options == '' ) {
</del><ins>+        if ( $options == '' ) {
</ins><span class="cx">                 global $whitelist_options;
</span><span class="cx">         } else {
</span><span class="cx">                 $whitelist_options = $options;
</span><span class="lines">@@ -1094,7 +1094,7 @@
</span><span class="cx">  * @return unknown
</span><span class="cx">  */
</span><span class="cx"> function remove_option_whitelist( $del_options, $options = '' ) {
</span><del>-        if( $options == '' ) {
</del><ins>+        if ( $options == '' ) {
</ins><span class="cx">                 global $whitelist_options;
</span><span class="cx">         } else {
</span><span class="cx">                 $whitelist_options = $options;
</span><span class="lines">@@ -1103,7 +1103,7 @@
</span><span class="cx">                 foreach( $keys as $key ) {
</span><span class="cx">                         if ( isset($whitelist_options[ $page ]) &amp;&amp; is_array($whitelist_options[ $page ]) ) {
</span><span class="cx">                                 $pos = array_search( $key, $whitelist_options[ $page ] );
</span><del>-                                if( $pos !== false )
</del><ins>+                                if ( $pos !== false )
</ins><span class="cx">                                         unset( $whitelist_options[ $page ][ $pos ] );
</span><span class="cx">                         }
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkwpadminincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/post.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/post.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/post.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -535,7 +535,7 @@
</span><span class="cx">  */
</span><span class="cx"> function write_post() {
</span><span class="cx">         $result = wp_write_post();
</span><del>-        if( is_wp_error( $result ) )
</del><ins>+        if ( is_wp_error( $result ) )
</ins><span class="cx">                 wp_die( $result-&gt;get_error_message() );
</span><span class="cx">         else
</span><span class="cx">                 return $result;
</span></span></pre></div>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/template.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -1307,13 +1307,13 @@
</span><span class="cx">         &lt;div class=&quot;ss&quot;&gt;' . mysql2date( 's', $post-&gt;post_date, false ) . '&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;post_password&quot;&gt;' . esc_html( $post-&gt;post_password ) . '&lt;/div&gt;';
</span><span class="cx"> 
</span><del>-        if( $post-&gt;post_type == 'page' )
</del><ins>+        if ( $post-&gt;post_type == 'page' )
</ins><span class="cx">                 echo '
</span><span class="cx">         &lt;div class=&quot;post_parent&quot;&gt;' . $post-&gt;post_parent . '&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;page_template&quot;&gt;' . esc_html( get_post_meta( $post-&gt;ID, '_wp_page_template', true ) ) . '&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;menu_order&quot;&gt;' . $post-&gt;menu_order . '&lt;/div&gt;';
</span><span class="cx"> 
</span><del>-        if( $post-&gt;post_type == 'post' )
</del><ins>+        if ( $post-&gt;post_type == 'post' )
</ins><span class="cx">                 echo '
</span><span class="cx">         &lt;div class=&quot;tags_input&quot;&gt;' . esc_html( str_replace( ',', ', ', get_tags_to_edit($post-&gt;ID) ) ) . '&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;post_category&quot;&gt;' . implode( ',', wp_get_post_categories( $post-&gt;ID ) ) . '&lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesthemephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/theme.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/theme.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/theme.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">                 request_filesystem_credentials($url, '', true); // Failed to connect, Error and request again
</span><span class="cx">                 $data = ob_get_contents();
</span><span class="cx">                 ob_end_clean();
</span><del>-                if( ! empty($data) ){
</del><ins>+                if ( ! empty($data) ) {
</ins><span class="cx">                         include_once( ABSPATH . 'wp-admin/admin-header.php');
</span><span class="cx">                         echo $data;
</span><span class="cx">                         include( ABSPATH . 'wp-admin/admin-footer.php');
</span></span></pre></div>
<a id="trunkwpadminincludesupdatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/update.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/update.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/update.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function core_update_footer( $msg = '' ) {
</span><del>-        if( is_multisite() &amp;&amp; !is_super_admin() )
</del><ins>+        if ( is_multisite() &amp;&amp; !is_super_admin() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         if ( !current_user_can('manage_options') )
</span><span class="lines">@@ -118,7 +118,7 @@
</span><span class="cx"> add_filter( 'update_footer', 'core_update_footer' );
</span><span class="cx"> 
</span><span class="cx"> function update_nag() {
</span><del>-        if( is_multisite() &amp;&amp; !is_super_admin() )
</del><ins>+        if ( is_multisite() &amp;&amp; !is_super_admin() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         global $pagenow;
</span><span class="lines">@@ -142,7 +142,7 @@
</span><span class="cx"> 
</span><span class="cx"> // Called directly from dashboard
</span><span class="cx"> function update_right_now_message() {
</span><del>-        if( is_multisite() &amp;&amp; !is_super_admin() )
</del><ins>+        if ( is_multisite() &amp;&amp; !is_super_admin() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $cur = get_preferred_from_update_core();
</span><span class="lines">@@ -205,7 +205,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function wp_update_plugin($plugin, $feedback = '') {
</span><del>-        if( is_multisite() &amp;&amp; !is_super_admin() )
</del><ins>+        if ( is_multisite() &amp;&amp; !is_super_admin() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminincludesupgradephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/upgrade.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/upgrade.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/includes/upgrade.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -267,7 +267,7 @@
</span><span class="cx">         if ( $wp_db_version == $wp_current_db_version )
</span><span class="cx">                 return;
</span><span class="cx"> 
</span><del>-        if( ! is_blog_installed() )
</del><ins>+        if ( ! is_blog_installed() )
</ins><span class="cx">                 return;
</span><span class="cx"> 
</span><span class="cx">         wp_check_mysql_version();
</span><span class="lines">@@ -631,7 +631,7 @@
</span><span class="cx"> 
</span><span class="cx">         // populate comment_count field of posts table
</span><span class="cx">         $comments = $wpdb-&gt;get_results( &quot;SELECT comment_post_ID, COUNT(*) as c FROM $wpdb-&gt;comments WHERE comment_approved = '1' GROUP BY comment_post_ID&quot; );
</span><del>-        if( is_array( $comments ) )
</del><ins>+        if ( is_array( $comments ) )
</ins><span class="cx">                 foreach ($comments as $comment)
</span><span class="cx">                         $wpdb-&gt;update( $wpdb-&gt;posts, array('comment_count' =&gt; $comment-&gt;c), array('ID' =&gt; $comment-&gt;comment_post_ID) );
</span><span class="cx"> 
</span><span class="lines">@@ -1199,9 +1199,9 @@
</span><span class="cx">         global $wpdb;
</span><span class="cx"> 
</span><span class="cx">         // Separate individual queries into an array
</span><del>-        if( !is_array($queries) ) {
</del><ins>+        if ( !is_array($queries) ) {
</ins><span class="cx">                 $queries = explode( ';', $queries );
</span><del>-                if('' == $queries[count($queries) - 1]) array_pop($queries);
</del><ins>+                if ('' == $queries[count($queries) - 1]) array_pop($queries);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $cqueries = array(); // Creation Queries
</span><span class="lines">@@ -1210,30 +1210,26 @@
</span><span class="cx"> 
</span><span class="cx">         // Create a tablename index for an array ($cqueries) of queries
</span><span class="cx">         foreach($queries as $qry) {
</span><del>-                if(preg_match(&quot;|CREATE TABLE ([^ ]*)|&quot;, $qry, $matches)) {
</del><ins>+                if (preg_match(&quot;|CREATE TABLE ([^ ]*)|&quot;, $qry, $matches)) {
</ins><span class="cx">                         $cqueries[trim( strtolower($matches[1]), '`' )] = $qry;
</span><span class="cx">                         $for_update[$matches[1]] = 'Created table '.$matches[1];
</span><del>-                }
-                else if(preg_match(&quot;|CREATE DATABASE ([^ ]*)|&quot;, $qry, $matches)) {
</del><ins>+                } else if (preg_match(&quot;|CREATE DATABASE ([^ ]*)|&quot;, $qry, $matches)) {
</ins><span class="cx">                         array_unshift($cqueries, $qry);
</span><del>-                }
-                else if(preg_match(&quot;|INSERT INTO ([^ ]*)|&quot;, $qry, $matches)) {
</del><ins>+                } else if (preg_match(&quot;|INSERT INTO ([^ ]*)|&quot;, $qry, $matches)) {
</ins><span class="cx">                         $iqueries[] = $qry;
</span><del>-                }
-                else if(preg_match(&quot;|UPDATE ([^ ]*)|&quot;, $qry, $matches)) {
</del><ins>+                } else if (preg_match(&quot;|UPDATE ([^ ]*)|&quot;, $qry, $matches)) {
</ins><span class="cx">                         $iqueries[] = $qry;
</span><del>-                }
-                else {
</del><ins>+                } else {
</ins><span class="cx">                         // Unrecognized query type
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // Check to see which tables and fields exist
</span><del>-        if($tables = $wpdb-&gt;get_col('SHOW TABLES;')) {
</del><ins>+        if ($tables = $wpdb-&gt;get_col('SHOW TABLES;')) {
</ins><span class="cx">                 // For every table in the database
</span><del>-                foreach($tables as $table) {
</del><ins>+                foreach ($tables as $table) {
</ins><span class="cx">                         // If a table query exists for the database table...
</span><del>-                        if( array_key_exists(strtolower($table), $cqueries) ) {
</del><ins>+                        if ( array_key_exists(strtolower($table), $cqueries) ) {
</ins><span class="cx">                                 // Clear the field and index arrays
</span><span class="cx">                                 unset($cfields);
</span><span class="cx">                                 unset($indices);
</span><span class="lines">@@ -1247,15 +1243,14 @@
</span><span class="cx">                                 //echo &quot;&lt;hr/&gt;&lt;pre&gt;\n&quot;.print_r(strtolower($table), true).&quot;:\n&quot;.print_r($cqueries, true).&quot;&lt;/pre&gt;&lt;hr/&gt;&quot;;
</span><span class="cx"> 
</span><span class="cx">                                 // For every field line specified in the query
</span><del>-                                foreach($flds as $fld) {
</del><ins>+                                foreach ($flds as $fld) {
</ins><span class="cx">                                         // Extract the field name
</span><span class="cx">                                         preg_match(&quot;|^([^ ]*)|&quot;, trim($fld), $fvals);
</span><span class="cx">                                         $fieldname = trim( $fvals[1], '`' );
</span><span class="cx"> 
</span><span class="cx">                                         // Verify the found field name
</span><span class="cx">                                         $validfield = true;
</span><del>-                                        switch(strtolower($fieldname))
-                                        {
</del><ins>+                                        switch (strtolower($fieldname)) {
</ins><span class="cx">                                         case '':
</span><span class="cx">                                         case 'primary':
</span><span class="cx">                                         case 'index':
</span><span class="lines">@@ -1269,7 +1264,7 @@
</span><span class="cx">                                         $fld = trim($fld);
</span><span class="cx"> 
</span><span class="cx">                                         // If it's a valid field, add it to the field array
</span><del>-                                        if($validfield) {
</del><ins>+                                        if ($validfield) {
</ins><span class="cx">                                                 $cfields[strtolower($fieldname)] = trim($fld, &quot;, \n&quot;);
</span><span class="cx">                                         }
</span><span class="cx">                                 }
</span><span class="lines">@@ -1278,15 +1273,15 @@
</span><span class="cx">                                 $tablefields = $wpdb-&gt;get_results(&quot;DESCRIBE {$table};&quot;);
</span><span class="cx"> 
</span><span class="cx">                                 // For every field in the table
</span><del>-                                foreach($tablefields as $tablefield) {
</del><ins>+                                foreach ($tablefields as $tablefield) {
</ins><span class="cx">                                         // If the table field exists in the field array...
</span><del>-                                        if(array_key_exists(strtolower($tablefield-&gt;Field), $cfields)) {
</del><ins>+                                        if (array_key_exists(strtolower($tablefield-&gt;Field), $cfields)) {
</ins><span class="cx">                                                 // Get the field type from the query
</span><span class="cx">                                                 preg_match(&quot;|&quot;.$tablefield-&gt;Field.&quot; ([^ ]*( unsigned)?)|i&quot;, $cfields[strtolower($tablefield-&gt;Field)], $matches);
</span><span class="cx">                                                 $fieldtype = $matches[1];
</span><span class="cx"> 
</span><span class="cx">                                                 // Is actual field type different from the field type in query?
</span><del>-                                                if($tablefield-&gt;Type != $fieldtype) {
</del><ins>+                                                if ($tablefield-&gt;Type != $fieldtype) {
</ins><span class="cx">                                                         // Add a query to change the column type
</span><span class="cx">                                                         $cqueries[] = &quot;ALTER TABLE {$table} CHANGE COLUMN {$tablefield-&gt;Field} &quot; . $cfields[strtolower($tablefield-&gt;Field)];
</span><span class="cx">                                                         $for_update[$table.'.'.$tablefield-&gt;Field] = &quot;Changed type of {$table}.{$tablefield-&gt;Field} from {$tablefield-&gt;Type} to {$fieldtype}&quot;;
</span><span class="lines">@@ -1294,10 +1289,9 @@
</span><span class="cx"> 
</span><span class="cx">                                                 // Get the default value from the array
</span><span class="cx">                                                         //echo &quot;{$cfields[strtolower($tablefield-&gt;Field)]}&lt;br&gt;&quot;;
</span><del>-                                                if(preg_match(&quot;| DEFAULT '(.*)'|i&quot;, $cfields[strtolower($tablefield-&gt;Field)], $matches)) {
</del><ins>+                                                if (preg_match(&quot;| DEFAULT '(.*)'|i&quot;, $cfields[strtolower($tablefield-&gt;Field)], $matches)) {
</ins><span class="cx">                                                         $default_value = $matches[1];
</span><del>-                                                        if($tablefield-&gt;Default != $default_value)
-                                                        {
</del><ins>+                                                        if ($tablefield-&gt;Default != $default_value) {
</ins><span class="cx">                                                                 // Add a query to change the column's default value
</span><span class="cx">                                                                 $cqueries[] = &quot;ALTER TABLE {$table} ALTER COLUMN {$tablefield-&gt;Field} SET DEFAULT '{$default_value}'&quot;;
</span><span class="cx">                                                                 $for_update[$table.'.'.$tablefield-&gt;Field] = &quot;Changed default value of {$table}.{$tablefield-&gt;Field} from {$tablefield-&gt;Default} to {$default_value}&quot;;
</span><span class="lines">@@ -1306,14 +1300,13 @@
</span><span class="cx"> 
</span><span class="cx">                                                 // Remove the field from the array (so it's not added)
</span><span class="cx">                                                 unset($cfields[strtolower($tablefield-&gt;Field)]);
</span><del>-                                        }
-                                        else {
</del><ins>+                                        } else {
</ins><span class="cx">                                                 // This field exists in the table, but not in the creation queries?
</span><span class="cx">                                         }
</span><span class="cx">                                 }
</span><span class="cx"> 
</span><span class="cx">                                 // For every remaining field specified for the table
</span><del>-                                foreach($cfields as $fieldname =&gt; $fielddef) {
</del><ins>+                                foreach ($cfields as $fieldname =&gt; $fielddef) {
</ins><span class="cx">                                         // Push a query line into $cqueries that adds the field to that table
</span><span class="cx">                                         $cqueries[] = &quot;ALTER TABLE {$table} ADD COLUMN $fielddef&quot;;
</span><span class="cx">                                         $for_update[$table.'.'.$fieldname] = 'Added column '.$table.'.'.$fieldname;
</span><span class="lines">@@ -1323,12 +1316,12 @@
</span><span class="cx">                                 // Fetch the table index structure from the database
</span><span class="cx">                                 $tableindices = $wpdb-&gt;get_results(&quot;SHOW INDEX FROM {$table};&quot;);
</span><span class="cx"> 
</span><del>-                                if($tableindices) {
</del><ins>+                                if ($tableindices) {
</ins><span class="cx">                                         // Clear the index array
</span><span class="cx">                                         unset($index_ary);
</span><span class="cx"> 
</span><span class="cx">                                         // For every index in the table
</span><del>-                                        foreach($tableindices as $tableindex) {
</del><ins>+                                        foreach ($tableindices as $tableindex) {
</ins><span class="cx">                                                 // Add the index to the index data array
</span><span class="cx">                                                 $keyname = $tableindex-&gt;Key_name;
</span><span class="cx">                                                 $index_ary[$keyname]['columns'][] = array('fieldname' =&gt; $tableindex-&gt;Column_name, 'subpart' =&gt; $tableindex-&gt;Sub_part);
</span><span class="lines">@@ -1336,32 +1329,31 @@
</span><span class="cx">                                         }
</span><span class="cx"> 
</span><span class="cx">                                         // For each actual index in the index array
</span><del>-                                        foreach($index_ary as $index_name =&gt; $index_data) {
</del><ins>+                                        foreach ($index_ary as $index_name =&gt; $index_data) {
</ins><span class="cx">                                                 // Build a create string to compare to the query
</span><span class="cx">                                                 $index_string = '';
</span><del>-                                                if($index_name == 'PRIMARY') {
</del><ins>+                                                if ($index_name == 'PRIMARY') {
</ins><span class="cx">                                                         $index_string .= 'PRIMARY ';
</span><del>-                                                }
-                                                else if($index_data['unique']) {
</del><ins>+                                                } else if($index_data['unique']) {
</ins><span class="cx">                                                         $index_string .= 'UNIQUE ';
</span><span class="cx">                                                 }
</span><span class="cx">                                                 $index_string .= 'KEY ';
</span><del>-                                                if($index_name != 'PRIMARY') {
</del><ins>+                                                if ($index_name != 'PRIMARY') {
</ins><span class="cx">                                                         $index_string .= $index_name;
</span><span class="cx">                                                 }
</span><span class="cx">                                                 $index_columns = '';
</span><span class="cx">                                                 // For each column in the index
</span><del>-                                                foreach($index_data['columns'] as $column_data) {
-                                                        if($index_columns != '') $index_columns .= ',';
</del><ins>+                                                foreach ($index_data['columns'] as $column_data) {
+                                                        if ($index_columns != '') $index_columns .= ',';
</ins><span class="cx">                                                         // Add the field to the column list string
</span><span class="cx">                                                         $index_columns .= $column_data['fieldname'];
</span><del>-                                                        if($column_data['subpart'] != '') {
</del><ins>+                                                        if ($column_data['subpart'] != '') {
</ins><span class="cx">                                                                 $index_columns .= '('.$column_data['subpart'].')';
</span><span class="cx">                                                         }
</span><span class="cx">                                                 }
</span><span class="cx">                                                 // Add the column list to the index create string
</span><span class="cx">                                                 $index_string .= ' ('.$index_columns.')';
</span><del>-                                                if(!(($aindex = array_search($index_string, $indices)) === false)) {
</del><ins>+                                                if (!(($aindex = array_search($index_string, $indices)) === false)) {
</ins><span class="cx">                                                         unset($indices[$aindex]);
</span><span class="cx">                                                         //echo &quot;&lt;pre style=\&quot;border:1px solid #ccc;margin-top:5px;\&quot;&gt;{$table}:&lt;br /&gt;Found index:&quot;.$index_string.&quot;&lt;/pre&gt;\n&quot;;
</span><span class="cx">                                                 }
</span><span class="lines">@@ -1386,8 +1378,8 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $allqueries = array_merge($cqueries, $iqueries);
</span><del>-        if($execute) {
-                foreach($allqueries as $query) {
</del><ins>+        if ($execute) {
+                foreach ($allqueries as $query) {
</ins><span class="cx">                         //echo &quot;&lt;pre style=\&quot;border:1px solid #ccc;margin-top:5px;\&quot;&gt;&quot;.print_r($query, true).&quot;&lt;/pre&gt;\n&quot;;
</span><span class="cx">                         $wpdb-&gt;query($query);
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkwpadminmseditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-edit.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-edit.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/ms-edit.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -204,10 +204,10 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 if ( $_POST['update_home_url'] == 'update' ) {
</span><del>-                        if( get_option( 'siteurl' ) != 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] )
</del><ins>+                        if ( get_option( 'siteurl' ) != 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] )
</ins><span class="cx">                                 update_option( 'siteurl', 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] );
</span><span class="cx"> 
</span><del>-                        if( get_option( 'home' ) != 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] )
</del><ins>+                        if ( get_option( 'home' ) != 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] )
</ins><span class="cx">                                 update_option( 'home', 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] );
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -245,7 +245,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 // remove user
</span><del>-                if( is_array( $_POST[ 'blogusers' ] ) ) {
</del><ins>+                if ( is_array( $_POST[ 'blogusers' ] ) ) {
</ins><span class="cx">                         reset( $_POST[ 'blogusers' ] );
</span><span class="cx">                         foreach ( (array) $_POST[ 'blogusers' ] as $key =&gt; $val )
</span><span class="cx">                                 remove_user_from_blog( $key, $id );
</span></span></pre></div>
<a id="trunkwpadminmsoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-options.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-options.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/ms-options.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Allow new registrations') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;?php
</span><del>-                                if( !get_site_option('registration') )
</del><ins>+                                if ( !get_site_option('registration') )
</ins><span class="cx">                                         update_site_option( 'registration', 'all' );
</span><span class="cx">                                 ?&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">                                         &lt;label&gt;&lt;input name=&quot;registration&quot; type=&quot;radio&quot; id=&quot;registration3&quot; value='user' &lt;?php echo get_site_option('registration') == 'user' ? 'checked=&quot;checked&quot;' : ''; ?&gt; /&gt; &lt;?php _e('Only user account can be created.'); ?&gt;&lt;/label&gt;&lt;br /&gt;
</span><span class="cx">                                         &lt;label&gt;&lt;input name=&quot;registration&quot; type=&quot;radio&quot; id=&quot;registration4&quot; value='blog' &lt;?php echo get_site_option('registration') == 'blog' ? 'checked=&quot;checked&quot;' : ''; ?&gt; /&gt; &lt;?php _e('Only logged in users can create new blogs.'); ?&gt;&lt;/label&gt;&lt;br /&gt;
</span><span class="cx">                                         &lt;p&gt;&lt;?php _e('Disable or enable registration and who or what can be registered. (Default=all)'); ?&gt;&lt;/p&gt;
</span><del>-                                        &lt;?php if( is_subdomain_install() ) {
</del><ins>+                                        &lt;?php if ( is_subdomain_install() ) {
</ins><span class="cx">                                                 echo &quot;&lt;p&gt;&quot; . __('If registration is disabled, please set &quot;NOBLOGREDIRECT&quot; in wp-config.php to a url you will redirect visitors to if they visit a non existant blog.') . &quot;&lt;/p&gt;&quot;;
</span><span class="cx">                                         } ?&gt;
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Registration notification') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;?php
</span><del>-                                if( !get_site_option('registrationnotification') )
</del><ins>+                                if ( !get_site_option('registrationnotification') )
</ins><span class="cx">                                         update_site_option( 'registrationnotification', 'yes' );
</span><span class="cx">                                 ?&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><span class="lines">@@ -201,16 +201,16 @@
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Upload media button') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?&gt;
</span><del>-                                &lt;td&gt;&lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_image&quot; name=&quot;mu_media_buttons[image]&quot; value='1' &lt;?php if( $mu_media_buttons[ 'image' ] ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Images' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
-                                &lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_video&quot; name=&quot;mu_media_buttons[video]&quot; value='1' &lt;?php if( $mu_media_buttons[ 'video' ] ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Videos' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
-                                &lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_audio&quot; name=&quot;mu_media_buttons[audio]&quot; value='1' &lt;?php if( $mu_media_buttons[ 'audio' ] ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Music' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</del><ins>+                                &lt;td&gt;&lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_image&quot; name=&quot;mu_media_buttons[image]&quot; value='1' &lt;?php if ( $mu_media_buttons[ 'image' ] ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Images' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
+                                &lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_video&quot; name=&quot;mu_media_buttons[video]&quot; value='1' &lt;?php if ( $mu_media_buttons[ 'video' ] ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Videos' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
+                                &lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_audio&quot; name=&quot;mu_media_buttons[audio]&quot; value='1' &lt;?php if ( $mu_media_buttons[ 'audio' ] ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Music' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</ins><span class="cx">                                 &lt;?php _e( 'The media upload buttons to display on the &quot;Write Post&quot; page. Make sure you update the &quot;Upload File Types&quot; below as well.' ); ?&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Blog upload space check') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><del>-                                &lt;label&gt;&lt;input type='radio' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='0' &lt;?php if( !get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Enabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
-                                &lt;label&gt;&lt;input type='radio' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='1' &lt;?php if( get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Disabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</del><ins>+                                &lt;label&gt;&lt;input type='radio' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='0' &lt;?php if ( !get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Enabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
+                                &lt;label&gt;&lt;input type='radio' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='1' &lt;?php if ( get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?&gt;/&gt; &lt;?php _e( 'Disabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</ins><span class="cx">                                 &lt;?php _e( 'By default there is a limit on the total size of files uploaded but it can be disabled here.' ); ?&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="lines">@@ -231,7 +231,7 @@
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Admin Notice Feed') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;td&gt;&lt;input name=&quot;admin_notice_feed&quot; style=&quot;width: 95%&quot; type=&quot;text&quot; id=&quot;admin_notice_feed&quot; value=&quot;&lt;?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?&gt;&quot; size=&quot;80&quot; /&gt;&lt;br /&gt;
</span><span class="cx">                                 &lt;?php _e( 'Display the latest post from this RSS or Atom feed on all blog dashboards. Leave blank to disable.' ); ?&gt;&lt;br /&gt;
</span><del>-                                &lt;?php if( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site-&gt;domain . $current_site-&gt;path . 'feed/' )
</del><ins>+                                &lt;?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site-&gt;domain . $current_site-&gt;path . 'feed/' )
</ins><span class="cx">                                         echo __( &quot;A good one to use would be the feed from your main blog: &quot; ) . 'http://' . $current_site-&gt;domain . $current_site-&gt;path . 'feed/'; ?&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                 &lt;/table&gt;
</span><span class="lines">@@ -251,12 +251,12 @@
</span><span class="cx">                 &lt;h3&gt;&lt;?php _e('Site Wide Settings &lt;em&gt;(These settings may be overridden by blog owners)&lt;/em&gt;') ?&gt;&lt;/h3&gt;
</span><span class="cx">                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                         &lt;?php
</span><del>-                        if( is_dir( ABSPATH . LANGDIR ) &amp;&amp; $dh = opendir( ABSPATH . LANGDIR ) )
</del><ins>+                        if ( is_dir( ABSPATH . LANGDIR ) &amp;&amp; $dh = opendir( ABSPATH . LANGDIR ) )
</ins><span class="cx">                                 while( ( $lang_file = readdir( $dh ) ) !== false )
</span><del>-                                        if( substr( $lang_file, -3 ) == '.mo' )
</del><ins>+                                        if ( substr( $lang_file, -3 ) == '.mo' )
</ins><span class="cx">                                                 $lang_files[] = $lang_file;
</span><span class="cx">                         $lang = get_site_option('WPLANG');
</span><del>-                        if( is_array($lang_files) &amp;&amp; !empty($lang_files) ) {
</del><ins>+                        if ( is_array($lang_files) &amp;&amp; !empty($lang_files) ) {
</ins><span class="cx">                                 ?&gt;
</span><span class="cx">                                 &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                         &lt;th width=&quot;33%&quot;&gt;&lt;?php _e('Default Language') ?&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/ms-sites.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx">                                                         &lt;tr class=&quot;form-field form-required&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Path') ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;&lt;input name=&quot;blog[path]&quot; type=&quot;text&quot; id=&quot;path&quot; value=&quot;&lt;?php echo esc_attr($details['path']) ?&gt;&quot; size=&quot;40&quot; style='margin-bottom:5px;' /&gt;
</span><del>-                                                                &lt;br /&gt;&lt;input type='checkbox' style='width:20px;' name='update_home_url' value='update' &lt;?php if( get_blog_option( $id, 'siteurl' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) || get_blog_option( $id, 'home' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e( &quot;Update 'siteurl' and 'home' as well.&quot; ); ?&gt;&lt;/td&gt;
</del><ins>+                                                                &lt;br /&gt;&lt;input type='checkbox' style='width:20px;' name='update_home_url' value='update' &lt;?php if ( get_blog_option( $id, 'siteurl' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) || get_blog_option( $id, 'home' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e( &quot;Update 'siteurl' and 'home' as well.&quot; ); ?&gt;&lt;/td&gt;
</ins><span class="cx">                                                         &lt;/tr&gt;
</span><span class="cx">                                                         &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Registered') ?&gt;&lt;/th&gt;
</span><span class="lines">@@ -108,36 +108,36 @@
</span><span class="cx">                                                         &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Public') ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><del>-                                                                        &lt;input type='radio' style='width:20px;' name='blog[public]' value='1' &lt;?php if( $details['public'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
-                                                                        &lt;input type='radio' style='width:20px;' name='blog[public]' value='0' &lt;?php if( $details['public'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</del><ins>+                                                                        &lt;input type='radio' style='width:20px;' name='blog[public]' value='1' &lt;?php if ( $details['public'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
+                                                                        &lt;input type='radio' style='width:20px;' name='blog[public]' value='0' &lt;?php if ( $details['public'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</ins><span class="cx">                                                                 &lt;/td&gt;
</span><span class="cx">                                                         &lt;/tr&gt;
</span><span class="cx">                                                         &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Archived' ); ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><del>-                                                                        &lt;input type='radio' style='width:20px;' name='blog[archived]' value='1' &lt;?php if( $details['archived'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
-                                                                        &lt;input type='radio' style='width:20px;' name='blog[archived]' value='0' &lt;?php if( $details['archived'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</del><ins>+                                                                        &lt;input type='radio' style='width:20px;' name='blog[archived]' value='1' &lt;?php if ( $details['archived'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
+                                                                        &lt;input type='radio' style='width:20px;' name='blog[archived]' value='0' &lt;?php if ( $details['archived'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</ins><span class="cx">                                                                 &lt;/td&gt;
</span><span class="cx">                                                         &lt;/tr&gt;
</span><span class="cx">                                                         &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Mature' ); ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><del>-                                                                        &lt;input type='radio' style='width:20px;' name='blog[mature]' value='1' &lt;?php if( $details['mature'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
-                                                                        &lt;input type='radio' style='width:20px;' name='blog[mature]' value='0' &lt;?php if( $details['mature'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</del><ins>+                                                                        &lt;input type='radio' style='width:20px;' name='blog[mature]' value='1' &lt;?php if ( $details['mature'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
+                                                                        &lt;input type='radio' style='width:20px;' name='blog[mature]' value='0' &lt;?php if ( $details['mature'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</ins><span class="cx">                                                                 &lt;/td&gt;
</span><span class="cx">                                                         &lt;/tr&gt;
</span><span class="cx">                                                         &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Spam' ); ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><del>-                                                                        &lt;input type='radio' style='width:20px;' name='blog[spam]' value='1' &lt;?php if( $details['spam'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
-                                                                        &lt;input type='radio' style='width:20px;' name='blog[spam]' value='0' &lt;?php if( $details['spam'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</del><ins>+                                                                        &lt;input type='radio' style='width:20px;' name='blog[spam]' value='1' &lt;?php if ( $details['spam'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
+                                                                        &lt;input type='radio' style='width:20px;' name='blog[spam]' value='0' &lt;?php if ( $details['spam'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</ins><span class="cx">                                                                 &lt;/td&gt;
</span><span class="cx">                                                         &lt;/tr&gt;
</span><span class="cx">                                                         &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Deleted' ); ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><del>-                                                                        &lt;input type='radio' style='width:20px;' name='blog[deleted]' value='1' &lt;?php if( $details['deleted'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
-                                                                        &lt;input type='radio' style='width:20px;' name='blog[deleted]' value='0' &lt;?php if( $details['deleted'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</del><ins>+                                                                        &lt;input type='radio' style='width:20px;' name='blog[deleted]' value='1' &lt;?php if ( $details['deleted'] == '1' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('Yes') ?&gt;
+                                                                        &lt;input type='radio' style='width:20px;' name='blog[deleted]' value='0' &lt;?php if ( $details['deleted'] == '0' ) echo 'checked=&quot;checked&quot;'; ?&gt; /&gt; &lt;?php _e('No') ?&gt;
</ins><span class="cx">                                                                 &lt;/td&gt;
</span><span class="cx">                                                         &lt;/tr&gt;
</span><span class="cx">                                                 &lt;/table&gt;
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx">                                                         &lt;?php
</span><span class="cx">                                                         $editblog_default_role = 'subscriber';
</span><span class="cx">                                                         foreach ( $options as $key =&gt; $val ) {
</span><del>-                                                                if( $val['option_name'] == 'default_role' ) {
</del><ins>+                                                                if ( $val['option_name'] == 'default_role' ) {
</ins><span class="cx">                                                                         $editblog_default_role = $val['option_value'];
</span><span class="cx">                                                                 }
</span><span class="cx">                                                                 $disabled = '';
</span><span class="lines">@@ -191,13 +191,13 @@
</span><span class="cx">                                         $themes = get_themes();
</span><span class="cx">                                         $blog_allowed_themes = wpmu_get_blog_allowedthemes( $id );
</span><span class="cx">                                         $allowed_themes = get_site_option( &quot;allowedthemes&quot; );
</span><del>-                                        if( $allowed_themes == false ) {
</del><ins>+                                        if ( $allowed_themes == false ) {
</ins><span class="cx">                                                 $allowed_themes = array_keys( $themes );
</span><span class="cx">                                         }
</span><span class="cx">                                         $out = '';
</span><span class="cx">                                         foreach( $themes as $key =&gt; $theme ) {
</span><span class="cx">                                                 $theme_key = wp_specialchars( $theme['Stylesheet'] );
</span><del>-                                                if( isset($allowed_themes[$theme_key] ) == false ) {
</del><ins>+                                                if ( isset($allowed_themes[$theme_key] ) == false ) {
</ins><span class="cx">                                                         $checked = ( isset($blog_allowed_themes[ $theme_key ]) ) ? 'checked=&quot;checked&quot;' : '';
</span><span class="cx">                                                         $out .= '&lt;tr class=&quot;form-field form-required&quot;&gt;
</span><span class="cx">                                                                         &lt;th title=&quot;'.htmlspecialchars( $theme[&quot;Description&quot;] ).'&quot; scope=&quot;row&quot;&gt;'.$key.'&lt;/th&gt;
</span><span class="lines">@@ -222,19 +222,19 @@
</span><span class="cx">                         &lt;?php
</span><span class="cx">                                         // Blog users
</span><span class="cx">                                         $blogusers = get_users_of_blog( $id );
</span><del>-                                        if( is_array( $blogusers ) ) {
</del><ins>+                                        if ( is_array( $blogusers ) ) {
</ins><span class="cx">                                                 echo '&lt;div id=&quot;blogedit_blogusers&quot; class=&quot;postbox&quot;&gt;&lt;h3 class=&quot;hndle&quot;&gt;&lt;span&gt;' . __('Blog Users') . '&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;inside&quot;&gt;';
</span><span class="cx">                                                 echo '&lt;table class=&quot;form-table&quot;&gt;';
</span><span class="cx">                                                 echo &quot;&lt;tr&gt;&lt;th&gt;&quot; . __('User') . &quot;&lt;/th&gt;&lt;th&gt;&quot; . __('Role') . &quot;&lt;/th&gt;&lt;th&gt;&quot; . __('Password') . &quot;&lt;/th&gt;&lt;th&gt;&quot; . __('Remove') . &quot;&lt;/th&gt;&lt;/tr&gt;&quot;;
</span><span class="cx">                                                 reset($blogusers);
</span><span class="cx">                                                 foreach ( (array) $blogusers as $key =&gt; $val ) {
</span><span class="cx">                                                         $t = @unserialize( $val-&gt;meta_value );
</span><del>-                                                        if( is_array( $t ) ) {
</del><ins>+                                                        if ( is_array( $t ) ) {
</ins><span class="cx">                                                                 reset( $t );
</span><span class="cx">                                                                 $existing_role = key( $t );
</span><span class="cx">                                                         }
</span><span class="cx">                                                         echo '&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;user-edit.php?user_id=' . $val-&gt;user_id . '&quot;&gt;' . $val-&gt;user_login . '&lt;/a&gt;&lt;/td&gt;';
</span><del>-                                                        if( $val-&gt;user_id != $current_user-&gt;data-&gt;ID ) {
</del><ins>+                                                        if ( $val-&gt;user_id != $current_user-&gt;data-&gt;ID ) {
</ins><span class="cx">                                                                 ?&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><span class="cx">                                                                         &lt;select name=&quot;role[&lt;?php echo $val-&gt;user_id ?&gt;]&quot; id=&quot;new_role&quot;&gt;&lt;?php
</span><span class="lines">@@ -316,11 +316,11 @@
</span><span class="cx"> 
</span><span class="cx">                 $query = &quot;SELECT * FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;;
</span><span class="cx"> 
</span><del>-                if( isset($_GET['blog_name']) ) {
</del><ins>+                if ( isset($_GET['blog_name']) ) {
</ins><span class="cx">                         $query .= &quot; AND ( {$wpdb-&gt;blogs}.domain LIKE '%{$like_s}%' OR {$wpdb-&gt;blogs}.path LIKE '%{$like_s}%' ) &quot;;
</span><del>-                } elseif( isset($_GET['blog_id']) ) {
</del><ins>+                } elseif ( isset($_GET['blog_id']) ) {
</ins><span class="cx">                         $query .= &quot; AND   blog_id = '&quot;. absint( $_GET['blog_id'] ).&quot;' &quot;;
</span><del>-                } elseif( isset($_GET['blog_ip']) ) {
</del><ins>+                } elseif ( isset($_GET['blog_ip']) ) {
</ins><span class="cx">                         $query = &quot;SELECT *
</span><span class="cx">                                 FROM {$wpdb-&gt;blogs}, {$wpdb-&gt;registration_log}
</span><span class="cx">                                 WHERE site_id = '{$wpdb-&gt;siteid}'
</span><span class="lines">@@ -328,23 +328,23 @@
</span><span class="cx">                                 AND {$wpdb-&gt;registration_log}.IP LIKE ('%{$like_s}%')&quot;;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if( isset( $_GET['sortby'] ) == false ) {
</del><ins>+                if ( isset( $_GET['sortby'] ) == false ) {
</ins><span class="cx">                         $_GET['sortby'] = 'id';
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if( $_GET['sortby'] == 'registered' ) {
</del><ins>+                if ( $_GET['sortby'] == 'registered' ) {
</ins><span class="cx">                         $query .= ' ORDER BY registered ';
</span><del>-                } elseif( $_GET['sortby'] == 'id' ) {
</del><ins>+                } elseif ( $_GET['sortby'] == 'id' ) {
</ins><span class="cx">                         $query .= ' ORDER BY ' . $wpdb-&gt;blogs . '.blog_id ';
</span><del>-                } elseif( $_GET['sortby'] == 'lastupdated' ) {
</del><ins>+                } elseif ( $_GET['sortby'] == 'lastupdated' ) {
</ins><span class="cx">                         $query .= ' ORDER BY last_updated ';
</span><del>-                } elseif( $_GET['sortby'] == 'blogname' ) {
</del><ins>+                } elseif ( $_GET['sortby'] == 'blogname' ) {
</ins><span class="cx">                         $query .= ' ORDER BY domain ';
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC';
</span><span class="cx"> 
</span><del>-                if( !empty($s) ) {
</del><ins>+                if ( !empty($s) ) {
</ins><span class="cx">                         $total = $wpdb-&gt;get_var( str_replace('SELECT *', 'SELECT COUNT(blog_id)', $query) );
</span><span class="cx">                 } else {
</span><span class="cx">                         $total = $wpdb-&gt;get_var( &quot;SELECT COUNT(blog_id) FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;);
</span><span class="lines">@@ -355,7 +355,7 @@
</span><span class="cx"> 
</span><span class="cx">                 // Pagination
</span><span class="cx">                 $url2 = &quot;&amp;amp;order=&quot; . $_GET['order'] . &quot;&amp;amp;sortby=&quot; . $_GET['sortby'] . &quot;&amp;amp;s=&quot;;
</span><del>-                if( $_GET[ 'blog_ip' ] ) {
</del><ins>+                if ( $_GET[ 'blog_ip' ] ) {
</ins><span class="cx">                         $url2 .= &quot;&amp;amp;ip_address=&quot; . urlencode( $s );
</span><span class="cx">                 } else {
</span><span class="cx">                         $url2 .= $s . &quot;&amp;amp;ip_address=&quot; . urlencode( $s );
</span><span class="lines">@@ -395,7 +395,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx"> 
</span><del>-                &lt;?php if( isset($_GET['s']) &amp;&amp; !empty($_GET['s']) ) : ?&gt;
</del><ins>+                &lt;?php if ( isset($_GET['s']) &amp;&amp; !empty($_GET['s']) ) : ?&gt;
</ins><span class="cx">                         &lt;p&gt;&lt;a href=&quot;ms-users.php?action=users&amp;s=&lt;?php echo urlencode( stripslashes( $s ) ) ?&gt;&quot;&gt;&lt;?php _e('Search Users:') ?&gt; &lt;strong&gt;&lt;?php echo stripslashes( $s ); ?&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
</span><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -410,13 +410,13 @@
</span><span class="cx">                         'users'        =&gt; __('Users')
</span><span class="cx">                 );
</span><span class="cx"> 
</span><del>-                if( has_filter( 'wpmublogsaction' ) )
</del><ins>+                if ( has_filter( 'wpmublogsaction' ) )
</ins><span class="cx">                         $posts_columns['plugins'] = __('Actions');
</span><span class="cx"> 
</span><span class="cx">                 $posts_columns = apply_filters('wpmu_blogs_columns', $posts_columns);
</span><span class="cx"> 
</span><span class="cx">                 $sortby_url = &quot;s=&quot;;
</span><del>-                if( $_GET[ 'blog_ip' ] ) {
</del><ins>+                if ( $_GET[ 'blog_ip' ] ) {
</ins><span class="cx">                         $sortby_url .= &quot;&amp;ip_address=&quot; . urlencode( $s );
</span><span class="cx">                 } else {
</span><span class="cx">                         $sortby_url .= urlencode( $s ) . &quot;&amp;ip_address=&quot; . urlencode( $s );
</span><span class="lines">@@ -429,7 +429,7 @@
</span><span class="cx">                                 &lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;?php foreach($posts_columns as $column_id =&gt; $column_display_name) {
</span><span class="cx">                                         $column_link = &quot;&lt;a href='ms-sites.php?{$sortby_url}&amp;amp;sortby={$column_id}&amp;amp;&quot;;
</span><del>-                                        if( $_GET['sortby'] == $column_id ) {
</del><ins>+                                        if ( $_GET['sortby'] == $column_id ) {
</ins><span class="cx">                                                 $column_link .= $_GET[ 'order' ] == 'DESC' ? 'order=ASC&amp;amp;' : 'order=DESC&amp;amp;';
</span><span class="cx">                                         }
</span><span class="cx">                                         $column_link .= &quot;apage={$apage}'&gt;{$column_display_name}&lt;/a&gt;&quot;;
</span><span class="lines">@@ -451,7 +451,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         $bgcolour = &quot;&quot;;
</span><span class="cx">                                         foreach ( $status_list as $status =&gt; $col ) {
</span><del>-                                                if( get_blog_status( $blog['blog_id'], $status ) == 1 ) {
</del><ins>+                                                if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) {
</ins><span class="cx">                                                         $bgcolour = &quot;style='background: $col'&quot;;
</span><span class="cx">                                                 }
</span><span class="cx">                                         }
</span><span class="lines">@@ -479,17 +479,17 @@
</span><span class="cx">                                                                         $controlActions[]        = '&lt;a href=&quot;ms-sites.php?action=editblog&amp;amp;id=' . $blog['blog_id'] . '&quot; class=&quot;edit&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
</span><span class="cx">                                                                         $controlActions[]        = &quot;&lt;a href='{$protocol}{$blog['domain']}{$blog['path']}wp-admin/' class='edit'&gt;&quot; . __('Backend') . '&lt;/a&gt;';
</span><span class="cx"> 
</span><del>-                                                                        if( get_blog_status( $blog['blog_id'], &quot;deleted&quot; ) == '1' )
</del><ins>+                                                                        if ( get_blog_status( $blog['blog_id'], &quot;deleted&quot; ) == '1' )
</ins><span class="cx">                                                                                 $controlActions[]        = '&lt;a class=&quot;delete&quot; href=&quot;ms-edit.php?action=confirm&amp;amp;action2=activateblog&amp;amp;ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to activate the blog %s&quot; ), $blogname ) ) . '&quot;&gt;' . __('Activate') . '&lt;/a&gt;';
</span><span class="cx">                                                                         else
</span><span class="cx">                                                                                 $controlActions[]        = '&lt;a class=&quot;delete&quot; href=&quot;ms-edit.php?action=confirm&amp;amp;action2=deactivateblog&amp;amp;ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to deactivate the blog %s&quot; ), $blogname ) ) . '&quot;&gt;' . __('Deactivate') . '&lt;/a&gt;';
</span><span class="cx"> 
</span><del>-                                                                        if( get_blog_status( $blog['blog_id'], &quot;archived&quot; ) == '1' )
</del><ins>+                                                                        if ( get_blog_status( $blog['blog_id'], &quot;archived&quot; ) == '1' )
</ins><span class="cx">                                                                                 $controlActions[]        = '&lt;a class=&quot;delete&quot; href=&quot;ms-edit.php?action=confirm&amp;amp;action2=unarchiveblog&amp;amp;id=' .  $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unarchive the blog %s&quot; ), $blogname ) ) . '&quot;&gt;' . __('Unarchive') . '&lt;/a&gt;';
</span><span class="cx">                                                                         else
</span><span class="cx">                                                                                 $controlActions[]        = '&lt;a class=&quot;delete&quot; href=&quot;ms-edit.php?action=confirm&amp;amp;action2=archiveblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to archive the blog %s&quot; ), $blogname ) ) . '&quot;&gt;' . __('Archive') . '&lt;/a&gt;';
</span><span class="cx"> 
</span><del>-                                                                        if( get_blog_status( $blog['blog_id'], &quot;spam&quot; ) == '1' )
</del><ins>+                                                                        if ( get_blog_status( $blog['blog_id'], &quot;spam&quot; ) == '1' )
</ins><span class="cx">                                                                                 $controlActions[]        = '&lt;a class=&quot;delete&quot; href=&quot;ms-edit.php?action=confirm&amp;amp;action2=unspamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unspam the blog %s&quot; ), $blogname ) ) . '&quot;&gt;' . __('Not Spam') . '&lt;/a&gt;';
</span><span class="cx">                                                                         else
</span><span class="cx">                                                                                 $controlActions[]        = '&lt;a class=&quot;delete&quot; href=&quot;ms-edit.php?action=confirm&amp;amp;action2=spamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to mark the blog %s as spam&quot; ), $blogname ) ) . '&quot;&gt;' . __(&quot;Spam&quot;) . '&lt;/a&gt;';
</span><span class="lines">@@ -534,7 +534,7 @@
</span><span class="cx">                                                                                 foreach ( $blogusers as $key =&gt; $val ) {
</span><span class="cx">                                                                                         echo '&lt;a href=&quot;user-edit.php?user_id=' . $val-&gt;user_id . '&quot;&gt;' . $val-&gt;user_login . '&lt;/a&gt; ('.$val-&gt;user_email.')&lt;br /&gt;';
</span><span class="cx">                                                                                 }
</span><del>-                                                                                if( $blogusers_warning != '' ) {
</del><ins>+                                                                                if ( $blogusers_warning != '' ) {
</ins><span class="cx">                                                                                         echo '&lt;strong&gt;' . $blogusers_warning . '&lt;/strong&gt;&lt;br /&gt;';
</span><span class="cx">                                                                                 }
</span><span class="cx">                                                                         }
</span><span class="lines">@@ -544,7 +544,7 @@
</span><span class="cx">                                                         break;
</span><span class="cx"> 
</span><span class="cx">                                                         case 'plugins': ?&gt;
</span><del>-                                                                &lt;?php if( has_filter( 'wpmublogsaction' ) ) { ?&gt;
</del><ins>+                                                                &lt;?php if ( has_filter( 'wpmublogsaction' ) ) { ?&gt;
</ins><span class="cx">                                                                 &lt;td valign=&quot;top&quot;&gt;
</span><span class="cx">                                                                         &lt;?php do_action( &quot;wpmublogsaction&quot;, $blog['blog_id'] ); ?&gt;
</span><span class="cx">                                                                 &lt;/td&gt;
</span><span class="lines">@@ -552,7 +552,7 @@
</span><span class="cx">                                                         &lt;?php break;
</span><span class="cx"> 
</span><span class="cx">                                                         default: ?&gt;
</span><del>-                                                                &lt;?php if( has_filter( 'manage_blogs_custom_column' ) ) { ?&gt;
</del><ins>+                                                                &lt;?php if ( has_filter( 'manage_blogs_custom_column' ) ) { ?&gt;
</ins><span class="cx">                                                                 &lt;td valign=&quot;top&quot;&gt;
</span><span class="cx">                                                                         &lt;?php do_action('manage_blogs_custom_column', $column_name, $blog['blog_id']); ?&gt;
</span><span class="cx">                                                                 &lt;/td&gt;
</span></span></pre></div>
<a id="trunkwpadminmsupgradesitephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-upgrade-site.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-upgrade-site.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/ms-upgrade-site.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -25,14 +25,14 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 $blogs = $wpdb-&gt;get_results( &quot;SELECT * FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY registered DESC LIMIT {$n}, 5&quot;, ARRAY_A );
</span><del>-                if( is_array( $blogs ) ) {
</del><ins>+                if ( is_array( $blogs ) ) {
</ins><span class="cx">                         echo &quot;&lt;ul&gt;&quot;;
</span><span class="cx">                         foreach( (array) $blogs as $details ) {
</span><del>-                                if( $details['spam'] == 0 &amp;&amp; $details['deleted'] == 0 &amp;&amp; $details['archived'] == 0 ) {
</del><ins>+                                if ( $details['spam'] == 0 &amp;&amp; $details['deleted'] == 0 &amp;&amp; $details['archived'] == 0 ) {
</ins><span class="cx">                                         $siteurl = $wpdb-&gt;get_var(&quot;SELECT option_value from {$wpdb-&gt;base_prefix}{$details['blog_id']}_options WHERE option_name = 'siteurl'&quot;);
</span><span class="cx">                                         echo &quot;&lt;li&gt;$siteurl&lt;/li&gt;&quot;;
</span><span class="cx">                                         $response = wp_remote_get( trailingslashit( $siteurl ) . &quot;wp-admin/upgrade.php?step=1&quot;, array( 'timeout' =&gt; 120, 'httpversion' =&gt; '1.1' ) );
</span><del>-                                        if( is_wp_error( $response ) ) {
</del><ins>+                                        if ( is_wp_error( $response ) ) {
</ins><span class="cx">                                                 wp_die( &quot;&lt;strong&gt;Warning!&lt;/strong&gt; Problem upgrading {$siteurl}. Your server may not be able to connect to blogs running on it.&lt;br /&gt; Error message: &lt;em&gt;&quot; . $response-&gt;get_error_message() .&quot;&lt;/em&gt;&quot; );
</span><span class="cx">                                         }
</span><span class="cx">                                         do_action( 'after_mu_upgrade', $response );
</span></span></pre></div>
<a id="trunkwpadminmsusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-users.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-users.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/ms-users.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -49,30 +49,30 @@
</span><span class="cx"> 
</span><span class="cx">         $query = &quot;SELECT * FROM {$wpdb-&gt;users}&quot;;
</span><span class="cx"> 
</span><del>-        if( !empty( $s ) ) {
</del><ins>+        if ( !empty( $s ) ) {
</ins><span class="cx">                 $search = '%' . trim( $s ) . '%';
</span><span class="cx">                 $query .= &quot; WHERE user_login LIKE '$search' OR user_email LIKE '$search'&quot;;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if( !isset($_GET['sortby']) ) {
</del><ins>+        if ( !isset($_GET['sortby']) ) {
</ins><span class="cx">                 $_GET['sortby'] = 'id';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if( $_GET['sortby'] == 'email' ) {
</del><ins>+        if ( $_GET['sortby'] == 'email' ) {
</ins><span class="cx">                 $query .= ' ORDER BY user_email ';
</span><del>-        } elseif( $_GET['sortby'] == 'id' ) {
</del><ins>+        } elseif ( $_GET['sortby'] == 'id' ) {
</ins><span class="cx">                 $query .= ' ORDER BY ID ';
</span><del>-        } elseif( $_GET['sortby'] == 'login' ) {
</del><ins>+        } elseif ( $_GET['sortby'] == 'login' ) {
</ins><span class="cx">                 $query .= ' ORDER BY user_login ';
</span><del>-        } elseif( $_GET['sortby'] == 'name' ) {
</del><ins>+        } elseif ( $_GET['sortby'] == 'name' ) {
</ins><span class="cx">                 $query .= ' ORDER BY display_name ';
</span><del>-        } elseif( $_GET['sortby'] == 'registered' ) {
</del><ins>+        } elseif ( $_GET['sortby'] == 'registered' ) {
</ins><span class="cx">                 $query .= ' ORDER BY user_registered ';
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC';
</span><span class="cx"> 
</span><del>-        if( !empty( $s )) {
</del><ins>+        if ( !empty( $s )) {
</ins><span class="cx">                 $total = $wpdb-&gt;get_var( str_replace('SELECT *', 'SELECT COUNT(ID)', $query) );
</span><span class="cx">         } else {
</span><span class="cx">                 $total = $wpdb-&gt;get_var( &quot;SELECT COUNT(ID) FROM {$wpdb-&gt;users}&quot;);
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><del>-                &lt;?php if( isset($_GET['s']) &amp;&amp; $_GET['s'] != '' ) : ?&gt;
</del><ins>+                &lt;?php if ( isset($_GET['s']) &amp;&amp; $_GET['s'] != '' ) : ?&gt;
</ins><span class="cx">                         &lt;p&gt;&lt;a href=&quot;ms-sites.php?action=blogs&amp;amp;s=&lt;?php echo urlencode( stripslashes( $s ) ); ?&gt;&amp;blog_name=Search+blogs+by+name&quot;&gt;&lt;?php _e('Search Blogs for') ?&gt; &lt;strong&gt;&lt;?php echo stripslashes( $s ) ?&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
</span><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -143,12 +143,12 @@
</span><span class="cx">                         &lt;thead&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><span class="cx">                                 &lt;?php foreach( (array) $posts_columns as $column_id =&gt; $column_display_name) {
</span><del>-                                        if( $column_id == 'blogs' ) {
</del><ins>+                                        if ( $column_id == 'blogs' ) {
</ins><span class="cx">                                                 echo '&lt;th scope=&quot;col&quot;&gt;'.__('Blogs').'&lt;/th&gt;';
</span><del>-                                        } elseif( $column_id == 'checkbox') {
</del><ins>+                                        } elseif ( $column_id == 'checkbox') {
</ins><span class="cx">                                                 echo '&lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; /&gt;&lt;/th&gt;';
</span><span class="cx">                                         } else { ?&gt;
</span><del>-                                                &lt;th scope=&quot;col&quot;&gt;&lt;a href=&quot;ms-users.php?sortby=&lt;?php echo $column_id ?&gt;&amp;amp;&lt;?php if( $_GET['sortby'] == $column_id ) { if( $_GET['order'] == 'DESC' ) { echo &quot;order=ASC&amp;amp;&quot; ; } else { echo &quot;order=DESC&amp;amp;&quot;; } } ?&gt;apage=&lt;?php echo $apage ?&gt;&quot;&gt;&lt;?php echo $column_display_name; ?&gt;&lt;/a&gt;&lt;/th&gt;
</del><ins>+                                                &lt;th scope=&quot;col&quot;&gt;&lt;a href=&quot;ms-users.php?sortby=&lt;?php echo $column_id ?&gt;&amp;amp;&lt;?php if ( $_GET['sortby'] == $column_id ) { if ( $_GET['order'] == 'DESC' ) { echo &quot;order=ASC&amp;amp;&quot; ; } else { echo &quot;order=DESC&amp;amp;&quot;; } } ?&gt;apage=&lt;?php echo $apage ?&gt;&quot;&gt;&lt;?php echo $column_display_name; ?&gt;&lt;/a&gt;&lt;/th&gt;
</ins><span class="cx">                                         &lt;?php } ?&gt;
</span><span class="cx">                                 &lt;?php } ?&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="lines">@@ -163,7 +163,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         $bgcolour = &quot;&quot;;
</span><span class="cx">                                         foreach ( $status_list as $status =&gt; $col ) {
</span><del>-                                                if( $user[$status] ) {
</del><ins>+                                                if ( $user[$status] ) {
</ins><span class="cx">                                                         $bgcolour = &quot;style='background: $col'&quot;;
</span><span class="cx">                                                 }
</span><span class="cx">                                         }
</span><span class="lines">@@ -216,7 +216,7 @@
</span><span class="cx">                                                                 ?&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><span class="cx">                                                                         &lt;?php
</span><del>-                                                                        if( is_array( $blogs ) ) {
</del><ins>+                                                                        if ( is_array( $blogs ) ) {
</ins><span class="cx">                                                                                 foreach ( (array) $blogs as $key =&gt; $val ) {
</span><span class="cx">                                                                                         $path        = ($val-&gt;path == '/') ? '' : $val-&gt;path;
</span><span class="cx">                                                                                         echo '&lt;a href=&quot;ms-sites.php?action=editblog&amp;amp;id=' . $val-&gt;userblog_id . '&quot;&gt;' . str_replace( '.' . $current_site-&gt;domain, '', $val-&gt;domain . $path ) . '&lt;/a&gt;';
</span><span class="lines">@@ -227,7 +227,7 @@
</span><span class="cx"> 
</span><span class="cx">                                                                                         // View
</span><span class="cx">                                                                                         echo '&lt;a ';
</span><del>-                                                                                        if( get_blog_status( $val-&gt;userblog_id, 'spam' ) == 1 )
</del><ins>+                                                                                        if ( get_blog_status( $val-&gt;userblog_id, 'spam' ) == 1 )
</ins><span class="cx">                                                                                                 echo 'style=&quot;background-color: #f66&quot; ';
</span><span class="cx">                                                                                         echo 'target=&quot;_new&quot; href=&quot;http://'.$val-&gt;domain . $val-&gt;path.'&quot;&gt;' . __('View') . '&lt;/a&gt;';
</span><span class="cx"> 
</span><span class="lines">@@ -275,7 +275,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><del>-if( apply_filters('show_adduser_fields', true) ) :
</del><ins>+if ( apply_filters('show_adduser_fields', true) ) :
</ins><span class="cx"> ?&gt;
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">         &lt;h2&gt;&lt;?php _e('Add user') ?&gt;&lt;/h2&gt;
</span></span></pre></div>
<a id="trunkwpadminoptionsgeneralphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-general.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-general.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/options-general.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -294,11 +294,11 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> if ( is_multisite() &amp;&amp; is_dir( ABSPATH . LANGDIR ) &amp;&amp; $dh = opendir( ABSPATH . LANGDIR ) )
</span><span class="cx">         while( ( $lang_file = readdir( $dh ) ) !== false )
</span><del>-                if( substr( $lang_file, -3 ) == '.mo' )
</del><ins>+                if ( substr( $lang_file, -3 ) == '.mo' )
</ins><span class="cx">                         $lang_files[] = $lang_file;
</span><span class="cx"> $lang = get_option('WPLANG');
</span><span class="cx"> 
</span><del>-if( is_array($lang_files) &amp;&amp; !empty($lang_files) ) {
</del><ins>+if ( is_array($lang_files) &amp;&amp; !empty($lang_files) ) {
</ins><span class="cx">         ?&gt;
</span><span class="cx">         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                 &lt;th width=&quot;33%&quot; scope=&quot;row&quot;&gt;&lt;?php _e('Blog language:') ?&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkwpadminoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/options.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> 
</span><span class="cx"> if ( is_multisite() &amp;&amp; is_super_admin() &amp;&amp; $_GET[ 'adminhash' ] ) {
</span><span class="cx">         $new_admin_details = get_option( 'adminhash' );
</span><del>-        if( is_array( $new_admin_details ) &amp;&amp; $new_admin_details[ 'hash' ] == $_GET[ 'adminhash' ] &amp;&amp; $new_admin_details[ 'newemail' ] != '' ) {
</del><ins>+        if ( is_array( $new_admin_details ) &amp;&amp; $new_admin_details[ 'hash' ] == $_GET[ 'adminhash' ] &amp;&amp; $new_admin_details[ 'newemail' ] != '' ) {
</ins><span class="cx">                 update_option( &quot;admin_email&quot;, $new_admin_details[ 'newemail' ] );
</span><span class="cx">                 delete_option( &quot;adminhash&quot; );
</span><span class="cx">                 delete_option( &quot;new_admin_email&quot; );
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx"> foreach ( (array) $options as $option) :
</span><span class="cx">         $disabled = '';
</span><span class="cx">         $option-&gt;option_name = esc_attr($option-&gt;option_name);
</span><del>-        if( $option-&gt;option_name == '' )
</del><ins>+        if ( $option-&gt;option_name == '' )
</ins><span class="cx">                 continue;
</span><span class="cx">         if ( is_serialized($option-&gt;option_value) ) {
</span><span class="cx">                 if ( is_serialized_string($option-&gt;option_value) ) {
</span></span></pre></div>
<a id="trunkwpadminplugininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/plugin-install.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/plugin-install.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/plugin-install.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -36,11 +36,11 @@
</span><span class="cx"> $nonmenu_tabs = apply_filters('install_plugins_nonmenu_tabs', $nonmenu_tabs);
</span><span class="cx"> 
</span><span class="cx"> //If a non-valid menu tab has been selected, And its not a non-menu action.
</span><del>-if( empty($tab) || ( ! isset($tabs[ $tab ]) &amp;&amp; ! in_array($tab, (array)$nonmenu_tabs) ) ) {
</del><ins>+if ( empty($tab) || ( ! isset($tabs[ $tab ]) &amp;&amp; ! in_array($tab, (array)$nonmenu_tabs) ) ) {
</ins><span class="cx">         $tab_actions = array_keys($tabs);
</span><span class="cx">         $tab = $tab_actions[0];
</span><span class="cx"> }
</span><del>-if( empty($paged) )
</del><ins>+if ( empty($paged) )
</ins><span class="cx">         $paged = 1;
</span><span class="cx"> 
</span><span class="cx"> wp_enqueue_style( 'plugin-install' );
</span></span></pre></div>
<a id="trunkwpadminpluginsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/plugins.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/plugins.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/plugins.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -165,12 +165,12 @@
</span><span class="cx">                                         foreach ( (array) $plugins as $plugin ) {
</span><span class="cx">                                                 if ( '.' == dirname($plugin) ) {
</span><span class="cx">                                                         $files_to_delete[] = WP_PLUGIN_DIR . '/' . $plugin;
</span><del>-                                                        if( $data = get_plugin_data(WP_PLUGIN_DIR . '/' . $plugin) )
</del><ins>+                                                        if ( $data = get_plugin_data(WP_PLUGIN_DIR . '/' . $plugin) )
</ins><span class="cx">                                                                 $plugin_info[ $plugin ] = $data;
</span><span class="cx">                                                 } else {
</span><span class="cx">                                                         //Locate all the files in that folder:
</span><span class="cx">                                                         $files = list_files( WP_PLUGIN_DIR . '/' . dirname($plugin) );
</span><del>-                                                        if( $files ) {
</del><ins>+                                                        if ( $files ) {
</ins><span class="cx">                                                                 $files_to_delete = array_merge($files_to_delete, $files);
</span><span class="cx">                                                         }
</span><span class="cx">                                                         //Get plugins list from that folder
</span><span class="lines">@@ -505,7 +505,7 @@
</span><span class="cx">         &lt;?php endif; ?&gt;
</span><span class="cx">                 &lt;/select&gt;
</span><span class="cx">                 &lt;input type=&quot;submit&quot; name=&quot;doaction_active&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; class=&quot;button-secondary action&quot; /&gt;
</span><del>-        &lt;?php if( 'recent' == $context ) : ?&gt;
</del><ins>+        &lt;?php if ( 'recent' == $context ) : ?&gt;
</ins><span class="cx">                 &lt;input type=&quot;submit&quot; name=&quot;clear-recent-list&quot; value=&quot;&lt;?php esc_attr_e('Clear List') ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
</span><span class="cx">         &lt;?php endif; ?&gt;
</span><span class="cx">         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminpressthisphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/press-this.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/press-this.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/press-this.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx">         $content = isset($_POST['content']) ? $_POST['content'] : '';
</span><span class="cx"> 
</span><span class="cx">         $upload = false;
</span><del>-        if( !empty($_POST['photo_src']) &amp;&amp; current_user_can('upload_files') ) {
</del><ins>+        if ( !empty($_POST['photo_src']) &amp;&amp; current_user_can('upload_files') ) {
</ins><span class="cx">                 foreach( (array) $_POST['photo_src'] as $key =&gt; $image) {
</span><span class="cx">                         // see if files exist in content - we don't want to upload non-used selected files.
</span><span class="cx">                         if ( strpos($_POST['content'], htmlspecialchars($image)) !== false ) {
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">                                 $upload = media_sideload_image($image, $post_ID, $desc);
</span><span class="cx"> 
</span><span class="cx">                                 // Replace the POSTED content &lt;img&gt; with correct uploaded ones. Regex contains fix for Magic Quotes
</span><del>-                                if( !is_wp_error($upload) )
</del><ins>+                                if ( !is_wp_error($upload) )
</ins><span class="cx">                                         $content = preg_replace('/&lt;img ([^&gt;]*)src=\\\?(\&quot;|\')'.preg_quote(htmlspecialchars($image), '/').'\\\?(\2)([^&gt;\/]*)\/*&gt;/is', $upload, $content);
</span><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="lines">@@ -184,7 +184,7 @@
</span><span class="cx">                  */
</span><span class="cx">                 function get_images_from_uri($uri) {
</span><span class="cx">                         $uri = preg_replace('/\/#.+?$/','', $uri);
</span><del>-                        if( preg_match('/\.(jpg|jpe|jpeg|png|gif)$/', $uri) &amp;&amp; !strpos($uri,'blogger.com') )
</del><ins>+                        if ( preg_match('/\.(jpg|jpe|jpeg|png|gif)$/', $uri) &amp;&amp; !strpos($uri,'blogger.com') )
</ins><span class="cx">                                 return &quot;'&quot; . esc_attr( html_entity_decode($uri) ) . &quot;'&quot;;
</span><span class="cx">                         $content = wp_remote_fopen($uri);
</span><span class="cx">                         if ( false === $content )
</span><span class="lines">@@ -198,9 +198,9 @@
</span><span class="cx">                         $sources = array();
</span><span class="cx">                         foreach ($matches[3] as $src) {
</span><span class="cx">                                 // if no http in url
</span><del>-                                if(strpos($src, 'http') === false)
</del><ins>+                                if (strpos($src, 'http') === false)
</ins><span class="cx">                                         // if it doesn't have a relative uri
</span><del>-                                        if( strpos($src, '../') === false &amp;&amp; strpos($src, './') === false &amp;&amp; strpos($src, '/') === 0)
</del><ins>+                                        if ( strpos($src, '../') === false &amp;&amp; strpos($src, './') === false &amp;&amp; strpos($src, '/') === 0)
</ins><span class="cx">                                                 $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src);
</span><span class="cx">                                         else
</span><span class="cx">                                                 $src = 'http://'.str_replace('//','/', $host['host'].'/'.dirname($host['path']).'/'.$src);
</span><span class="lines">@@ -553,7 +553,7 @@
</span><span class="cx">                                 &lt;li id=&quot;video_button&quot;&gt;
</span><span class="cx">                                         &lt;a title=&quot;&lt;?php _e('Embed a Video'); ?&gt;&quot; href=&quot;#&quot;&gt;&lt;img alt=&quot;&lt;?php _e('Embed a Video'); ?&gt;&quot; src=&quot;images/media-button-video.gif&quot;/&gt;&lt;/a&gt;
</span><span class="cx">                                 &lt;/li&gt;
</span><del>-                                &lt;?php if( user_can_richedit() ) { ?&gt;
</del><ins>+                                &lt;?php if ( user_can_richedit() ) { ?&gt;
</ins><span class="cx">                                 &lt;li id=&quot;switcher&quot;&gt;
</span><span class="cx">                                         &lt;?php wp_print_scripts( 'quicktags' ); ?&gt;
</span><span class="cx">                                         &lt;?php add_filter('the_editor_content', 'wp_richedit_pre'); ?&gt;
</span></span></pre></div>
<a id="trunkwpadminthemeeditorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/theme-editor.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/theme-editor.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/theme-editor.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> 
</span><span class="cx">                 // If we have two files of the same name prefer the one in the Template Directory
</span><span class="cx">                 // This means that we display the correct files for child themes which overload Templates as well as Styles
</span><del>-                if( array_key_exists($description, $template_mapping ) ) {
</del><ins>+                if ( array_key_exists($description, $template_mapping ) ) {
</ins><span class="cx">                         if ( false !== strpos( $template_file, $template_dir ) )  {
</span><span class="cx">                                 $template_mapping[ $description ] = array( _get_template_edit_filename($template_file, $template_dir), $filedesc );
</span><span class="cx">                         }
</span></span></pre></div>
<a id="trunkwpadminthemeinstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/theme-install.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/theme-install.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/theme-install.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -41,11 +41,11 @@
</span><span class="cx"> $nonmenu_tabs = apply_filters('install_themes_nonmenu_tabs', $nonmenu_tabs);
</span><span class="cx"> 
</span><span class="cx"> //If a non-valid menu tab has been selected, And its not a non-menu action.
</span><del>-if( empty($tab) || ( ! isset($tabs[ $tab ]) &amp;&amp; ! in_array($tab, (array)$nonmenu_tabs) ) ) {
</del><ins>+if ( empty($tab) || ( ! isset($tabs[ $tab ]) &amp;&amp; ! in_array($tab, (array)$nonmenu_tabs) ) ) {
</ins><span class="cx">         $tab_actions = array_keys($tabs);
</span><span class="cx">         $tab = $tab_actions[0];
</span><span class="cx"> }
</span><del>-if( empty($paged) )
</del><ins>+if ( empty($paged) )
</ins><span class="cx">         $paged = 1;
</span><span class="cx"> 
</span><span class="cx"> $body_id = $tab;
</span></span></pre></div>
<a id="trunkwpadminthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/themes.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/themes.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/themes.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -16,21 +16,21 @@
</span><span class="cx">         $themes = get_themes();
</span><span class="cx">         $ct = current_theme_info();
</span><span class="cx">         $allowed_themes = apply_filters(&quot;allowed_themes&quot;, get_site_allowed_themes() );
</span><del>-        if( $allowed_themes == false )
</del><ins>+        if ( $allowed_themes == false )
</ins><span class="cx">                 $allowed_themes = array();
</span><span class="cx"> 
</span><span class="cx">         $blog_allowed_themes = wpmu_get_blog_allowedthemes();
</span><del>-        if( is_array( $blog_allowed_themes ) )
</del><ins>+        if ( is_array( $blog_allowed_themes ) )
</ins><span class="cx">                 $allowed_themes = array_merge( $allowed_themes, $blog_allowed_themes );
</span><del>-        if( $blog_id != 1 )
</del><ins>+        if ( $blog_id != 1 )
</ins><span class="cx">                 unset( $allowed_themes[ &quot;h3&quot; ] );
</span><span class="cx"> 
</span><del>-        if( isset( $allowed_themes[ wp_specialchars( $ct-&gt;stylesheet ) ] ) == false )
</del><ins>+        if ( isset( $allowed_themes[ wp_specialchars( $ct-&gt;stylesheet ) ] ) == false )
</ins><span class="cx">                 $allowed_themes[ wp_specialchars( $ct-&gt;stylesheet ) ] = true;
</span><span class="cx"> 
</span><span class="cx">         reset( $themes );
</span><del>-        foreach( $themes as $key =&gt; $theme ) {
-                if( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {
</del><ins>+        foreach ( $themes as $key =&gt; $theme ) {
+                if ( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {
</ins><span class="cx">                         unset( $themes[ $key ] );
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> wp_enqueue_script( 'theme-preview' );
</span><span class="cx"> 
</span><span class="cx"> require_once('admin-header.php');
</span><del>-if( is_multisite() &amp;&amp; is_super_admin() ) {
</del><ins>+if ( is_multisite() &amp;&amp; is_super_admin() ) {
</ins><span class="cx">         ?&gt;&lt;div id=&quot;message0&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;?php _e('Administrator: new themes must be activated in the &lt;a href=&quot;wpmu-themes.php&quot;&gt;Themes Admin&lt;/a&gt; page before they appear here.'); ?&gt;&lt;/p&gt;&lt;/div&gt;&lt;?php
</span><span class="cx"> }
</span><span class="cx"> ?&gt;
</span></span></pre></div>
<a id="trunkwpadminupdatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/update.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/update.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/update.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -40,17 +40,17 @@
</span><span class="cx">                         wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
</span><span class="cx"> 
</span><span class="cx">                 check_admin_referer('activate-plugin_' . $plugin);
</span><del>-                if( ! isset($_GET['failure']) &amp;&amp; ! isset($_GET['success']) ) {
</del><ins>+                if ( ! isset($_GET['failure']) &amp;&amp; ! isset($_GET['success']) ) {
</ins><span class="cx">                         wp_redirect( 'update.php?action=activate-plugin&amp;failure=true&amp;plugin=' . $plugin . '&amp;_wpnonce=' . $_GET['_wpnonce'] );
</span><span class="cx">                         activate_plugin($plugin);
</span><span class="cx">                         wp_redirect( 'update.php?action=activate-plugin&amp;success=true&amp;plugin=' . $plugin . '&amp;_wpnonce=' . $_GET['_wpnonce'] );
</span><span class="cx">                         die();
</span><span class="cx">                 }
</span><span class="cx">                 iframe_header( __('Plugin Reactivation'), true );
</span><del>-                if( isset($_GET['success']) )
</del><ins>+                if ( isset($_GET['success']) )
</ins><span class="cx">                         echo '&lt;p&gt;' . __('Plugin reactivated successfully.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-                if( isset($_GET['failure']) ){
</del><ins>+                if ( isset($_GET['failure']) ){
</ins><span class="cx">                         echo '&lt;p&gt;' . __('Plugin failed to reactivate due to a fatal error.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><span class="cx">                         if ( defined('E_RECOVERABLE_ERROR') )
</span></span></pre></div>
<a id="trunkwpadminupgradephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/upgrade.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/upgrade.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/upgrade.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx">                         $backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) :  __get_option( 'home' ) . '/';
</span><span class="cx">                         $backto = esc_url_raw( $backto );
</span><span class="cx">                         $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
</span><del>-                if( $wpdb-&gt;get_row( &quot;SELECT blog_id FROM {$wpdb-&gt;blog_versions} WHERE blog_id = '{$wpdb-&gt;blogid}'&quot; ) ) {
</del><ins>+                if ( $wpdb-&gt;get_row( &quot;SELECT blog_id FROM {$wpdb-&gt;blog_versions} WHERE blog_id = '{$wpdb-&gt;blogid}'&quot; ) ) {
</ins><span class="cx">                         $wpdb-&gt;query( &quot;UPDATE {$wpdb-&gt;blog_versions} SET db_version = '{$wp_db_version}' WHERE blog_id = '{$wpdb-&gt;blogid}'&quot; );
</span><span class="cx">                 } else {
</span><span class="cx">                         $wpdb-&gt;query( &quot;INSERT INTO {$wpdb-&gt;blog_versions} ( `blog_id` , `db_version` , `last_updated` ) VALUES ( '{$wpdb-&gt;blogid}', '{$wp_db_version}', NOW());&quot; );
</span></span></pre></div>
<a id="trunkwpadminusereditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/user-edit.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/user-edit.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/user-edit.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -92,16 +92,16 @@
</span><span class="cx">         // WPMU must delete the user from the current blog if WP added him after editing.
</span><span class="cx">         $delete_role = false;
</span><span class="cx">         $blog_prefix = $wpdb-&gt;get_blog_prefix();
</span><del>-        if( $user_id != $current_user-&gt;ID ) {
</del><ins>+        if ( $user_id != $current_user-&gt;ID ) {
</ins><span class="cx">                 $cap = $wpdb-&gt;get_var( &quot;SELECT meta_value FROM {$wpdb-&gt;usermeta} WHERE user_id = '{$user_id}' AND meta_key = '{$blog_prefix}capabilities' AND meta_value = 'a:0:{}'&quot; );
</span><del>-                if( null == $cap &amp;&amp; $_POST[ 'role' ] == '' ) {
</del><ins>+                if ( null == $cap &amp;&amp; $_POST[ 'role' ] == '' ) {
</ins><span class="cx">                         $_POST[ 'role' ] = 'contributor';
</span><span class="cx">                         $delete_role = true;
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx">         if ( !isset( $errors ) || ( isset( $errors ) &amp;&amp; is_object( $errors ) &amp;&amp; false == $errors-&gt;get_error_codes() ) )
</span><span class="cx">                 $errors = edit_user($user_id);
</span><del>-        if( $delete_role ) // stops users being added to current blog when they are edited
</del><ins>+        if ( $delete_role ) // stops users being added to current blog when they are edited
</ins><span class="cx">                 update_usermeta( $user_id, $blog_prefix . 'capabilities' , '' );
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminusernewphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/user-new.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/user-new.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/user-new.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -53,13 +53,13 @@
</span><span class="cx">         } else {
</span><span class="cx">                 $user_login = preg_replace( &quot;/\s+/&quot;, '', sanitize_user( $_REQUEST[ 'user_login' ], true ) );
</span><span class="cx">                 $user_details = $wpdb-&gt;get_row( $wpdb-&gt;prepare( &quot;SELECT * FROM {$wpdb-&gt;users} WHERE user_login = %s AND user_email = %s&quot;, $user_login, $_REQUEST[ 'email' ] ) );
</span><del>-                if( $user_details ) {
</del><ins>+                if ( $user_details ) {
</ins><span class="cx">                         // Adding an existing user to this blog
</span><span class="cx">                         $new_user_email = wp_specialchars(trim($_REQUEST['email']));
</span><span class="cx">                         $redirect = 'user-new.php';
</span><span class="cx">                         $username = $user_details-&gt;user_login;
</span><span class="cx">                         $user_id = $user_details-&gt;ID;
</span><del>-                        if( ($username != null &amp;&amp; is_site_admin( $username ) == false ) &amp;&amp; ( array_key_exists($blog_id, get_blogs_of_user($user_id)) ) ) {
</del><ins>+                        if ( ($username != null &amp;&amp; is_site_admin( $username ) == false ) &amp;&amp; ( array_key_exists($blog_id, get_blogs_of_user($user_id)) ) ) {
</ins><span class="cx">                                 $redirect = add_query_arg( array('update' =&gt; 'addexisting'), 'user-new.php' );
</span><span class="cx">                         } else {
</span><span class="cx">                                 if ( isset( $_POST[ 'noconfirmation' ] ) &amp;&amp; is_site_admin() ) {
</span></span></pre></div>
<a id="trunkwpadminusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/users.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/users.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-admin/users.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx">                 if ( ! current_user_can('delete_user', $id) )
</span><span class="cx">                         wp_die(__('You can&amp;#8217;t delete that user.'));
</span><span class="cx"> 
</span><del>-                if($id == $current_user-&gt;ID) {
</del><ins>+                if ($id == $current_user-&gt;ID) {
</ins><span class="cx">                         $update = 'err_admin_del';
</span><span class="cx">                         continue;
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkwpappphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-app.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-app.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-app.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 // redirect to /service in case no path is found.
</span><del>-                if(strlen($path) == 0 || $path == '/')
</del><ins>+                if (strlen($path) == 0 || $path == '/')
</ins><span class="cx">                         $this-&gt;redirect($this-&gt;get_service_url());
</span><span class="cx"> 
</span><span class="cx">                 // check to see if AtomPub is enabled
</span><span class="lines">@@ -663,7 +663,7 @@
</span><span class="cx">                 $this-&gt;get_accepted_content_type($this-&gt;atom_content_types);
</span><span class="cx"> 
</span><span class="cx">                 $parser = new AtomParser();
</span><del>-                if(!$parser-&gt;parse()) {
</del><ins>+                if (!$parser-&gt;parse()) {
</ins><span class="cx">                         $this-&gt;bad_request();
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -805,7 +805,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $location = &quot;{$upload_dir['basedir']}/{$location}&quot;;
</span><span class="cx"> 
</span><del>-                if(!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']))
</del><ins>+                if (!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']))
</ins><span class="cx">                         $this-&gt;internal_error(__('Error ocurred while accessing post metadata for file location.'));
</span><span class="cx"> 
</span><span class="cx">                 $fp = fopen(&quot;php://input&quot;, &quot;rb&quot;);
</span><span class="lines">@@ -899,7 +899,7 @@
</span><span class="cx">          */
</span><span class="cx">         function get_attachments_url($page = null) {
</span><span class="cx">                 $url = $this-&gt;app_base . $this-&gt;MEDIA_PATH;
</span><del>-                if(isset($page) &amp;&amp; is_int($page)) {
</del><ins>+                if (isset($page) &amp;&amp; is_int($page)) {
</ins><span class="cx">                         $url .= &quot;/$page&quot;;
</span><span class="cx">                 }
</span><span class="cx">                 return $url;
</span><span class="lines">@@ -936,7 +936,7 @@
</span><span class="cx">          * @return string
</span><span class="cx">          */
</span><span class="cx">         function get_entry_url($postID = null) {
</span><del>-                if(!isset($postID)) {
</del><ins>+                if (!isset($postID)) {
</ins><span class="cx">                         global $post;
</span><span class="cx">                         $postID = (int) $post-&gt;ID;
</span><span class="cx">                 }
</span><span class="lines">@@ -967,7 +967,7 @@
</span><span class="cx">          * @return string
</span><span class="cx">          */
</span><span class="cx">         function get_media_url($postID = null) {
</span><del>-                if(!isset($postID)) {
</del><ins>+                if (!isset($postID)) {
</ins><span class="cx">                         global $post;
</span><span class="cx">                         $postID = (int) $post-&gt;ID;
</span><span class="cx">                 }
</span><span class="lines">@@ -1000,14 +1000,14 @@
</span><span class="cx">                 global $entry;
</span><span class="cx">                 log_app('function',&quot;set_current_entry($postID)&quot;);
</span><span class="cx"> 
</span><del>-                if(!isset($postID)) {
</del><ins>+                if (!isset($postID)) {
</ins><span class="cx">                         // $this-&gt;bad_request();
</span><span class="cx">                         $this-&gt;not_found();
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 $entry = wp_get_single_post($postID,ARRAY_A);
</span><span class="cx"> 
</span><del>-                if(!isset($entry) || !isset($entry['ID']))
</del><ins>+                if (!isset($entry) || !isset($entry['ID']))
</ins><span class="cx">                         $this-&gt;not_found();
</span><span class="cx"> 
</span><span class="cx">                 return;
</span><span class="lines">@@ -1058,7 +1058,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $this-&gt;ENTRY_PATH = $post_type;
</span><span class="cx"> 
</span><del>-                if(!isset($page)) {
</del><ins>+                if (!isset($page)) {
</ins><span class="cx">                         $page = 1;
</span><span class="cx">                 }
</span><span class="cx">                 $page = (int) $page;
</span><span class="lines">@@ -1087,10 +1087,10 @@
</span><span class="cx"> &lt;title type=&quot;text&quot;&gt;&lt;?php bloginfo_rss('name') ?&gt;&lt;/title&gt;
</span><span class="cx"> &lt;subtitle type=&quot;text&quot;&gt;&lt;?php bloginfo_rss(&quot;description&quot;) ?&gt;&lt;/subtitle&gt;
</span><span class="cx"> &lt;link rel=&quot;first&quot; type=&quot;&lt;?php echo $this-&gt;ATOM_CONTENT_TYPE ?&gt;&quot; href=&quot;&lt;?php $this-&gt;the_entries_url() ?&gt;&quot; /&gt;
</span><del>-&lt;?php if(isset($prev_page)): ?&gt;
</del><ins>+&lt;?php if (isset($prev_page)): ?&gt;
</ins><span class="cx"> &lt;link rel=&quot;previous&quot; type=&quot;&lt;?php echo $this-&gt;ATOM_CONTENT_TYPE ?&gt;&quot; href=&quot;&lt;?php $this-&gt;the_entries_url($prev_page) ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><del>-&lt;?php if(isset($next_page)): ?&gt;
</del><ins>+&lt;?php if (isset($next_page)): ?&gt;
</ins><span class="cx"> &lt;link rel=&quot;next&quot; type=&quot;&lt;?php echo $this-&gt;ATOM_CONTENT_TYPE ?&gt;&quot; href=&quot;&lt;?php $this-&gt;the_entries_url($next_page) ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;link rel=&quot;last&quot; type=&quot;&lt;?php echo $this-&gt;ATOM_CONTENT_TYPE ?&gt;&quot; href=&quot;&lt;?php $this-&gt;the_entries_url($last_page) ?&gt;&quot; /&gt;
</span><span class="lines">@@ -1171,7 +1171,7 @@
</span><span class="cx">                 &lt;uri&gt;&lt;?php the_author_meta('url') ?&gt;&lt;/uri&gt;
</span><span class="cx"> &lt;?php } ?&gt;
</span><span class="cx">         &lt;/author&gt;
</span><del>-&lt;?php if($GLOBALS['post']-&gt;post_type == 'attachment') { ?&gt;
</del><ins>+&lt;?php if ($GLOBALS['post']-&gt;post_type == 'attachment') { ?&gt;
</ins><span class="cx">         &lt;link rel=&quot;edit-media&quot; href=&quot;&lt;?php $this-&gt;the_media_url() ?&gt;&quot; /&gt;
</span><span class="cx">         &lt;content type=&quot;&lt;?php echo $GLOBALS['post']-&gt;post_mime_type ?&gt;&quot; src=&quot;&lt;?php the_guid(); ?&gt;&quot;/&gt;
</span><span class="cx"> &lt;?php } else { ?&gt;
</span><span class="lines">@@ -1364,7 +1364,7 @@
</span><span class="cx">                                 break;
</span><span class="cx">                 }
</span><span class="cx">                 header(&quot;Content-Type: $this-&gt;ATOM_CONTENT_TYPE&quot;);
</span><del>-                if(isset($ctloc))
</del><ins>+                if (isset($ctloc))
</ins><span class="cx">                         header('Content-Location: ' . $ctloc);
</span><span class="cx">                 header('Location: ' . $edit);
</span><span class="cx">                 status_header('201');
</span><span class="lines">@@ -1419,7 +1419,7 @@
</span><span class="cx">                         header('Content-Type: ' . $ctype);
</span><span class="cx">                         header('Content-Disposition: attachment; filename=atom.xml');
</span><span class="cx">                         header('Date: '. date('r'));
</span><del>-                        if($this-&gt;do_output)
</del><ins>+                        if ($this-&gt;do_output)
</ins><span class="cx">                                 echo $xml;
</span><span class="cx">                         log_app('function', &quot;output:\n$xml&quot;);
</span><span class="cx">                         exit;
</span><span class="lines">@@ -1458,7 +1458,7 @@
</span><span class="cx"> 
</span><span class="cx">                 // if using mod_rewrite/ENV hack
</span><span class="cx">                 // http://www.besthostratings.com/articles/http-auth-php-cgi.html
</span><del>-                if(isset($_SERVER['HTTP_AUTHORIZATION'])) {
</del><ins>+                if (isset($_SERVER['HTTP_AUTHORIZATION'])) {
</ins><span class="cx">                         list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) =
</span><span class="cx">                                 explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
</span><span class="cx">                 } else if (isset($_SERVER['REDIRECT_REMOTE_USER'])) {
</span><span class="lines">@@ -1469,7 +1469,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 // If Basic Auth is working...
</span><del>-                if(isset($_SERVER['PHP_AUTH_USER']) &amp;&amp; isset($_SERVER['PHP_AUTH_PW'])) {
</del><ins>+                if (isset($_SERVER['PHP_AUTH_USER']) &amp;&amp; isset($_SERVER['PHP_AUTH_PW'])) {
</ins><span class="cx">                         log_app(&quot;Basic Auth&quot;,$_SERVER['PHP_AUTH_USER']);
</span><span class="cx"> 
</span><span class="cx">                         $user = wp_authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);
</span><span class="lines">@@ -1493,11 +1493,11 @@
</span><span class="cx">          */
</span><span class="cx">         function get_accepted_content_type($types = null) {
</span><span class="cx"> 
</span><del>-                if(!isset($types)) {
</del><ins>+                if (!isset($types)) {
</ins><span class="cx">                         $types = $this-&gt;media_content_types;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if(!isset($_SERVER['CONTENT_LENGTH']) || !isset($_SERVER['CONTENT_TYPE'])) {
</del><ins>+                if (!isset($_SERVER['CONTENT_LENGTH']) || !isset($_SERVER['CONTENT_TYPE'])) {
</ins><span class="cx">                         $this-&gt;length_required();
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -1508,8 +1508,8 @@
</span><span class="cx"> 
</span><span class="cx">                 foreach($types as $t) {
</span><span class="cx">                         list($acceptedType,$acceptedSubtype) = explode('/',$t);
</span><del>-                        if($acceptedType == '*' || $acceptedType == $type) {
-                                if($acceptedSubtype == '*' || $acceptedSubtype == $subtype)
</del><ins>+                        if ($acceptedType == '*' || $acceptedType == $type) {
+                                if ($acceptedSubtype == '*' || $acceptedSubtype == $subtype)
</ins><span class="cx">                                         return $type . &quot;/&quot; . $subtype;
</span><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="lines">@@ -1524,8 +1524,8 @@
</span><span class="cx">          */
</span><span class="cx">         function process_conditionals() {
</span><span class="cx"> 
</span><del>-                if(empty($this-&gt;params)) return;
-                if($_SERVER['REQUEST_METHOD'] == 'DELETE') return;
</del><ins>+                if (empty($this-&gt;params)) return;
+                if ($_SERVER['REQUEST_METHOD'] == 'DELETE') return;
</ins><span class="cx"> 
</span><span class="cx">                 switch($this-&gt;params[0]) {
</span><span class="cx">                         case $this-&gt;ENTRY_PATH:
</span><span class="lines">@@ -1576,10 +1576,10 @@
</span><span class="cx">         function rfc3339_str2time($str) {
</span><span class="cx"> 
</span><span class="cx">                 $match = false;
</span><del>-                if(!preg_match(&quot;/(\d{4}-\d{2}-\d{2})T(\d{2}\:\d{2}\:\d{2})\.?\d{0,3}(Z|[+-]+\d{2}\:\d{2})/&quot;, $str, $match))
</del><ins>+                if (!preg_match(&quot;/(\d{4}-\d{2}-\d{2})T(\d{2}\:\d{2}\:\d{2})\.?\d{0,3}(Z|[+-]+\d{2}\:\d{2})/&quot;, $str, $match))
</ins><span class="cx">                         return false;
</span><span class="cx"> 
</span><del>-                if($match[3] == 'Z')
</del><ins>+                if ($match[3] == 'Z')
</ins><span class="cx">                         $match[3] == '+0000';
</span><span class="cx"> 
</span><span class="cx">                 return strtotime($match[1] . &quot; &quot; . $match[2] . &quot; &quot; . $match[3]);
</span><span class="lines">@@ -1597,7 +1597,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $pubtime = $this-&gt;rfc3339_str2time($published);
</span><span class="cx"> 
</span><del>-                if(!$pubtime) {
</del><ins>+                if (!$pubtime) {
</ins><span class="cx">                         return array(current_time('mysql'),current_time('mysql',1));
</span><span class="cx">                 } else {
</span><span class="cx">                         return array(date(&quot;Y-m-d H:i:s&quot;, $pubtime), gmdate(&quot;Y-m-d H:i:s&quot;, $pubtime));
</span></span></pre></div>
<a id="trunkwpsignupphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-signup.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-signup.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/wp-signup.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -390,7 +390,7 @@
</span><span class="cx"> } else {
</span><span class="cx">         switch ($_POST['stage']) {
</span><span class="cx">                 case 'validate-user-signup' :
</span><del>-                        if( $active_signup == 'all' || $_POST[ 'signup_for' ] == 'blog' &amp;&amp; $active_signup == 'blog' || $_POST[ 'signup_for' ] == 'user' &amp;&amp; $active_signup == 'user' )
</del><ins>+                        if ( $active_signup == 'all' || $_POST[ 'signup_for' ] == 'blog' &amp;&amp; $active_signup == 'blog' || $_POST[ 'signup_for' ] == 'user' &amp;&amp; $active_signup == 'user' )
</ins><span class="cx">                                 validate_user_signup();
</span><span class="cx">                         else
</span><span class="cx">                                 _e( &quot;User registration has been disabled.&quot; );
</span><span class="lines">@@ -409,9 +409,9 @@
</span><span class="cx">                         do_action( &quot;preprocess_signup_form&quot; ); // populate the form from invites, elsewhere?
</span><span class="cx">                         if ( is_user_logged_in() &amp;&amp; ( $active_signup == 'all' || $active_signup == 'blog' ) )
</span><span class="cx">                                 signup_another_blog($newblogname);
</span><del>-                        elseif( is_user_logged_in() == false &amp;&amp; ( $active_signup == 'all' || $active_signup == 'user' ) )
</del><ins>+                        elseif ( is_user_logged_in() == false &amp;&amp; ( $active_signup == 'all' || $active_signup == 'user' ) )
</ins><span class="cx">                                 signup_user( $newblogname, $user_email );
</span><del>-                        elseif( is_user_logged_in() == false &amp;&amp; ( $active_signup == 'blog' ) )
</del><ins>+                        elseif ( is_user_logged_in() == false &amp;&amp; ( $active_signup == 'blog' ) )
</ins><span class="cx">                                 _e( &quot;I'm sorry. We're not accepting new registrations at this time.&quot; );
</span><span class="cx">                         else
</span><span class="cx">                                 _e( &quot;You're logged in already. No need to register again!&quot; );
</span></span></pre></div>
<a id="trunkxmlrpcphp"></a>
<div class="modfile"><h4>Modified: trunk/xmlrpc.php (12751 => 12752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/xmlrpc.php        2010-01-18 11:44:51 UTC (rev 12751)
+++ trunk/xmlrpc.php        2010-01-18 20:34:48 UTC (rev 12752)
</span><span class="lines">@@ -2241,7 +2241,7 @@
</span><span class="cx">                                 $post_type = 'page';
</span><span class="cx">                                 if ( !empty( $content_struct['wp_page_template'] ) )
</span><span class="cx">                                         $page_template = $content_struct['wp_page_template'];
</span><del>-                        } elseif( $content_struct['post_type'] == 'post' ) {
</del><ins>+                        } elseif ( $content_struct['post_type'] == 'post' ) {
</ins><span class="cx">                                 // This is the default, no changes needed
</span><span class="cx">                         } else {
</span><span class="cx">                                 // No other post_type values are allowed here
</span><span class="lines">@@ -2827,7 +2827,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 foreach ($posts_list as $entry) {
</span><del>-                        if( !current_user_can( 'edit_post', $entry['ID'] ) )
</del><ins>+                        if ( !current_user_can( 'edit_post', $entry['ID'] ) )
</ins><span class="cx">                                 continue;
</span><span class="cx"> 
</span><span class="cx">                         $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false);
</span></span></pre>
</div>
</div>

</body>
</html>