<!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>[13953] trunk/wp-admin: More MS cleanups.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13953">13953</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-04-03 00:10:44 +0000 (Sat, 03 Apr 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>More MS cleanups. props ocean90. see <a href="http://trac.wordpress.org/ticket/12460">#12460</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminmsdeletesitephp">trunk/wp-admin/ms-delete-site.php</a></li>
<li><a href="#trunkwpadminmsoptionsphp">trunk/wp-admin/ms-options.php</a></li>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
<li><a href="#trunkwpadminmsthemesphp">trunk/wp-admin/ms-themes.php</a></li>
<li><a href="#trunkwpadminmsusersphp">trunk/wp-admin/ms-users.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminmsdeletesitephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-delete-site.php (13952 => 13953)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-delete-site.php        2010-04-02 23:54:56 UTC (rev 13952)
+++ trunk/wp-admin/ms-delete-site.php        2010-04-03 00:10:44 UTC (rev 13953)
</span><span class="lines">@@ -17,8 +17,6 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash';
-
</del><span class="cx"> $title = __( 'Delete Site' );
</span><span class="cx"> $parent_file = 'tools.php';
</span><span class="cx"> require_once( './admin-header.php' );
</span></span></pre></div>
<a id="trunkwpadminmsoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-options.php (13952 => 13953)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-options.php        2010-04-02 23:54:56 UTC (rev 13952)
+++ trunk/wp-admin/ms-options.php        2010-04-03 00:10:44 UTC (rev 13953)
</span><span class="lines">@@ -1,17 +1,17 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once( './admin.php' );
</span><span class="cx"> 
</span><del>-if ( !is_multisite() )
</del><ins>+if ( ! is_multisite() )
</ins><span class="cx">         wp_die( __( 'Multisite support is not enabled.' ) );
</span><span class="cx"> 
</span><ins>+if ( ! current_user_can( 'manage_network_options' ) )
+    wp_die( __( 'You do not have permission to access this page.' ) );
+
</ins><span class="cx"> $title = __( 'Network Options' );
</span><span class="cx"> $parent_file = 'ms-admin.php';
</span><span class="cx"> 
</span><span class="cx"> include( './admin-header.php' );
</span><span class="cx"> 
</span><del>-if ( ! current_user_can( 'manage_network_options' ) )
-    wp_die( __( 'You do not have permission to access this page.' ) );
-
</del><span class="cx"> if (isset($_GET['updated'])) {
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;?php _e( 'Options saved.' ) ?&gt;&lt;/p&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (13952 => 13953)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-04-02 23:54:56 UTC (rev 13952)
+++ trunk/wp-admin/ms-sites.php        2010-04-03 00:10:44 UTC (rev 13953)
</span><span class="lines">@@ -4,6 +4,9 @@
</span><span class="cx"> if ( !is_multisite() )
</span><span class="cx">         wp_die( __( 'Multisite support is not enabled.' ) );
</span><span class="cx"> 
</span><ins>+if ( ! current_user_can( 'manage_sites' ) )
+        wp_die( __( 'You do not have permission to access this page.' ) );
+
</ins><span class="cx"> $title = __( 'Sites' );
</span><span class="cx"> $parent_file = 'ms-admin.php';
</span><span class="cx"> 
</span><span class="lines">@@ -11,9 +14,6 @@
</span><span class="cx"> 
</span><span class="cx"> require_once( './admin-header.php' );
</span><span class="cx"> 
</span><del>-if ( ! current_user_can( 'manage_sites' ) )
-        wp_die( __( 'You do not have permission to access this page.' ) );
-
</del><span class="cx"> $id = isset( $_GET['id'] ) ? intval( $_GET['id'] ) : 0;
</span><span class="cx"> 
</span><span class="cx"> if ( isset( $_GET['updated'] ) &amp;&amp; $_GET['updated'] == 'true' &amp;&amp; ! empty( $_GET['action'] ) ) {
</span><span class="lines">@@ -22,10 +22,10 @@
</span><span class="cx">                 &lt;?php
</span><span class="cx">                 switch ( $_GET['action'] ) {
</span><span class="cx">                         case 'all_notspam':
</span><del>-                                _e( 'Sites mark as not spam.' );
</del><ins>+                                _e( 'Sites removed from spam.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         case 'all_spam':
</span><del>-                                _e( 'Sites mark as spam.' );
</del><ins>+                                _e( 'Sites marked as spam.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         case 'all_delete':
</span><span class="cx">                                 _e( 'Sites deleted.' );
</span><span class="lines">@@ -49,16 +49,16 @@
</span><span class="cx">                                 _e( 'Site deactivated.' );
</span><span class="cx">                         break;
</span><span class="cx">                         case 'unspam':
</span><del>-                                _e( 'Site mark as not spam.' );
</del><ins>+                                _e( 'Site removed from spam.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         case 'spam':
</span><del>-                                _e( 'Site mark as spam.' );
</del><ins>+                                _e( 'Site marked as spam.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         case 'unmature':
</span><del>-                                _e( 'Site mark as not mature.' );
</del><ins>+                                _e( 'Site marked as not mature.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         case 'mature':
</span><del>-                                _e( 'Site mark as mature.' );
</del><ins>+                                _e( 'Site marked as mature.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         default:
</span><span class="cx">                                 _e( 'Settings saved.' );
</span><span class="lines">@@ -125,6 +125,7 @@
</span><span class="cx">                                                                 &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[public]&quot; value=&quot;0&quot; &lt;?php checked( $details-&gt;public, 0 ); ?&gt; /&gt; &lt;?php _e( 'No' ) ?&gt;&lt;/label&gt;
</span><span class="cx">                                                         &lt;/td&gt;
</span><span class="cx">                                                 &lt;/tr&gt;
</span><ins>+                                                &lt;?php if ( ! $is_main_site ) { ?&gt;
</ins><span class="cx">                                                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="cx">                                                         &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Archived' ); ?&gt;&lt;/th&gt;
</span><span class="cx">                                                         &lt;td&gt;
</span><span class="lines">@@ -133,13 +134,6 @@
</span><span class="cx">                                                         &lt;/td&gt;
</span><span class="cx">                                                 &lt;/tr&gt;
</span><span class="cx">                                                 &lt;tr class=&quot;form-field&quot;&gt;
</span><del>-                                                        &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Mature' ); ?&gt;&lt;/th&gt;
-                                                        &lt;td&gt;
-                                                                &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[mature]&quot; value=&quot;1&quot; &lt;?php checked( $details-&gt;mature, 1 ); ?&gt; /&gt; &lt;?php _e( 'Yes' ) ?&gt;&lt;/label&gt;
-                                                                &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[mature]&quot; value=&quot;0&quot; &lt;?php checked( $details-&gt;mature, 0); ?&gt; /&gt; &lt;?php _e( 'No' ) ?&gt;&lt;/label&gt;
-                                                        &lt;/td&gt;
-                                                &lt;/tr&gt;
-                                                &lt;tr class=&quot;form-field&quot;&gt;
</del><span class="cx">                                                         &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Spam' ); ?&gt;&lt;/th&gt;
</span><span class="cx">                                                         &lt;td&gt;
</span><span class="cx">                                                                 &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[spam]&quot; value=&quot;1&quot; &lt;?php checked( $details-&gt;spam, 1 ); ?&gt; /&gt; &lt;?php _e( 'Yes' ) ?&gt;&lt;/label&gt;
</span><span class="lines">@@ -153,6 +147,14 @@
</span><span class="cx">                                                                 &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[deleted]&quot; value=&quot;0&quot; &lt;?php checked( $details-&gt;deleted, 0 ); ?&gt; /&gt; &lt;?php _e( 'No' ) ?&gt;&lt;/label&gt;
</span><span class="cx">                                                         &lt;/td&gt;
</span><span class="cx">                                                 &lt;/tr&gt;
</span><ins>+                                                &lt;tr class=&quot;form-field&quot;&gt;
+                                                        &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Mature' ); ?&gt;&lt;/th&gt;
+                                                        &lt;td&gt;
+                                                                &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[mature]&quot; value=&quot;1&quot; &lt;?php checked( $details-&gt;mature, 1 ); ?&gt; /&gt; &lt;?php _e( 'Yes' ) ?&gt;&lt;/label&gt;
+                                                                &lt;label&gt;&lt;input type=&quot;radio&quot; style=&quot;width:20px;&quot; name=&quot;blog[mature]&quot; value=&quot;0&quot; &lt;?php checked( $details-&gt;mature, 0); ?&gt; /&gt; &lt;?php _e( 'No' ) ?&gt;&lt;/label&gt;
+                                                        &lt;/td&gt;
+                                                &lt;/tr&gt;
+                                                &lt;?php } ?&gt;
</ins><span class="cx">                                         &lt;/table&gt;
</span><span class="cx">                                         &lt;p class=&quot;submit&quot; style=&quot;text-align:center;&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;
</span><span class="lines">@@ -549,35 +551,39 @@
</span><span class="cx">                                                                         if ( 'list' != $mode )
</span><span class="cx">                                                                                 echo '&lt;p&gt;' . sprintf( _x( '%1$s &amp;#8211; &lt;em&gt;%2$s', '%1$s: site name. %2$s: site tagline.' ), get_blog_option( $blog['blog_id'], 'blogname' ), get_blog_option( $blog['blog_id'], 'blogdescription ' ) ) . '&lt;/em&gt;&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-                                                                        $actions        = array();
-                                                                        $actions[]        = '&lt;span class=&quot;edit&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-sites.php?action=editblog&amp;amp;id=' . $blog['blog_id'] ) ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;&lt;span&gt;';
-                                                                        $actions[]        = &quot;&lt;span class='backend'&gt;&lt;a href='&quot; . esc_url( get_admin_url($blog['blog_id']) ) . &quot;' class='edit'&gt;&quot; . __( 'Backend' ) . '&lt;/a&gt;&lt;/span&gt;';
</del><ins>+                                                                        // Preordered.
+                                                                        $actions = array(
+                                                                                'edit' =&gt; '', 'backend' =&gt; '',
+                                                                                'activate' =&gt; '', 'deactivate' =&gt; '',
+                                                                                'archive' =&gt; '', 'unarchive' =&gt; '',
+                                                                                'spam' =&gt; '', 'unspam' =&gt; '',
+                                                                                'delete' =&gt; '',
+                                                                                'visit' =&gt; '',
+                                                                        );
+
+                                                                        $actions['edit']        = '&lt;span class=&quot;edit&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-sites.php?action=editblog&amp;amp;id=' . $blog['blog_id'] ) ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;&lt;span&gt;';
+                                                                        $actions['backend']        = &quot;&lt;span class='backend'&gt;&lt;a href='&quot; . esc_url( get_admin_url($blog['blog_id']) ) . &quot;' class='edit'&gt;&quot; . __( 'Backend' ) . '&lt;/a&gt;&lt;/span&gt;';
</ins><span class="cx">                                                                         if ( $current_site-&gt;blog_id != $blog['blog_id'] ) {
</span><span class="cx">                                                                                 if ( get_blog_status( $blog['blog_id'], 'deleted' ) == '1' )
</span><del>-                                                                                        $actions[]        = '&lt;span class=&quot;activate&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=activateblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to activate the site %s&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Activate' ) . '&lt;/a&gt;&lt;/span&gt;';
</del><ins>+                                                                                        $actions['activate']        = '&lt;span class=&quot;activate&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=activateblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to activate the site %s&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Activate' ) . '&lt;/a&gt;&lt;/span&gt;';
</ins><span class="cx">                                                                                 else
</span><del>-                                                                                        $actions[]        = '&lt;span class=&quot;activate&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=deactivateblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to deactivate the site %s&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Deactivate' ) . '&lt;/a&gt;&lt;/span&gt;';
-        
</del><ins>+                                                                                        $actions['deactivate']        = '&lt;span class=&quot;activate&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=deactivateblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to deactivate the site %s&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Deactivate' ) . '&lt;/a&gt;&lt;/span&gt;';
+
</ins><span class="cx">                                                                                 if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
</span><del>-                                                                                        $actions[]        = '&lt;span class=&quot;archive&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=unarchiveblog&amp;amp;id=' .  $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unarchive the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Unarchive' ) . '&lt;/a&gt;&lt;/span&gt;';
</del><ins>+                                                                                        $actions['unarchive']        = '&lt;span class=&quot;archive&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=unarchiveblog&amp;amp;id=' .  $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unarchive the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Unarchive' ) . '&lt;/a&gt;&lt;/span&gt;';
</ins><span class="cx">                                                                                 else
</span><del>-                                                                                        $actions[]        = '&lt;span class=&quot;archive&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=archiveblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to archive the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Archive' ) . '&lt;/a&gt;&lt;/span&gt;';
-        
</del><ins>+                                                                                        $actions['archive']        = '&lt;span class=&quot;archive&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=archiveblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to archive the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Archive' ) . '&lt;/a&gt;&lt;/span&gt;';
+
</ins><span class="cx">                                                                                 if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' )
</span><del>-                                                                                        $actions[]        = '&lt;span class=&quot;spam&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=unspamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unspam the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Not Spam' ) . '&lt;/a&gt;&lt;/span&gt;';
</del><ins>+                                                                                        $actions['unspam']        = '&lt;span class=&quot;spam&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=unspamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unspam the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Not Spam' ) . '&lt;/a&gt;&lt;/span&gt;';
</ins><span class="cx">                                                                                 else
</span><del>-                                                                                        $actions[]        = '&lt;span class=&quot;spam&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=spamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to mark the site %s as spam.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Spam' ) . '&lt;/a&gt;&lt;/span&gt;';
-        
-                                                                                if ( get_blog_status( $blog['blog_id'], 'mature' ) == '1' )
-                                                                                        $actions[]        = '&lt;span class=&quot;mature&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=unmatureblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to unmature the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Not Mature' ) . '&lt;/a&gt;&lt;/span&gt;';
-                                                                                else
-                                                                                        $actions[]        = '&lt;span class=&quot;mature&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=matureblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to mark the site %s as mature.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Mature' ) . '&lt;/a&gt;&lt;/span&gt;';
-        
-                                                                                $actions[]        = '&lt;span class=&quot;delete&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=deleteblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to delete the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;&lt;/span&gt;';
</del><ins>+                                                                                        $actions['spam']        = '&lt;span class=&quot;spam&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=spamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to mark the site %s as spam.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Spam' ) . '&lt;/a&gt;&lt;/span&gt;';
+
+                                                                                $actions['delete']        = '&lt;span class=&quot;delete&quot;&gt;&lt;a href=&quot;' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;amp;action2=deleteblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( &quot;You are about to delete the site %s.&quot; ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;&lt;/span&gt;';
</ins><span class="cx">                                                                         }
</span><span class="cx"> 
</span><del>-                                                                        $actions[]        = &quot;&lt;span class='view'&gt;&lt;a href='&quot; . esc_url( get_home_url( $blog['blog_id'] ) ) . &quot;' rel='permalink'&gt;&quot; . __( 'Visit' ) . '&lt;/a&gt;';
-
</del><ins>+                                                                        $actions['visit']        = &quot;&lt;span class='view'&gt;&lt;a href='&quot; . esc_url( get_home_url( $blog['blog_id'] ) ) . &quot;' rel='permalink'&gt;&quot; . __( 'Visit' ) . '&lt;/a&gt;';
+                                                                        $actions = array_filter( $actions );
</ins><span class="cx">                                                                         if ( count( $actions ) ) : ?&gt;
</span><span class="cx">                                                                         &lt;div class=&quot;row-actions&quot;&gt;
</span><span class="cx">                                                                                 &lt;?php echo implode( ' | ', $actions ); ?&gt;
</span><span class="lines">@@ -600,7 +606,7 @@
</span><span class="cx">                                                         break;
</span><span class="cx">                                                 case 'registered': ?&gt;
</span><span class="cx">                                                                 &lt;td valign=&quot;top&quot;&gt;
</span><del>-                                                                &lt;?php 
</del><ins>+                                                                &lt;?php
</ins><span class="cx">                                                                 if ( $blog['registered'] == '0000-00-00 00:00:00' )
</span><span class="cx">                                                                         echo '&amp;#x2014;';
</span><span class="cx">                                                                 else
</span></span></pre></div>
<a id="trunkwpadminmsthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-themes.php (13952 => 13953)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-themes.php        2010-04-02 23:54:56 UTC (rev 13952)
+++ trunk/wp-admin/ms-themes.php        2010-04-03 00:10:44 UTC (rev 13953)
</span><span class="lines">@@ -1,13 +1,13 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> require_once( './admin.php' );
</span><span class="cx"> 
</span><ins>+if ( ! current_user_can( 'manage_network_themes' ) )
+        wp_die( __( 'You do not have permission to access this page.' ) );
+
</ins><span class="cx"> $title = __( 'Network Themes' );
</span><span class="cx"> $parent_file = 'ms-admin.php';
</span><span class="cx"> require_once( './admin-header.php' );
</span><span class="cx"> 
</span><del>-if ( ! current_user_can( 'manage_network_themes' ) )
-        wp_die( __( 'You do not have permission to access this page.' ) );
-
</del><span class="cx"> if ( isset( $_GET['updated'] ) ) {
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;?php _e( 'Site themes saved.' ) ?&gt;&lt;/p&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminmsusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-users.php (13952 => 13953)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-users.php        2010-04-02 23:54:56 UTC (rev 13952)
+++ trunk/wp-admin/ms-users.php        2010-04-03 00:10:44 UTC (rev 13953)
</span><span class="lines">@@ -4,6 +4,9 @@
</span><span class="cx"> if ( !is_multisite() )
</span><span class="cx">         wp_die( __( 'Multisite support is not enabled.' ) );
</span><span class="cx"> 
</span><ins>+if ( ! current_user_can( 'manage_network_users' ) )
+        wp_die( __( 'You do not have permission to access this page.' ) );
+
</ins><span class="cx"> $title = __( 'Users' );
</span><span class="cx"> $parent_file = 'ms-admin.php';
</span><span class="cx"> 
</span><span class="lines">@@ -11,9 +14,6 @@
</span><span class="cx"> 
</span><span class="cx"> require_once( './admin-header.php' );
</span><span class="cx"> 
</span><del>-if ( ! current_user_can( 'manage_network_users' ) )
-        wp_die( __( 'You do not have permission to access this page.' ) );
-
</del><span class="cx"> if ( isset( $_GET['updated'] ) &amp;&amp; $_GET['updated'] == 'true' &amp;&amp; ! empty( $_GET['action'] ) ) {
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx">                                 _e( 'Users marked as spam.' );
</span><span class="cx">                         break;
</span><span class="cx">                         case 'all_notspam':
</span><del>-                                _e( 'Users marked as not spam.' );
</del><ins>+                                _e( 'Users removed from spam.' );
</ins><span class="cx">                         break;
</span><span class="cx">                         case 'all_delete':
</span><span class="cx">                                 _e( 'Users deleted.' );
</span></span></pre>
</div>
</div>

</body>
</html>