<!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>[12712] trunk/wp-admin: merge multisite admin - edit links,tags,cats,
 options, See #11644</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12712">12712</a></dd>
<dt>Author</dt> <dd>wpmuguru</dd>
<dt>Date</dt> <dd>2010-01-12 21:11:52 +0000 (Tue, 12 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>merge multisite admin - edit links,tags,cats,options, See <a href="http://trac.wordpress.org/ticket/11644">#11644</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminadminphp">trunk/wp-admin/admin.php</a></li>
<li><a href="#trunkwpadmincategoriesphp">trunk/wp-admin/categories.php</a></li>
<li><a href="#trunkwpadmineditcategoryformphp">trunk/wp-admin/edit-category-form.php</a></li>
<li><a href="#trunkwpadmineditlinkcategoriesphp">trunk/wp-admin/edit-link-categories.php</a></li>
<li><a href="#trunkwpadmineditlinkcategoryformphp">trunk/wp-admin/edit-link-category-form.php</a></li>
<li><a href="#trunkwpadminedittagformphp">trunk/wp-admin/edit-tag-form.php</a></li>
<li><a href="#trunkwpadminedittagsphp">trunk/wp-admin/edit-tags.php</a></li>
<li><a href="#trunkwpadminmenuheaderphp">trunk/wp-admin/menu-header.php</a></li>
<li><a href="#trunkwpadminoptionsdiscussionphp">trunk/wp-admin/options-discussion.php</a></li>
<li><a href="#trunkwpadminoptionsgeneralphp">trunk/wp-admin/options-general.php</a></li>
<li><a href="#trunkwpadminoptionsmiscphp">trunk/wp-admin/options-misc.php</a></li>
<li><a href="#trunkwpadminoptionspermalinkphp">trunk/wp-admin/options-permalink.php</a></li>
<li><a href="#trunkwpadminoptionswritingphp">trunk/wp-admin/options-writing.php</a></li>
<li><a href="#trunkwpadminoptionsphp">trunk/wp-admin/options.php</a></li>
</ul>

<h3>Property Changed</h3>
<ul>
<li><a href="#trunkwpadmin">trunk/wp-admin/</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmin"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:ignore
</span><span class="cx">   + .categories.php.swp
</span></span></pre></div>
<a id="trunkwpadminadminphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/admin.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/admin.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/admin.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -27,8 +27,23 @@
</span><span class="cx">          */
</span><span class="cx">         do_action('after_db_upgrade');
</span><span class="cx"> } elseif ( get_option('db_version') != $wp_db_version ) {
</span><del>-        wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
-        exit;
</del><ins>+        if ( !is_multisite() ) {
+                wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
+                exit;
+        } elseif ( apply_filters( 'do_mu_upgrade', true ) ) {
+                /**
+                 * On really small MU installs run the upgrader every time, 
+                 * else run it less often to reduce load.
+                 *
+                 * @since 2.8.4b
+                 */
+                $c = get_blog_count();
+                if ( $c &lt;= 50 || ( $c &gt; 50 &amp;&amp; mt_rand( 0, (int)( $c / 50 ) ) == 1 ) ) {
+                        require_once( ABSPATH . WPINC . '/http.php' );
+                        $response = wp_remote_get( admin_url( 'upgrade.php?step=1' ), array( 'timeout' =&gt; 120, 'httpversion' =&gt; '1.1' ) );
+                        do_action( 'after_mu_upgrade', $response );
+                }
+        }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> require_once(ABSPATH . 'wp-admin/includes/admin.php');
</span><span class="lines">@@ -45,6 +60,7 @@
</span><span class="cx"> 
</span><span class="cx"> set_screen_options();
</span><span class="cx"> 
</span><ins>+$posts_per_page = get_option('posts_per_page');
</ins><span class="cx"> $date_format = get_option('date_format');
</span><span class="cx"> $time_format = get_option('time_format');
</span><span class="cx"> 
</span><span class="lines">@@ -94,7 +110,7 @@
</span><span class="cx">                         wp_die(__('Invalid plugin page'));
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if (! ( file_exists(WP_PLUGIN_DIR . &quot;/$plugin_page&quot;) &amp;&amp; is_file(WP_PLUGIN_DIR . &quot;/$plugin_page&quot;) ) )
</del><ins>+                if ( !( file_exists(WP_PLUGIN_DIR . &quot;/$plugin_page&quot;) &amp;&amp; is_file(WP_PLUGIN_DIR . &quot;/$plugin_page&quot;) ) &amp;&amp; !( file_exists(WPMU_PLUGIN_DIR . &quot;/$plugin_page&quot;) &amp;&amp; is_file(WPMU_PLUGIN_DIR . &quot;/$plugin_page&quot;) ) )
</ins><span class="cx">                         wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
</span><span class="cx"> 
</span><span class="cx">                 do_action('load-' . $plugin_page);
</span><span class="lines">@@ -102,7 +118,10 @@
</span><span class="cx">                 if (! isset($_GET['noheader']))
</span><span class="cx">                         require_once(ABSPATH . 'wp-admin/admin-header.php');
</span><span class="cx"> 
</span><del>-                include(WP_PLUGIN_DIR . &quot;/$plugin_page&quot;);
</del><ins>+                if ( file_exists(WPMU_PLUGIN_DIR . &quot;/$plugin_page&quot;) )
+                        include(WPMU_PLUGIN_DIR . &quot;/$plugin_page&quot;);
+                else
+                        include(ABSPATH . PLUGINDIR . &quot;/$plugin_page&quot;);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         include(ABSPATH . 'wp-admin/admin-footer.php');
</span><span class="lines">@@ -139,6 +158,9 @@
</span><span class="cx">         require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
</span><span class="cx"> 
</span><span class="cx">         define('WP_IMPORTING', true);
</span><ins>+        if ( is_multisite() ) {
+                kses_init_filters();  // Always filter imported data with kses.
+        }
</ins><span class="cx"> 
</span><span class="cx">         call_user_func($wp_importers[$importer][2]);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadmincategoriesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/categories.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/categories.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/categories.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -297,13 +297,13 @@
</span><span class="cx">         &lt;input name=&quot;cat_name&quot; id=&quot;cat_name&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
</span><span class="cx">     &lt;p&gt;&lt;?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-
</del><ins>+&lt;?php if ( is_multisite() ) { ?&gt;
</ins><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><span class="cx">         &lt;label for=&quot;category_nicename&quot;&gt;&lt;?php _e('Category Slug') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;input name=&quot;category_nicename&quot; id=&quot;category_nicename&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; /&gt;
</span><span class="cx">     &lt;p&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-
</del><ins>+&lt;?php } ?&gt;
</ins><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><span class="cx">         &lt;label for=&quot;category_parent&quot;&gt;&lt;?php _e('Category Parent') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;?php wp_dropdown_categories(array('hide_empty' =&gt; 0, 'hide_if_empty' =&gt; false, 'taxonomy' =&gt; $taxonomy, 'name' =&gt; 'category_parent', 'orderby' =&gt; 'name', 'selected' =&gt; $category-&gt;parent, 'hierarchical' =&gt; true, 'show_option_none' =&gt; __('None'))); ?&gt;
</span></span></pre></div>
<a id="trunkwpadmineditcategoryformphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-category-form.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-category-form.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/edit-category-form.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -58,11 +58,13 @@
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;cat_name&quot;&gt;&lt;?php _e('Category Name') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;input name=&quot;cat_name&quot; id=&quot;cat_name&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($category-&gt;name); ?&gt;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><ins>+&lt;?php if ( is_multisite() ) { ?&gt;
</ins><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;category_nicename&quot;&gt;&lt;?php _e('Category Slug') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;input name=&quot;category_nicename&quot; id=&quot;category_nicename&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr(apply_filters('editable_slug', $category-&gt;slug)); ?&gt;&quot; size=&quot;40&quot; /&gt;&lt;br /&gt;
</span><span class="cx">             &lt;span class=&quot;description&quot;&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/span&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><ins>+&lt;?php } ?&gt;
</ins><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;category_parent&quot;&gt;&lt;?php _e('Category Parent') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;
</span></span></pre></div>
<a id="trunkwpadmineditlinkcategoriesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-link-categories.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-categories.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/edit-link-categories.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -200,13 +200,13 @@
</span><span class="cx">         &lt;label for=&quot;name&quot;&gt;&lt;?php _e('Link Category name') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-
</del><ins>+&lt;?php if ( is_multisite() ) { ?&gt;
</ins><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><span class="cx">         &lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Link Category slug') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; /&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-
</del><ins>+&lt;?php } ?&gt;
</ins><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><span class="cx">         &lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description (optional)') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;40&quot;&gt;&lt;/textarea&gt;
</span></span></pre></div>
<a id="trunkwpadmineditlinkcategoryformphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-link-category-form.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-category-form.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/edit-link-category-form.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -72,11 +72,13 @@
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;name&quot;&gt;&lt;?php _e('Link Category name') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($category-&gt;name); ?&gt;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><ins>+&lt;?php if ( !is_multisite() ) { ?&gt;
</ins><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Link Category slug') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr(apply_filters('editable_slug', $category-&gt;slug)); ?&gt;&quot; size=&quot;40&quot; /&gt;&lt;br /&gt;
</span><span class="cx">             &lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><ins>+&lt;?php } ?&gt;
</ins><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description (optional)') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width: 97%;&quot;&gt;&lt;?php echo $category-&gt;description; ?&gt;&lt;/textarea&gt;&lt;br /&gt;
</span></span></pre></div>
<a id="trunkwpadminedittagformphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tag-form.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tag-form.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/edit-tag-form.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -35,11 +35,13 @@
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;name&quot;&gt;&lt;?php _e('Tag name') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&lt;?php if ( isset( $tag-&gt;name ) ) echo esc_attr($tag-&gt;name); ?&gt;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><ins>+&lt;?php if ( !is_multisite() ) { ?&gt;
</ins><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Tag slug') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&lt;?php if ( isset( $tag-&gt;slug ) ) echo esc_attr(apply_filters('editable_slug', $tag-&gt;slug)); ?&gt;&quot; size=&quot;40&quot; /&gt;
</span><span class="cx">             &lt;p class=&quot;description&quot;&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><ins>+&lt;?php } ?&gt;
</ins><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                         &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx">                         &lt;td&gt;&lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width: 97%;&quot;&gt;&lt;?php echo esc_html($tag-&gt;description); ?&gt;&lt;/textarea&gt;&lt;br /&gt;
</span></span></pre></div>
<a id="trunkwpadminedittagsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tags.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tags.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/edit-tags.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -300,13 +300,13 @@
</span><span class="cx">         &lt;input name=&quot;tag-name&quot; id=&quot;tag-name&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The name is how the tag appears on your site.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-
</del><ins>+&lt;?php if ( !is_multisite() ) { ?&gt;
</ins><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><span class="cx">         &lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Tag slug') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; /&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-
</del><ins>+&lt;?php } ?&gt;
</ins><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><span class="cx">         &lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description') ?&gt;&lt;/label&gt;
</span><span class="cx">         &lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;40&quot;&gt;&lt;/textarea&gt;
</span></span></pre></div>
<a id="trunkwpadminmenuheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/menu-header.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/menu-header.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/menu-header.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -15,8 +15,10 @@
</span><span class="cx">  */
</span><span class="cx"> $self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
</span><span class="cx"> $self = preg_replace('|^.*/plugins/|i', '', $self);
</span><ins>+$self = preg_replace('|^.*/mu-plugins/|i', '', $self);
</ins><span class="cx"> 
</span><span class="cx"> global $menu, $submenu, $parent_file; //For when admin-header is included from within a function.
</span><ins>+$parent_file = apply_filters(&quot;parent_file&quot;, $parent_file); // For plugins to move submenu tabs around. 
</ins><span class="cx"> 
</span><span class="cx"> get_admin_page_parent();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminoptionsdiscussionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-discussion.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-discussion.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/options-discussion.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -52,6 +52,7 @@
</span><span class="cx"> &lt;label for=&quot;comment_registration&quot;&gt;
</span><span class="cx"> &lt;input name=&quot;comment_registration&quot; type=&quot;checkbox&quot; id=&quot;comment_registration&quot; value=&quot;1&quot; &lt;?php checked('1', get_option('comment_registration')); ?&gt; /&gt;
</span><span class="cx"> &lt;?php _e('Users must be registered and logged in to comment') ?&gt;
</span><ins>+&lt;?php if ( !get_option( 'users_can_register' ) &amp;&amp; is_multisite() ) _e( ' (Signup has been disabled. Only members of this site can comment)' ); ?&gt;
</ins><span class="cx"> &lt;/label&gt;
</span><span class="cx"> &lt;br /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminoptionsgeneralphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-general.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-general.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/options-general.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -70,6 +70,7 @@
</span><span class="cx"> &lt;td&gt;&lt;input name=&quot;blogdescription&quot; type=&quot;text&quot; id=&quot;blogdescription&quot;  value=&quot;&lt;?php form_option('blogdescription'); ?&gt;&quot; class=&quot;regular-text&quot; /&gt;
</span><span class="cx"> &lt;span class=&quot;description&quot;&gt;&lt;?php _e('In a few words, explain what this blog is about.') ?&gt;&lt;/span&gt;&lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><ins>+&lt;?php if ( !is_multisite() ) { ?&gt;
</ins><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;siteurl&quot;&gt;&lt;?php _e('WordPress address (URL)') ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx"> &lt;td&gt;&lt;input name=&quot;siteurl&quot; type=&quot;text&quot; id=&quot;siteurl&quot; value=&quot;&lt;?php form_option('siteurl'); ?&gt;&quot; class=&quot;regular-text code&lt;?php if ( defined( 'WP_SITEURL' ) ) : ?&gt; disabled&quot; disabled=&quot;disabled&quot;&lt;?php else: ?&gt;&quot;&lt;?php endif; ?&gt; /&gt;&lt;/td&gt;
</span><span class="lines">@@ -97,6 +98,13 @@
</span><span class="cx"> &lt;select name=&quot;default_role&quot; id=&quot;default_role&quot;&gt;&lt;?php wp_dropdown_roles( get_option('default_role') ); ?&gt;&lt;/select&gt;
</span><span class="cx"> &lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><ins>+&lt;?php } else { ?&gt;
+&lt;tr valign=&quot;top&quot;&gt;
+&lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;new_admin_email&quot;&gt;&lt;?php _e('E-mail address') ?&gt; &lt;/label&gt;&lt;/th&gt;
+&lt;td&gt;&lt;input name=&quot;new_admin_email&quot; type=&quot;text&quot; id=&quot;new_admin_email&quot; value=&quot;&lt;?php form_option('admin_email'); ?&gt;&quot; class=&quot;regular-text code&quot; /&gt;
+&lt;span class=&quot;setting-description&quot;&gt;&lt;?php _e('This address is used for admin purposes.') ?&gt; &lt;?php _e('If you change this we will send you an email at your new address to confirm it. &lt;strong&gt;The new address will not become active until confirmed.&lt;/strong&gt;') ?&gt;&lt;/span&gt;&lt;/td&gt;
+&lt;/tr&gt;
+&lt;?php } ?&gt;
</ins><span class="cx"> &lt;tr&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> if ( !wp_timezone_supported() ) : // no magic timezone support here
</span><span class="lines">@@ -281,6 +289,26 @@
</span><span class="cx"> &lt;/select&gt;&lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;?php do_settings_fields('general', 'default'); ?&gt;
</span><ins>+&lt;?php
+if ( is_multisite() &amp;&amp; is_dir( ABSPATH . LANGDIR ) &amp;&amp; $dh = opendir( ABSPATH . LANGDIR ) )
+        while( ( $lang_file = readdir( $dh ) ) !== false )
+                if( substr( $lang_file, -3 ) == '.mo' )
+                        $lang_files[] = $lang_file;
+$lang = get_option('WPLANG');
+
+if( is_array($lang_files) &amp;&amp; !empty($lang_files) ) {
+        ?&gt;
+        &lt;tr valign=&quot;top&quot;&gt; 
+                &lt;th width=&quot;33%&quot; scope=&quot;row&quot;&gt;&lt;?php _e('Blog language:') ?&gt;&lt;/th&gt; 
+                &lt;td&gt;
+                        &lt;select name=&quot;WPLANG&quot; id=&quot;WPLANG&quot;&gt;
+                                &lt;?php mu_dropdown_languages( $lang_files, get_option('WPLANG') ); ?&gt;
+                        &lt;/select&gt;
+                &lt;/td&gt;
+        &lt;/tr&gt; 
+        &lt;?php
+} // languages
+?&gt;
</ins><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php do_settings_sections('general'); ?&gt;
</span></span></pre></div>
<a id="trunkwpadminoptionsmiscphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-misc.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-misc.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/options-misc.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;
</span><span class="cx"> &lt;?php settings_fields('misc'); ?&gt;
</span><del>-
</del><ins>+&lt;?php if ( !is_multisite() ) { ?&gt;
</ins><span class="cx"> &lt;h3&gt;&lt;?php _e('Uploading Files'); ?&gt;&lt;/h3&gt;
</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="lines">@@ -65,7 +65,7 @@
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/table&gt;
</span><del>-
</del><ins>+&lt;?php } ?&gt;
</ins><span class="cx"> &lt;?php do_settings_sections('misc'); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p class=&quot;submit&quot;&gt;
</span></span></pre></div>
<a id="trunkwpadminoptionspermalinkphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-permalink.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-permalink.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/options-permalink.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -82,6 +82,9 @@
</span><span class="cx">                 $permalink_structure = $_POST['permalink_structure'];
</span><span class="cx">                 if (! empty($permalink_structure) )
</span><span class="cx">                         $permalink_structure = preg_replace('#/+#', '/', '/' . $_POST['permalink_structure']);
</span><ins>+                if ( is_multisite() &amp;&amp; !is_subdomain_install()  &amp;&amp; $permalink_structure != '' &amp;&amp; $current_site-&gt;domain.$current_site-&gt;path == $current_blog-&gt;domain.$current_blog-&gt;path ) {
+                        $permalink_structure = '/blog' . $permalink_structure;
+                }
</ins><span class="cx">                 $wp_rewrite-&gt;set_permalink_structure($permalink_structure);
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -89,6 +92,9 @@
</span><span class="cx">                 $category_base = $_POST['category_base'];
</span><span class="cx">                 if (! empty($category_base) )
</span><span class="cx">                         $category_base = preg_replace('#/+#', '/', '/' . $_POST['category_base']);
</span><ins>+                if ( is_miltisite() &amp;&amp; !is_subdomain_install() &amp;&amp; $category_base != '' &amp;&amp; $current_site-&gt;domain.$current_site-&gt;path == $current_blog-&gt;domain.$current_blog-&gt;path ) {
+                        $category_base = '/blog' . $category_base;
+                }
</ins><span class="cx">                 $wp_rewrite-&gt;set_category_base($category_base);
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -96,6 +102,9 @@
</span><span class="cx">                 $tag_base = $_POST['tag_base'];
</span><span class="cx">                 if (! empty($tag_base) )
</span><span class="cx">                         $tag_base = preg_replace('#/+#', '/', '/' . $_POST['tag_base']);
</span><ins>+                if ( is_multisite() &amp;&amp; !is_subdomain_install() &amp;&amp; $tag_base != '' &amp;&amp; $current_site-&gt;domain.$current_site-&gt;path == $current_blog-&gt;domain.$current_blog-&gt;path ) {
+                        $tag_base = '/blog' . $tag_base;
+                }
</ins><span class="cx">                 $wp_rewrite-&gt;set_tag_base($tag_base);
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="lines">@@ -194,6 +203,7 @@
</span><span class="cx">                         &lt;/label&gt;
</span><span class="cx">                 &lt;/th&gt;
</span><span class="cx">                 &lt;td&gt;
</span><ins>+                        &lt;?php if ( is_multisite() &amp;&amp; !is_subdomain_install() &amp;&amp; $current_site-&gt;domain.$current_site-&gt;path == $current_blog-&gt;domain.$current_blog-&gt;path ) { echo &quot;/blog&quot;; $permalink_structure = str_replace( &quot;/blog&quot;, &quot;&quot;, $permalink_structure ); }?&gt;
</ins><span class="cx">                         &lt;input name=&quot;permalink_structure&quot; id=&quot;permalink_structure&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($permalink_structure); ?&gt;&quot; class=&quot;regular-text code&quot; /&gt;
</span><span class="cx">                 &lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="lines">@@ -209,11 +219,11 @@
</span><span class="cx"> &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">                 &lt;th&gt;&lt;label for=&quot;category_base&quot;&gt;&lt;?php _e('Category base'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><del>-                &lt;td&gt;&lt;input name=&quot;category_base&quot; id=&quot;category_base&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($category_base); ?&gt;&quot; class=&quot;regular-text code&quot; /&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;?php if ( is_multisite() &amp;&amp; !is_subdomain_install() &amp;&amp; $current_site-&gt;domain.$current_site-&gt;path == $current_blog-&gt;domain.$current_blog-&gt;path ) { echo &quot;/blog&quot;; $category_base = str_replace( &quot;/blog&quot;, &quot;&quot;, $category_base ); }?&gt; &lt;input name=&quot;category_base&quot; id=&quot;category_base&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr( $category_base ); ?&gt;&quot; class=&quot;regular-text code&quot; /&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">                 &lt;th&gt;&lt;label for=&quot;tag_base&quot;&gt;&lt;?php _e('Tag base'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><del>-                &lt;td&gt;&lt;input name=&quot;tag_base&quot; id=&quot;tag_base&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($tag_base); ?&gt;&quot; class=&quot;regular-text code&quot; /&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;?php if ( is_multisite() &amp;&amp; !is_subdomain_install() &amp;&amp; $current_site-&gt;domain.$current_site-&gt;path == $current_blog-&gt;domain.$current_blog-&gt;path ) { echo &quot;/blog&quot;; $tag_base = str_replace( &quot;/blog&quot;, &quot;&quot;, $tag_base ); }?&gt; &lt;input name=&quot;tag_base&quot; id=&quot;tag_base&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($tag_base); ?&gt;&quot; class=&quot;regular-text code&quot; /&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;?php do_settings_fields('permalink', 'optional'); ?&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="lines">@@ -224,6 +234,7 @@
</span><span class="cx">         &lt;input type=&quot;submit&quot; name=&quot;submit&quot; class=&quot;button-primary&quot; value=&quot;&lt;?php esc_attr_e('Save Changes') ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx">   &lt;/form&gt;
</span><ins>+&lt;?php if ( !is_multisite || is_super_admin() ) { ?&gt;
</ins><span class="cx"> &lt;?php if ($iis7_permalinks) :
</span><span class="cx">         if ( isset($_POST['submit']) &amp;&amp; $permalink_structure &amp;&amp; ! $usingpi &amp;&amp; ! $writable ) : 
</span><span class="cx">                 if ( file_exists($home_path . 'web.config') ) : ?&gt;
</span><span class="lines">@@ -251,6 +262,7 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx">         &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><ins>+&lt;?php } // multisite ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminoptionswritingphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-writing.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-writing.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/options-writing.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -81,6 +81,7 @@
</span><span class="cx"> &lt;?php do_settings_fields('writing', 'remote_publishing'); ?&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="cx"> 
</span><ins>+&lt;?php if ( !is_multisite() || defined( 'POST_BY_EMAIL' ) ) { ?&gt;
</ins><span class="cx"> &lt;h3&gt;&lt;?php _e('Post via e-mail') ?&gt;&lt;/h3&gt;
</span><span class="cx"> &lt;p&gt;&lt;?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&amp;#8217;s a good idea to keep this address very secret. Here are three random strings you could use: &lt;kbd&gt;%s&lt;/kbd&gt;, &lt;kbd&gt;%s&lt;/kbd&gt;, &lt;kbd&gt;%s&lt;/kbd&gt;.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -112,7 +113,8 @@
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;?php do_settings_fields('writing', 'post_via_email'); ?&gt;
</span><span class="cx"> &lt;/table&gt;
</span><del>-
</del><ins>+&lt;?php } ?&gt;
+&lt;?php if ( !is_multisite() ) { ?&gt;
</ins><span class="cx"> &lt;h3&gt;&lt;?php _e('Update Services') ?&gt;&lt;/h3&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php if ( get_option('blog_public') ) : ?&gt;
</span><span class="lines">@@ -126,6 +128,7 @@
</span><span class="cx">         &lt;p&gt;&lt;?php printf(__('WordPress is not notifying any &lt;a href=&quot;http://codex.wordpress.org/Update_Services&quot;&gt;Update Services&lt;/a&gt; because of your blog&amp;#8217;s &lt;a href=&quot;%s&quot;&gt;privacy settings&lt;/a&gt;.'), 'options-privacy.php'); ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><ins>+&lt;?php } // multisite ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php do_settings_sections('writing'); ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options.php (12711 => 12712)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options.php        2010-01-12 20:12:04 UTC (rev 12711)
+++ trunk/wp-admin/options.php        2010-01-12 21:11:52 UTC (rev 12712)
</span><span class="lines">@@ -38,6 +38,20 @@
</span><span class="cx"> if ( !current_user_can('manage_options') )
</span><span class="cx">         wp_die(__('Cheatin&amp;#8217; uh?'));
</span><span class="cx"> 
</span><ins>+if ( is_multisite() &amp;&amp; is_super_admin() &amp;&amp; $_GET[ 'adminhash' ] ) {
+        $new_admin_details = get_option( 'adminhash' );
+        if( is_array( $new_admin_details ) &amp;&amp; $new_admin_details[ 'hash' ] == $_GET[ 'adminhash' ] &amp;&amp; $new_admin_details[ 'newemail' ] != '' ) {
+                update_option( &quot;admin_email&quot;, $new_admin_details[ 'newemail' ] );
+                delete_option( &quot;adminhash&quot; );
+                delete_option( &quot;new_admin_email&quot; );
+                wp_redirect( get_option( &quot;siteurl&quot; ) . &quot;/wp-admin/options-general.php?updated=true&quot; );
+                exit;
+        } else {
+                wp_redirect( get_option( &quot;siteurl&quot; ) . &quot;/wp-admin/options-general.php?updated=false&quot; );
+                exit;
+        }
+}
+
</ins><span class="cx"> switch($action) {
</span><span class="cx"> 
</span><span class="cx"> case 'update':
</span><span class="lines">@@ -55,6 +69,8 @@
</span><span class="cx"> 
</span><span class="cx">         if ( 'options' == $option_page ) {
</span><span class="cx">                 $options = explode(',', stripslashes( $_POST[ 'page_options' ] ));
</span><ins>+                if ( !is_super_admin() ) 
+                        wp_die( __( 'Not allowed here' ) );
</ins><span class="cx">         } else {
</span><span class="cx">                 $options = $whitelist_options[ $option_page ];
</span><span class="cx">         }
</span><span class="lines">@@ -90,6 +106,9 @@
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx"> default:
</span><ins>+        if ( !is_super_admin() )
+                wp_die( __( 'Not admin' ) );
+
</ins><span class="cx">         include('admin-header.php'); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="lines">@@ -99,6 +118,11 @@
</span><span class="cx">   &lt;?php wp_nonce_field('options-options') ?&gt;
</span><span class="cx">   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;update&quot; /&gt;
</span><span class="cx">   &lt;input type='hidden' name='option_page' value='options' /&gt;
</span><ins>+&lt;?php if ( is_multisite() ) { ?&gt;
+&lt;p class=&quot;submit submit-top&quot;&gt;
+        &lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;&lt;?php _e('Save Changes') ?&gt;&quot; class=&quot;button-primary&quot; /&gt;
+&lt;/p&gt;
+&lt;?php } ?&gt;
</ins><span class="cx">   &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> $options = $wpdb-&gt;get_results(&quot;SELECT * FROM $wpdb-&gt;options ORDER BY option_name&quot;);
</span><span class="lines">@@ -106,6 +130,8 @@
</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><ins>+        if( $option-&gt;option_name == '' )
+                continue;
</ins><span class="cx">         if ( is_serialized($option-&gt;option_value) ) {
</span><span class="cx">                 if ( is_serialized_string($option-&gt;option_value) ) {
</span><span class="cx">                         // this is a serialized string, so we should display it
</span></span></pre>
</div>
</div>

</body>
</html>