<!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>[13609] trunk/wp-admin: Update ms-sites UI.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13609">13609</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-03-06 18:31:10 +0000 (Sat, 06 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Update ms-sites UI. Props ocean90. see <a href="http://trac.wordpress.org/ticket/12460">#12460</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesmiscphp">trunk/wp-admin/includes/misc.php</a></li>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpadminmseditphp">trunk/wp-admin/ms-edit.php</a></li>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesmiscphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/misc.php (13608 => 13609)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/misc.php        2010-03-06 18:20:11 UTC (rev 13608)
+++ trunk/wp-admin/includes/misc.php        2010-03-06 18:31:10 UTC (rev 13609)
</span><span class="lines">@@ -410,6 +410,8 @@
</span><span class="cx"> 
</span><span class="cx">                 switch ( $map_option ) {
</span><span class="cx">                         case 'edit_per_page':
</span><ins>+                        case 'ms_sites_per_page':
+                        case 'ms_users_per_page':
</ins><span class="cx">                         case 'edit_comments_per_page':
</span><span class="cx">                         case 'upload_per_page':
</span><span class="cx">                         case 'categories_per_page':
</span></span></pre></div>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (13608 => 13609)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-03-06 18:20:11 UTC (rev 13608)
+++ trunk/wp-admin/includes/template.php        2010-03-06 18:31:10 UTC (rev 13609)
</span><span class="lines">@@ -3767,6 +3767,12 @@
</span><span class="cx">                 case 'edit-pages':
</span><span class="cx">                         $per_page_label = __('Pages per page:');
</span><span class="cx">                         break;
</span><ins>+                case 'ms-sites':
+                        $per_page_label = __('Sites per page:');
+                        break;
+                case 'ms-users':
+                        $per_page_label = __('Users per page:');
+                        break;
</ins><span class="cx">                 case 'edit-comments':
</span><span class="cx">                         $per_page_label = __('Comments per page:');
</span><span class="cx">                         break;
</span></span></pre></div>
<a id="trunkwpadminmseditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-edit.php (13608 => 13609)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-edit.php        2010-03-06 18:20:11 UTC (rev 13608)
+++ trunk/wp-admin/ms-edit.php        2010-03-06 18:31:10 UTC (rev 13609)
</span><span class="lines">@@ -221,6 +221,9 @@
</span><span class="cx">                 // rewrite rules can't be flushed during switch to blog
</span><span class="cx">                 delete_option( 'rewrite_rules' );
</span><span class="cx"> 
</span><ins>+                // update blogs count
+                delete_site_transient( &quot;blog_count&quot; );
+
</ins><span class="cx">                 // update blogs table
</span><span class="cx">                 $blog_data = stripslashes_deep($_POST[ 'blog' ]);
</span><span class="cx">                 update_blog_details($id, $blog_data);
</span><span class="lines">@@ -292,35 +295,52 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( $id != '0' &amp;&amp; $id != $current_site-&gt;blog_id )
</span><span class="cx">                         wpmu_delete_blog( $id, true );
</span><del>-
</del><ins>+        
</ins><span class="cx">                 wp_redirect( add_query_arg( array('updated' =&gt; 'true', 'action' =&gt; 'delete'), $_POST[ 'ref' ] ) );
</span><span class="cx">                 exit();
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx">         case &quot;allblogs&quot;:
</span><del>-                check_admin_referer('allblogs');
</del><ins>+                if ( isset($_POST['doaction']) || isset($_POST['doaction2']) ) {
+                        check_admin_referer('bulk-sites');
+
</ins><span class="cx">                 if ( ! current_user_can( 'manage_sites' ) )
</span><span class="cx">                         wp_die( __('You do not have permission to access this page.') );
</span><span class="cx"> 
</span><ins>+                if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
+                        $doaction = $doaction = ($_POST['action'] != -1) ? $_POST['action'] : $_POST['action2'];
+
+
</ins><span class="cx">                 foreach ( (array) $_POST[ 'allblogs' ] as $key =&gt; $val ) {
</span><span class="cx">                         if ( $val != '0' &amp;&amp; $val != $current_site-&gt;blog_id ) {
</span><del>-                                if ( isset($_POST['allblog_delete']) ) {
-                                        $blogfunction = 'all_delete';
-                                        wpmu_delete_blog( $val, true );
-                                } elseif ( isset($_POST['allblog_spam']) ) {
-                                        $blogfunction = 'all_spam';
-                                        update_blog_status( $val, &quot;spam&quot;, '1', 0 );
-                                        set_time_limit(60);
-                                } elseif ( isset($_POST['allblog_notspam']) ) {
-                                        $blogfunction = 'all_notspam';
-                                        update_blog_status( $val, &quot;spam&quot;, '0', 0 );
-                                        set_time_limit(60);
</del><ins>+                                switch ( $doaction ) {
+                                        case 'delete':
+                                                $blogfunction = 'all_delete';
+                                                wpmu_delete_blog( $val, true );
+                                                break;
+                                        case 'spam':
+                                                $blogfunction = 'all_spam';
+                                                update_blog_status( $val, &quot;spam&quot;, '1', 0 );
+                                                set_time_limit(60);
+                                                break;
+                                        case 'notspam':
+                                                $blogfunction = 'all_notspam';
+                                                update_blog_status( $val, &quot;spam&quot;, '0', 0 );
+                                                set_time_limit(60);
+                                                break;
</ins><span class="cx">                                 }
</span><del>-                        }
-                }
</del><ins>+                        } else {
+                                wp_die( __('You are not allowed to change one of this sites.') );
+                                exit();
+                        }; 
+                }; 
</ins><span class="cx"> 
</span><span class="cx">                 wp_redirect( add_query_arg( array('updated' =&gt; 'true', 'action' =&gt; $blogfunction), $_SERVER['HTTP_REFERER'] ) );
</span><span class="cx">                 exit();
</span><ins>+
+                } else {
+                        wp_redirect( admin_url(&quot;ms-sites.php&quot;) );
+                }
</ins><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx">         case &quot;archiveblog&quot;:
</span><span class="lines">@@ -397,7 +417,6 @@
</span><span class="cx">         case &quot;unmature&quot;:
</span><span class="cx">                 update_blog_status( $id, 'mature', '0' );
</span><span class="cx">                 do_action( 'unmature_blog', $id );
</span><del>-
</del><span class="cx">                 wp_redirect( add_query_arg( array('updated' =&gt; 'true', 'action' =&gt; 'umature'), $_POST['ref'] ) );
</span><span class="cx">                 exit();
</span><span class="cx">         break;
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (13608 => 13609)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-03-06 18:20:11 UTC (rev 13608)
+++ trunk/wp-admin/ms-sites.php        2010-03-06 18:31:10 UTC (rev 13609)
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">                                                 &lt;p class=&quot;submit&quot; style=&quot;margin:-15px 0 -5px 230px;&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;&lt;?php esc_attr_e('Update Options') ?&gt;&quot; /&gt;&lt;/p&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;/div&gt;
</span><span class="cx"> 
</span><del>-                        &lt;div id=&quot;blogedit_blogoptions&quot; class=&quot;postbox &quot; &gt;
</del><ins>+                        &lt;div id=&quot;blogedit_blogoptions&quot; class=&quot;postbox&quot; &gt;
</ins><span class="cx">                         &lt;h3 class='hndle'&gt;&lt;span&gt;&lt;?php printf( __('Site options (%soptions)'), $blog_prefix ); ?&gt;&lt;/span&gt;&lt;/h3&gt;
</span><span class="cx">                         &lt;div class=&quot;inside&quot;&gt;
</span><span class="cx">                                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="lines">@@ -178,7 +178,7 @@
</span><span class="cx">                                                                 ?&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 echo ucwords( str_replace( &quot;_&quot;, &quot; &quot;, $option-&gt;option_name ) ) ?&gt;&lt;/th&gt;
</span><del>-                                                                                &lt;td&gt;&lt;textarea rows=&quot;5&quot; cols=&quot;40&quot; name=&quot;option[&lt;?php echo esc_attr($option-&gt;option_name) ?&gt;]&quot; type=&quot;text&quot; id=&quot;&lt;?php echo esc_attr($option-&gt;option_name) ?&gt;&quot;&lt;?php echo $disabled ?&gt;&gt;&lt;?php echo esc_html( $option-&gt;option_value ) ?&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                                                                                &lt;td&gt;&lt;textarea rows=&quot;5&quot; cols=&quot;40&quot; name=&quot;option[&lt;?php echo esc_attr($option-&gt;option_name) ?&gt;]&quot; id=&quot;&lt;?php echo esc_attr($option-&gt;option_name) ?&gt;&quot;&lt;?php echo $disabled ?&gt;&gt;&lt;?php echo esc_html( $option-&gt;option_value ) ?&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">                                                                         &lt;/tr&gt;
</span><span class="cx">                                                                 &lt;?php
</span><span class="cx">                                                                 } else {
</span><span class="lines">@@ -311,7 +311,7 @@
</span><span class="cx">                         &lt;div class=&quot;inside&quot;&gt;
</span><span class="cx">                                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                                                 &lt;?php do_action( 'wpmueditblogaction', $id ); ?&gt;
</span><del>-                                        &lt;/table&gt;
</del><ins>+                                &lt;/table&gt;
</ins><span class="cx">                                 &lt;p class=&quot;submit&quot; style=&quot;margin:-15px 0 -5px 230px;&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;&lt;?php esc_attr_e('Update Options') ?&gt;&quot; /&gt;&lt;/p&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;/div&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -326,27 +326,46 @@
</span><span class="cx">         // List blogs
</span><span class="cx">         case 'list':
</span><span class="cx">         default:
</span><del>-                $apage = ( isset($_GET['apage'] ) &amp;&amp; intval( $_GET['apage'] ) ) ? absint( $_GET['apage'] ) : 1;
-                $num = ( isset($_GET['num'] ) &amp;&amp; intval( $_GET['num'] ) ) ? absint( $_GET['num'] ) : 15;
-                $s = isset($_GET['s']) ? esc_attr( trim( $_GET[ 's' ] ) ) : '';
-                $like_s = like_escape($s);
</del><ins>+                $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
+                if ( empty($pagenum) )
+                        $pagenum = 1;
</ins><span class="cx"> 
</span><ins>+                $per_page = (int) get_user_option( 'ms_sites_per_page' );
+                if ( empty( $per_page ) || $per_page &lt; 1 )
+                        $per_page = 15;
+
+                $per_page = apply_filters( 'ms_sites_per_page', $per_page );
+
+                $s = isset($_GET['s']) ? stripslashes( trim( $_GET[ 's' ] ) ) : '';
+                $like_s = esc_sql( like_escape( $s ) ); 
+
</ins><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']) ) {
-                        $query .= &quot; AND ( {$wpdb-&gt;blogs}.domain LIKE '%{$like_s}%' OR {$wpdb-&gt;blogs}.path LIKE '%{$like_s}%' ) &quot;;
-                } elseif ( isset($_GET['blog_id']) ) {
-                        $query .= &quot; AND   blog_id = '&quot;. absint( $_GET['blog_id'] ).&quot;' &quot;;
-                } elseif ( isset($_GET['blog_ip']) ) {
-                        $query = &quot;SELECT *
-                                FROM {$wpdb-&gt;blogs}, {$wpdb-&gt;registration_log}
-                                WHERE site_id = '{$wpdb-&gt;siteid}'
-                                AND {$wpdb-&gt;blogs}.blog_id = {$wpdb-&gt;registration_log}.blog_id
-                                AND {$wpdb-&gt;registration_log}.IP LIKE ('%{$like_s}%')&quot;;
</del><ins>+                if ( isset( $_GET['blogstatus'] ) ) {
+                        if ( 'deleted' == $_GET['blogstatus'] ) {
+                                $query .= &quot; AND {$wpdb-&gt;blogs}.deleted = '1' &quot;;
+                        } elseif ( 'archived' == $_GET['blogstatus'] ) {
+                                $query .= &quot; AND {$wpdb-&gt;blogs}.archived = '1' &quot;;
+                        } elseif ( 'spam' == $_GET['blogstatus'] ) {
+                                $query .= &quot; AND {$wpdb-&gt;blogs}.spam = '1' &quot;;
+                        }
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><ins>+                if ( isset( $_GET['searchaction'] ) ) {
+                        if ( 'name' == $_GET['searchaction'] ) {
+                                $query .= &quot; AND ( {$wpdb-&gt;blogs}.domain LIKE '%{$like_s}%' OR {$wpdb-&gt;blogs}.path LIKE '%{$like_s}%' ) &quot;;
+                        } elseif ( 'id' == $_GET['searchaction'] ) {
+                                $query .= &quot; AND {$wpdb-&gt;blogs}.blog_id = '{$like_s}' &quot;;
+                        } elseif ( 'ip' == $_GET['searchaction'] ) {
+                                $query = &quot;SELECT *
+                                        FROM {$wpdb-&gt;blogs}, {$wpdb-&gt;registration_log}
+                                        WHERE site_id = '{$wpdb-&gt;siteid}'
+                                        AND {$wpdb-&gt;blogs}.blog_id = {$wpdb-&gt;registration_log}.blog_id
+                                        AND {$wpdb-&gt;registration_log}.IP LIKE ('%{$like_s}%')&quot;;
+                        }
+                }
+
</ins><span class="cx">                 $order_by = isset( $_GET['sortby'] ) ? $_GET['sortby'] : 'id';
</span><del>-
</del><span class="cx">                 if ( $order_by == 'registered' ) {
</span><span class="cx">                         $query .= ' ORDER BY registered ';
</span><span class="cx">                 } elseif ( $order_by == 'lastupdated' ) {
</span><span class="lines">@@ -355,67 +374,120 @@
</span><span class="cx">                         $query .= ' ORDER BY domain ';
</span><span class="cx">                 } else {
</span><span class="cx">                         $order_by = 'id';
</span><del>-                        $query .= ' ORDER BY ' . $wpdb-&gt;blogs . '.blog_id ';
</del><ins>+                        $query .= &quot; ORDER BY {$wpdb-&gt;blogs}.blog_id &quot;;
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                $order = isset($_GET['order']) ? $_GET['order'] : 'ASC';
-                $order = ( 'DESC' == $order ) ? 'DESC' : 'ASC';
</del><ins>+                $order = ( isset( $_GET['order'] ) &amp;&amp; 'DESC' == $_GET['order'] ) ? &quot;DESC&quot; : &quot;ASC&quot;;
</ins><span class="cx">                 $query .= $order;
</span><span class="cx"> 
</span><del>-                if ( !empty($s) )
-                        $total = $wpdb-&gt;get_var( str_replace('SELECT *', 'SELECT COUNT(blog_id)', $query) );
-                else
-                        $total = $wpdb-&gt;get_var( &quot;SELECT COUNT(blog_id) FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;);
</del><ins>+                $total = $wpdb-&gt;get_var( str_replace('SELECT *', 'SELECT COUNT(blog_id)', $query) );
</ins><span class="cx"> 
</span><del>-                $query .= &quot; LIMIT &quot; . intval( ( $apage - 1 ) * $num) . &quot;, &quot; . intval( $num );
</del><ins>+                $query .= &quot; LIMIT &quot; . intval( ( $pagenum - 1 ) * $per_page) . &quot;, &quot; . intval( $per_page );
</ins><span class="cx">                 $blog_list = $wpdb-&gt;get_results( $query, ARRAY_A );
</span><span class="cx"> 
</span><del>-                // Pagination
-                $url2 = &quot;&amp;amp;order=&quot; . $order . &quot;&amp;amp;sortby=&quot; . $order_by . &quot;&amp;amp;s=&quot;;
-                if ( !empty($_GET[ 'blog_ip' ])  )
-                        $url2 .= &quot;&amp;amp;ip_address=&quot; . urlencode( $s );
</del><ins>+                $num_pages = ceil($total / $per_page);
+                $page_links = paginate_links( array(
+                        'base' =&gt; add_query_arg( 'paged', '%#%' ),
+                        'format' =&gt; '',
+                        'prev_text' =&gt; __('&amp;laquo;'),
+                        'next_text' =&gt; __('&amp;raquo;'),
+                        'total' =&gt; $num_pages,
+                        'current' =&gt; $pagenum
+                ));
+
+                if ( empty($_GET['mode']) )
+                        $mode = 'list';
</ins><span class="cx">                 else
</span><del>-                        $url2 .= $s . &quot;&amp;amp;ip_address=&quot; . urlencode( $s );
</del><ins>+                        $mode = esc_attr( $_GET['mode'] );
</ins><span class="cx"> 
</span><del>-                $blog_navigation = paginate_links( array(
-                        'base' =&gt; add_query_arg( 'apage', '%#%' ).$url2,
-                        'format' =&gt; '',
-                        'total' =&gt; ceil($total / $num),
-                        'current' =&gt; $apage
-                ));
</del><ins>+                // for subsubsub and $blog_list
+                $status_list = array( 'archived' =&gt; array( 'site-archived', __('Archived') ), 'spam' =&gt; array( 'site-spammed', __('Spam') ), 'deleted' =&gt; array( 'site-deleted', __('Deleted') ) );
</ins><span class="cx">                 ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;div class=&quot;wrap&quot; style=&quot;position:relative;&quot;&gt;
</del><ins>+                &lt;div class=&quot;wrap&quot;&gt;
</ins><span class="cx">                 &lt;?php screen_icon(); ?&gt;
</span><del>-                &lt;h2&gt;&lt;?php _e('Sites') ?&gt;&lt;/h2&gt;
</del><ins>+                &lt;h2&gt;&lt;?php _e('Sites') ?&gt;
+                &lt;a href=&quot;#form-add-site&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x('Add New', 'sites'); ?&gt;&lt;/a&gt;
+                &lt;?php
+                if ( isset($_GET['s']) &amp;&amp; $_GET['s'] )
+                printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( $s ) );
+                ?&gt;
+                &lt;/h2&gt;
</ins><span class="cx"> 
</span><ins>+                &lt;ul class=&quot;subsubsub&quot;&gt;
+                &lt;?php
+                $status_links = array();
+                $status_class = '';
+                $count = get_blog_count();
+                
+                if ( empty($_GET['blogstatus']) || $_GET['blogstatus'] == 'all' )
+                                $status_class = ' class=&quot;current&quot;';
+
+                $status_links[] = &quot;&lt;li&gt;&lt;a href='ms-sites.php?blogstatus=all'$status_class&gt;&quot; . sprintf( __( 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;' ), number_format_i18n( $count-&gt;all ) ) . '&lt;/a&gt;';
+
+                foreach ( $status_list as $status =&gt; $col ) {
+                        $status_class = '';
+
+                        if ( empty( $count-&gt;$status ) )
+                                continue;
+
+                        if ( isset( $_GET['blogstatus'] ) &amp;&amp; ( $_GET['blogstatus'] == $status ) )
+                                $status_class = ' class=&quot;current&quot;';
+
+                        $status_links[] = &quot;&lt;li&gt;&lt;a href='ms-sites.php?blogstatus=$status'$status_class&gt;&quot; . sprintf(  $col[1] . ' &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;' , number_format_i18n( $count-&gt;$status ) ) . '&lt;/a&gt;';
+                };
+
+                echo implode( &quot; |&lt;/li&gt;\n&quot;, $status_links ) . '&lt;/li&gt;';
+                unset( $status_links );
+                ?&gt;
+                &lt;/ul&gt;
+
</ins><span class="cx">                 &lt;form action=&quot;ms-sites.php&quot; method=&quot;get&quot; id=&quot;ms-search&quot;&gt;
</span><del>-                        &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;blogs&quot; /&gt;
-                        &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo($s); ?&gt;&quot; size=&quot;17&quot; /&gt;
-                        &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;blog_name&quot; value=&quot;&lt;?php esc_attr_e('Search blogs by name') ?&gt;&quot; /&gt;
-                        &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;blog_id&quot; value=&quot;&lt;?php esc_attr_e('by blog ID') ?&gt;&quot; /&gt;
-                        &lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;blog_ip&quot; value=&quot;&lt;?php esc_attr_e('by IP address') ?&gt;&quot; /&gt;
</del><ins>+                &lt;p class=&quot;search-box&quot;&gt;
+                &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;blogs&quot; /&gt;
+                &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php esc_attr_e( $s ); ?&gt;&quot; /&gt;
+                &lt;input type=&quot;submit&quot; class=&quot;button&quot; value=&quot;&lt;?php esc_attr_e('Search Site by') ?&gt;&quot; /&gt;
+                &lt;select name=&quot;searchaction&quot;&gt;
+                        &lt;option value=&quot;name&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Name'); ?&gt;&lt;/option&gt;
+                        &lt;option value=&quot;id&quot;&gt;&lt;?php _e('ID'); ?&gt;&lt;/option&gt;
+                        &lt;option value=&quot;ip&quot;&gt;&lt;?php _e('IP address'); ?&gt;&lt;/option&gt;
+                &lt;/select&gt;
+                &lt;/p&gt;
</ins><span class="cx">                 &lt;/form&gt;
</span><span class="cx"> 
</span><del>-                &lt;form id=&quot;form-blog-list&quot; action=&quot;ms-edit.php?action=allblogs&quot; method=&quot;post&quot;&gt;
-
</del><ins>+                &lt;form id=&quot;form-site-list&quot; action=&quot;ms-edit.php?action=allblogs&quot; method=&quot;post&quot;&gt;
+                &lt;input type=&quot;hidden&quot; name=&quot;mode&quot; value=&quot;&lt;?php echo esc_attr($mode); ?&gt;&quot; /&gt;
</ins><span class="cx">                 &lt;div class=&quot;tablenav&quot;&gt;
</span><del>-                        &lt;?php if ( $blog_navigation ) echo &quot;&lt;div class='tablenav-pages'&gt;$blog_navigation&lt;/div&gt;&quot;; ?&gt;
</del><ins>+                &lt;div class=&quot;alignleft actions&quot;&gt;
+                        &lt;select name=&quot;action&quot;&gt;
+                                &lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;spam&quot;&gt;&lt;?php _e('Mark as Spam'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php _e('Not Spam'); ?&gt;&lt;/option&gt;
+                        &lt;/select&gt;
+                        &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
+                        &lt;?php wp_nonce_field('bulk-sites'); ?&gt;
+                &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;div class=&quot;alignleft&quot;&gt;
-                                &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Delete') ?&gt;&quot; name=&quot;allblog_delete&quot; class=&quot;button-secondary delete&quot; /&gt;
-                                &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Mark as Spam') ?&gt;&quot; name=&quot;allblog_spam&quot; class=&quot;button-secondary&quot; /&gt;
-                                &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Not Spam') ?&gt;&quot; name=&quot;allblog_notspam&quot; class=&quot;button-secondary&quot; /&gt;
-                                &lt;?php wp_nonce_field( 'allblogs' ); ?&gt;
-                                &lt;br class=&quot;clear&quot; /&gt;
-                        &lt;/div&gt;
</del><ins>+                &lt;?php if ( $page_links ) { ?&gt;
+                &lt;div class=&quot;tablenav-pages&quot;&gt;
+                &lt;?php $page_links_text = sprintf( '&lt;span class=&quot;displaying-num&quot;&gt;' . __( 'Displaying %s&amp;#8211;%s of %s' ) . '&lt;/span&gt;%s',
+                number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
+                number_format_i18n( min( $pagenum * $per_page, $num_pages ) ),
+                number_format_i18n( $num_pages ), 
+                $page_links
+                ); echo $page_links_text; ?&gt;
</ins><span class="cx">                 &lt;/div&gt;
</span><ins>+                &lt;?php } ?&gt;
+                
+                &lt;div class=&quot;view-switch&quot;&gt;
+                        &lt;a href=&quot;&lt;?php echo esc_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?&gt;&quot;&gt;&lt;img &lt;?php if ( 'list' == $mode ) echo 'class=&quot;current&quot;'; ?&gt; id=&quot;view-switch-list&quot; src=&quot;&lt;?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?&gt;&quot; width=&quot;20&quot; height=&quot;20&quot; title=&quot;&lt;?php _e('List View') ?&gt;&quot; alt=&quot;&lt;?php _e('List View') ?&gt;&quot; /&gt;&lt;/a&gt;
+                        &lt;a href=&quot;&lt;?php echo esc_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?&gt;&quot;&gt;&lt;img &lt;?php if ( 'excerpt' == $mode ) echo 'class=&quot;current&quot;'; ?&gt; id=&quot;view-switch-excerpt&quot; src=&quot;&lt;?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?&gt;&quot; width=&quot;20&quot; height=&quot;20&quot; title=&quot;&lt;?php _e('Excerpt View') ?&gt;&quot; alt=&quot;&lt;?php _e('Excerpt View') ?&gt;&quot; /&gt;&lt;/a&gt;
+                &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                &lt;br class=&quot;clear&quot; /&gt;
</del><ins>+                &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                &lt;?php if ( isset($_GET['s']) &amp;&amp; !empty($_GET['s']) ) : ?&gt;
-                        &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;
-                &lt;?php endif; ?&gt;
</del><ins>+                &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt; 
</ins><span class="cx"> 
</span><span class="cx">                 &lt;?php
</span><span class="cx">                 // define the columns to display, the syntax is 'internal name' =&gt; 'display name'
</span><span class="lines">@@ -432,35 +504,55 @@
</span><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><del>-
-                $sortby_url = &quot;s=&quot;;
-                if ( !empty($_GET[ 'blog_ip' ]) )
-                        $sortby_url .= &quot;&amp;ip_address=&quot; . urlencode( $s );
-                else
-                        $sortby_url .= urlencode( $s ) . &quot;&amp;ip_address=&quot; . urlencode( $s );
</del><span class="cx">                 ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;table width=&quot;100%&quot; cellpadding=&quot;3&quot; cellspacing=&quot;3&quot; class=&quot;widefat&quot;&gt;
</del><ins>+                &lt;table class=&quot;widefat&quot;&gt;
</ins><span class="cx">                         &lt;thead&gt;
</span><span class="cx">                                 &lt;tr&gt;
</span><del>-                                &lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;/th&gt;
-                                &lt;?php foreach($posts_columns as $column_id =&gt; $column_display_name) {
-                                        $column_link = &quot;&lt;a href='ms-sites.php?{$sortby_url}&amp;amp;sortby={$column_id}&amp;amp;&quot;;
-                                        if ( $order_by == $column_id ) {
-                                                $column_link .= ($order_by == 'DESC') ? 'order=ASC&amp;amp;' : 'order=DESC&amp;amp;';
-                                        }
-                                        $column_link .= &quot;apage={$apage}'&gt;{$column_display_name}&lt;/a&gt;&quot;;
</del><ins>+                                &lt;th style=&quot;&quot; class=&quot;manage-column column-cb check-column&quot; id=&quot;cb&quot; scope=&quot;col&quot;&gt;
+                                        &lt;input type=&quot;checkbox&quot; /&gt;
+                                &lt;/th&gt;
+                                &lt;?php
+                                foreach($posts_columns as $column_id =&gt; $column_display_name) {
+                                        $column_link = &quot;&lt;a href='&quot;;
+                                        $order2 = '';
+                                        if ( $order_by == $column_id )
+                                                $order2 = ($order == 'DESC') ? 'ASC' : 'DESC';
</ins><span class="cx"> 
</span><ins>+                                        $column_link .= esc_url(add_query_arg( array('order' =&gt; $order2, 'paged' =&gt; $pagenum, 'sortby' =&gt; $column_id ), $_SERVER['REQUEST_URI'] ) );
+                                        $column_link .= &quot;'&gt;{$column_display_name}&lt;/a&gt;&quot;;
</ins><span class="cx">                                         $col_url = ($column_id == 'users' || $column_id == 'plugins') ? $column_display_name : $column_link;
</span><del>-                                        ?&gt;
-                                        &lt;th scope=&quot;col&quot;&gt;&lt;?php echo $col_url ?&gt;&lt;/th&gt;
</del><ins>+                                ?&gt;
+                                &lt;th scope=&quot;col&quot;&gt;
+                                        &lt;?php echo $col_url ?&gt;
+                                &lt;/th&gt;
</ins><span class="cx">                                 &lt;?php } ?&gt;
</span><span class="cx">                                 &lt;/tr&gt;
</span><span class="cx">                         &lt;/thead&gt;
</span><ins>+                        &lt;tfoot&gt;
+                                &lt;tr&gt;
+                                &lt;th class=&quot;manage-column column-cb check-column&quot; id=&quot;cb&quot; scope=&quot;col&quot;&gt;
+                                        &lt;input type=&quot;checkbox&quot; /&gt;
+                                &lt;/th&gt;
+                                &lt;?php foreach($posts_columns as $column_id =&gt; $column_display_name) {
+                                        $column_link = &quot;&lt;a href='&quot;;
+                                        $order2 = '';
+                                        if ( $order_by == $column_id )
+                                                $order2 = ($order == 'DESC') ? 'ASC' : 'DESC';
+                                                
+                                        $column_link .= esc_url(add_query_arg( array('order' =&gt; $order2, 'paged' =&gt; $pagenum, 'sortby' =&gt; $column_id ), remove_query_arg( array('action', 'updated'), $_SERVER['REQUEST_URI'] ) ) );
+                                        $column_link .= &quot;'&gt;{$column_display_name}&lt;/a&gt;&quot;;
+                                        $col_url = ($column_id == 'users' || $column_id == 'plugins') ? $column_display_name : $column_link;
+                                ?&gt;
+                                &lt;th scope=&quot;col&quot;&gt;
+                                        &lt;?php echo $col_url ?&gt;
+                                &lt;/th&gt; 
+                                &lt;?php } ?&gt;
+                                &lt;/tr&gt;
+                        &lt;/tfoot&gt;
</ins><span class="cx">                         &lt;tbody id=&quot;the-list&quot;&gt;
</span><span class="cx">                         &lt;?php
</span><span class="cx">                         if ( $blog_list ) {
</span><del>-                                $status_list = array( 'archived' =&gt; array( 'site-archived', __('Archived') ), 'spam' =&gt; array( 'site-spammed', __('Spam') ), 'deleted' =&gt; array( 'site-deleted', __('Deleted') ) );
</del><span class="cx">                                 $class = '';
</span><span class="cx">                                 foreach ( $blog_list as $blog ) {
</span><span class="cx">                                         $class = ('alternate' == $class) ? '' : 'alternate';
</span><span class="lines">@@ -500,10 +592,12 @@
</span><span class="cx">                                                         break;
</span><span class="cx"> 
</span><span class="cx">                                                         case 'blogname': ?&gt;
</span><del>-                                                                &lt;td valign=&quot;top&quot;&gt;
</del><ins>+                                                                &lt;td class=&quot;column-title&quot;&gt;
</ins><span class="cx">                                                                         &lt;a href=&quot;ms-sites.php?action=editblog&amp;amp;id=&lt;?php echo $blog['blog_id'] ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo $blogname; echo $blog_state?&gt;&lt;/a&gt;
</span><del>-                                                                        &lt;br/&gt;
</del><span class="cx">                                                                         &lt;?php
</span><ins>+                                                                        if ( 'list' != $mode )
+                                                                                echo '&lt;p&gt;' . get_blog_option( $blog['blog_id'], 'blogname' ) . '- &lt;em&gt;' . get_blog_option( $blog['blog_id'], 'blogdescription ' ) . '&lt;/em&gt;&lt;/p&gt;';
+
</ins><span class="cx">                                                                         $actions        = array();
</span><span class="cx">                                                                         $actions[]        = '&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">                                                                         $actions[]        = &quot;&lt;a href='&quot; . get_admin_url($blog['blog_id']) . &quot;' class='edit'&gt;&quot; . __('Backend') . '&lt;/a&gt;';
</span><span class="lines">@@ -539,17 +633,21 @@
</span><span class="cx"> 
</span><span class="cx">                                                         case 'lastupdated': ?&gt;
</span><span class="cx">                                                                 &lt;td valign=&quot;top&quot;&gt;
</span><del>-                                                                        &lt;?php echo ( $blog['last_updated'] == '0000-00-00 00:00:00' ) ? __(&quot;Never&quot;) : mysql2date(__('Y-m-d \&lt;\b\r \/\&gt; g:i:s a'), $blog['last_updated']); ?&gt;
-                                                                &lt;/td&gt;
</del><ins>+                                                                        &lt;?php
+                                                                        if ( 'list' == $mode )
+                                                                                $date = 'Y/m/d';
+                                                                        else
+                                                                                $date = 'Y/m/d \&lt;\b\r \/\&gt; g:i:s a';
+                                                                        echo ( $blog['last_updated'] == '0000-00-00 00:00:00' ) ? __(&quot;Never&quot;) : mysql2date( __( $date ), $blog['last_updated'] ); ?&gt;
+                                                                &lt;/td&gt; 
</ins><span class="cx">                                                         &lt;?php
</span><span class="cx">                                                         break;
</span><del>-                                                        case 'registered': ?&gt;
</del><ins>+                                                case 'registered': ?&gt;
</ins><span class="cx">                                                                 &lt;td valign=&quot;top&quot;&gt;
</span><del>-                                                                        &lt;?php echo mysql2date(__('Y-m-d \&lt;\b\r \/\&gt; g:i:s a'), $blog['registered']); ?&gt;
</del><ins>+                                                                &lt;?php echo mysql2date(__( $date ), $blog['registered'] ); ?&gt;
</ins><span class="cx">                                                                 &lt;/td&gt;
</span><del>-                                                        &lt;?php
-                                                        break;
-
</del><ins>+                                                &lt;?php
+                                                break;
</ins><span class="cx">                                                         case 'users': ?&gt;
</span><span class="cx">                                                                 &lt;td valign=&quot;top&quot;&gt;
</span><span class="cx">                                                                         &lt;?php
</span><span class="lines">@@ -560,8 +658,12 @@
</span><span class="cx">                                                                                         $blogusers = array_slice( $blogusers, 0, 5 );
</span><span class="cx">                                                                                         $blogusers_warning = __( 'Only showing first 5 users.' ) . ' &lt;a href=&quot;' . get_admin_url($blog['blog_id'], 'users.php') . '&quot;&gt;' . __( 'More' ) . '&lt;/a&gt;';
</span><span class="cx">                                                                                 }
</span><del>-                                                                                foreach ( $blogusers as $key =&gt; $val )
-                                                                                        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;';
</del><ins>+                                                                                foreach ( $blogusers as $key =&gt; $val ) {
+                                                                                        echo '&lt;a href=&quot;user-edit.php?user_id=' . $val-&gt;user_id . '&quot;&gt;' . $val-&gt;user_login . '&lt;/a&gt; ';
+                                                                                        if ( 'list' != $mode )
+                                                                                                echo '(' . $val-&gt;user_email . ')';
+                                                                                        echo '&lt;br /&gt;';
+                                                                                }
</ins><span class="cx">                                                                                 if ( $blogusers_warning != '' )
</span><span class="cx">                                                                                         echo '&lt;strong&gt;' . $blogusers_warning . '&lt;/strong&gt;&lt;br /&gt;';
</span><span class="cx">                                                                         }
</span><span class="lines">@@ -592,7 +694,7 @@
</span><span class="cx">                                         &lt;?php
</span><span class="cx">                                 }
</span><span class="cx">                         } else { ?&gt;
</span><del>-                                &lt;tr style='background-color: &lt;?php echo $bgcolor; ?&gt;'&gt;
</del><ins>+                                &lt;tr&gt;
</ins><span class="cx">                                         &lt;td colspan=&quot;8&quot;&gt;&lt;?php _e('No blogs found.') ?&gt;&lt;/td&gt;
</span><span class="cx">                                 &lt;/tr&gt;
</span><span class="cx">                         &lt;?php
</span><span class="lines">@@ -601,34 +703,52 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;/tbody&gt;
</span><span class="cx">                 &lt;/table&gt;
</span><ins>+                &lt;div class=&quot;tablenav&quot;&gt;
+                        &lt;?php
+                        if ( $page_links )
+                                echo &quot;&lt;div class='tablenav-pages'&gt;$page_links_text&lt;/div&gt;&quot;;
+                        ?&gt;
+
+                        &lt;div class=&quot;alignleft actions&quot;&gt;
+                        &lt;select name=&quot;action2&quot;&gt;
+                                &lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;spam&quot;&gt;&lt;?php _e('Mark as Spam'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php _e('Not Spam'); ?&gt;&lt;/option&gt;
+                        &lt;/select&gt;
+                        &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; name=&quot;doaction2&quot; id=&quot;doaction2&quot; class=&quot;button-secondary action&quot; /&gt;
+                        &lt;/div&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/div&gt;
+
</ins><span class="cx">                 &lt;/form&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;wrap&quot;&gt;
</span><del>-                        &lt;a name=&quot;form-add-blog&quot;&gt;&lt;/a&gt;
</del><ins>+                        &lt;a name=&quot;form-add-site&quot;&gt;&lt;/a&gt;
</ins><span class="cx">                         &lt;h2&gt;&lt;?php _e('Add Site') ?&gt;&lt;/h2&gt;
</span><span class="cx">                         &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=addblog&quot;&gt;
</span><span class="cx">                                 &lt;?php wp_nonce_field('add-blog') ?&gt;
</span><span class="cx">                                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                                         &lt;tr class=&quot;form-field form-required&quot;&gt;
</span><del>-                                                &lt;th style=&quot;text-align:center;&quot; scope='row'&gt;&lt;?php _e('Site Address') ?&gt;&lt;/th&gt;
</del><ins>+                                                &lt;th scope='row'&gt;&lt;?php _e('Site Address') ?&gt;&lt;/th&gt;
</ins><span class="cx">                                                 &lt;td&gt;
</span><span class="cx">                                                 &lt;?php if ( is_subdomain_install() ) { ?&gt;
</span><del>-                                                        &lt;input name=&quot;blog[domain]&quot; type=&quot;text&quot; title=&quot;&lt;?php _e('Domain') ?&gt;&quot;/&gt;.&lt;?php echo $current_site-&gt;domain;?&gt;
</del><ins>+                                                        &lt;input name=&quot;blog[domain]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e('Domain') ?&gt;&quot;/&gt;.&lt;?php echo $current_site-&gt;domain;?&gt;
</ins><span class="cx">                                                 &lt;?php } else {
</span><del>-                                                        echo $current_site-&gt;domain . $current_site-&gt;path ?&gt;&lt;input name=&quot;blog[domain]&quot; type=&quot;text&quot; title=&quot;&lt;?php _e('Domain') ?&gt;&quot;/&gt;
</del><ins>+                                                        echo $current_site-&gt;domain . $current_site-&gt;path ?&gt;&lt;input name=&quot;blog[domain]&quot; class=&quot;regular-text&quot; type=&quot;text&quot; title=&quot;&lt;?php _e('Domain') ?&gt;&quot;/&gt;
</ins><span class="cx">                                                 &lt;?php }
</span><span class="cx">                                                 echo &quot;&lt;p&gt;&quot; . __( 'Only the characters a-z and 0-9 recommended.' ) . &quot;&lt;/p&gt;&quot;;
</span><span class="cx">                                                 ?&gt;
</span><span class="cx">                                                 &lt;/td&gt;
</span><span class="cx">                                         &lt;/tr&gt;
</span><span class="cx">                                         &lt;tr class=&quot;form-field form-required&quot;&gt;
</span><del>-                                                &lt;th style=&quot;text-align:center;&quot; scope='row'&gt;&lt;?php _e('Site Title') ?&gt;&lt;/th&gt;
-                                                &lt;td&gt;&lt;input name=&quot;blog[title]&quot; type=&quot;text&quot; size=&quot;20&quot; title=&quot;&lt;?php _e('Title') ?&gt;&quot;/&gt;&lt;/td&gt;
</del><ins>+                                                &lt;th scope='row'&gt;&lt;?php _e('Site Title') ?&gt;&lt;/th&gt;
+                                                &lt;td&gt;&lt;input name=&quot;blog[title]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e('Title') ?&gt;&quot;/&gt;&lt;/td&gt;
</ins><span class="cx">                                         &lt;/tr&gt;
</span><span class="cx">                                         &lt;tr class=&quot;form-field form-required&quot;&gt;
</span><del>-                                                &lt;th style=&quot;text-align:center;&quot; scope='row'&gt;&lt;?php _e('Admin Email') ?&gt;&lt;/th&gt;
-                                                &lt;td&gt;&lt;input name=&quot;blog[email]&quot; type=&quot;text&quot; size=&quot;20&quot; title=&quot;&lt;?php _e('Email') ?&gt;&quot;/&gt;&lt;/td&gt;
</del><ins>+                                                &lt;th scope='row'&gt;&lt;?php _e('Admin Email') ?&gt;&lt;/th&gt;
+                                                &lt;td&gt;&lt;input name=&quot;blog[email]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e('Email') ?&gt;&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;td colspan='2'&gt;&lt;?php _e('A new user will be created if the above email address is not in the database.') ?&gt;&lt;br /&gt;&lt;?php _e('The username and password will be mailed to this email address.') ?&gt;&lt;/td&gt;
</span></span></pre>
</div>
</div>

</body>
</html>