<!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>[15491] trunk: Ajaxify list-type screens in the admin.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15491">15491</a></dd>
<dt>Author</dt> <dd>scribu</dd>
<dt>Date</dt> <dd>2010-08-11 21:54:51 +0000 (Wed, 11 Aug 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Ajaxify list-type screens in the admin. See <a href="http://trac.wordpress.org/ticket/14579">#14579</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminadminajaxphp">trunk/wp-admin/admin-ajax.php</a></li>
<li><a href="#trunkwpadmincsscolorsclassiccss">trunk/wp-admin/css/colors-classic.css</a></li>
<li><a href="#trunkwpadmincsscolorsclassicdevcss">trunk/wp-admin/css/colors-classic.dev.css</a></li>
<li><a href="#trunkwpadmincsscolorsfreshcss">trunk/wp-admin/css/colors-fresh.css</a></li>
<li><a href="#trunkwpadmincsscolorsfreshdevcss">trunk/wp-admin/css/colors-fresh.dev.css</a></li>
<li><a href="#trunkwpadmincsswpadmincss">trunk/wp-admin/css/wp-admin.css</a></li>
<li><a href="#trunkwpadmincsswpadmindevcss">trunk/wp-admin/css/wp-admin.dev.css</a></li>
<li><a href="#trunkwpadmineditcommentsphp">trunk/wp-admin/edit-comments.php</a></li>
<li><a href="#trunkwpadminedittagsphp">trunk/wp-admin/edit-tags.php</a></li>
<li><a href="#trunkwpadmineditphp">trunk/wp-admin/edit.php</a></li>
<li><a href="#trunkwpadminincludesmiscphp">trunk/wp-admin/includes/misc.php</a></li>
<li><a href="#trunkwpadminincludesplugininstallphp">trunk/wp-admin/includes/plugin-install.php</a></li>
<li><a href="#trunkwpadminincludespostphp">trunk/wp-admin/includes/post.php</a></li>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpadminincludesthemeinstallphp">trunk/wp-admin/includes/theme-install.php</a></li>
<li><a href="#trunkwpadminincludesuserphp">trunk/wp-admin/includes/user.php</a></li>
<li><a href="#trunkwpadminjsinlineeditpostdevjs">trunk/wp-admin/js/inline-edit-post.dev.js</a></li>
<li><a href="#trunkwpadminjsinlineeditpostjs">trunk/wp-admin/js/inline-edit-post.js</a></li>
<li><a href="#trunkwpadminjstagsdevjs">trunk/wp-admin/js/tags.dev.js</a></li>
<li><a href="#trunkwpadminjstagsjs">trunk/wp-admin/js/tags.js</a></li>
<li><a href="#trunkwpadminlinkmanagerphp">trunk/wp-admin/link-manager.php</a></li>
<li><a href="#trunkwpadminmenuphp">trunk/wp-admin/menu.php</a></li>
<li><a href="#trunkwpadminnetworksitesphp">trunk/wp-admin/network/sites.php</a></li>
<li><a href="#trunkwpadminnetworkusersphp">trunk/wp-admin/network/users.php</a></li>
<li><a href="#trunkwpadminplugininstallphp">trunk/wp-admin/plugin-install.php</a></li>
<li><a href="#trunkwpadminpluginsphp">trunk/wp-admin/plugins.php</a></li>
<li><a href="#trunkwpadminthemeinstallphp">trunk/wp-admin/theme-install.php</a></li>
<li><a href="#trunkwpadminthemesphp">trunk/wp-admin/themes.php</a></li>
<li><a href="#trunkwpadminuploadphp">trunk/wp-admin/upload.php</a></li>
<li><a href="#trunkwpadminusersphp">trunk/wp-admin/users.php</a></li>
<li><a href="#trunkwpincludescommentphp">trunk/wp-includes/comment.php</a></li>
<li><a href="#trunkwpincludesfunctionsphp">trunk/wp-includes/functions.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
<li><a href="#trunkwpincludestaxonomyphp">trunk/wp-includes/taxonomy.php</a></li>
<li><a href="#trunkwpincludesuserphp">trunk/wp-includes/user.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpadminimagessort_ascgif">trunk/wp-admin/images/sort_asc.gif</a></li>
<li><a href="#trunkwpadminimagessort_descgif">trunk/wp-admin/images/sort_desc.gif</a></li>
<li><a href="#trunkwpadminincludesdefaultlisttablesphp">trunk/wp-admin/includes/default-list-tables.php</a></li>
<li><a href="#trunkwpadminincludeslisttablephp">trunk/wp-admin/includes/list-table.php</a></li>
<li><a href="#trunkwpadminjsadmintabledevjs">trunk/wp-admin/js/admin-table.dev.js</a></li>
<li><a href="#trunkwpadminjsadmintablejs">trunk/wp-admin/js/admin-table.js</a></li>
<li><a href="#trunkwpincludesjsjqueryjqueryqueryjs">trunk/wp-includes/js/jquery/jquery.query.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminadminajaxphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/admin-ajax.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/admin-ajax.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/admin-ajax.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -50,6 +50,20 @@
</span><span class="cx"> 
</span><span class="cx"> if ( isset( $_GET['action'] ) ) :
</span><span class="cx"> switch ( $action = $_GET['action'] ) :
</span><ins>+case 'fetch-list' :
+        require_once( './includes/default-list-tables.php' );
+
+        $class = $_GET['list_args']['class'];
+
+        if ( class_exists( $class ) ) {
+                global $current_screen;
+                $current_screen = (object) $_GET['list_args']['screen'];
+                $table = new $class;
+                $table-&gt;ajax_response();
+        }
+
+        die('-1');
+        break;
</ins><span class="cx"> case 'ajax-tag-search' :
</span><span class="cx">         if ( !current_user_can( 'edit_posts' ) )
</span><span class="cx">                 die('-1');
</span><span class="lines">@@ -515,52 +529,17 @@
</span><span class="cx">         }
</span><span class="cx">         $x-&gt;send();
</span><span class="cx">         break;
</span><del>-case 'add-link-cat' : // From Blogroll -&gt; Categories
-        check_ajax_referer( 'add-link-category' );
-        if ( !current_user_can( 'manage_categories' ) )
-                die('-1');
-
-        if ( '' === trim($_POST['name']) ) {
-                $x = new WP_Ajax_Response( array(
-                        'what' =&gt; 'link-cat',
-                        'id' =&gt; new WP_Error( 'name', __('You did not enter a category name.') )
-                ) );
-                $x-&gt;send();
-        }
-
-        $r = wp_insert_term($_POST['name'], 'link_category', $_POST );
-        if ( is_wp_error( $r ) ) {
-                $x = new WP_AJAX_Response( array(
-                        'what' =&gt; 'link-cat',
-                        'id' =&gt; $r
-                ) );
-                $x-&gt;send();
-        }
-
-        extract($r, EXTR_SKIP);
-
-        if ( !$link_cat = link_cat_row( $term_id ) )
-                die('0');
-
-        $x = new WP_Ajax_Response( array(
-                'what' =&gt; 'link-cat',
-                'id' =&gt; $term_id,
-                'position' =&gt; -1,
-                'data' =&gt; $link_cat
-        ) );
-        $x-&gt;send();
-        break;
-case 'add-tag' : // From Manage-&gt;Tags
</del><ins>+case 'add-tag' :
</ins><span class="cx">         check_ajax_referer( 'add-tag' );
</span><span class="cx">         $post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post';
</span><span class="cx">         $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
</span><span class="cx">         $tax = get_taxonomy($taxonomy);
</span><span class="cx"> 
</span><del>-        $x = new WP_Ajax_Response();
-
</del><span class="cx">         if ( !current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
</span><span class="cx">                 die('-1');
</span><span class="cx"> 
</span><ins>+        $x = new WP_Ajax_Response();
+
</ins><span class="cx">         $tag = wp_insert_term($_POST['tag-name'], $taxonomy, $_POST );
</span><span class="cx"> 
</span><span class="cx">         if ( !$tag || is_wp_error($tag) || (!$tag = get_term( $tag['term_id'], $taxonomy )) ) {
</span><span class="lines">@@ -578,6 +557,9 @@
</span><span class="cx">         if ( isset($_POST['screen']) )
</span><span class="cx">                 set_current_screen($_POST['screen']);
</span><span class="cx"> 
</span><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Terms_Table( 'ajax' );
+
</ins><span class="cx">         $level = 0;
</span><span class="cx">         $tag_full_name = false;
</span><span class="cx">         $tag_full_name = $tag-&gt;name;
</span><span class="lines">@@ -588,10 +570,10 @@
</span><span class="cx">                         $tag_full_name = $_tag-&gt;name . ' &amp;#8212; ' . $tag_full_name;
</span><span class="cx">                         $level++;
</span><span class="cx">                 }
</span><del>-                $noparents = _tag_row( $tag, $level, $taxonomy );
</del><ins>+                $noparents = $table-&gt;single_row( $tag, $level, $taxonomy );
</ins><span class="cx">         }
</span><span class="cx">         $tag-&gt;name = $tag_full_name;
</span><del>-        $parents = _tag_row( $tag, 0, $taxonomy);
</del><ins>+        $parents = $table-&gt;single_row( $tag, 0, $taxonomy);
</ins><span class="cx"> 
</span><span class="cx">         $x-&gt;add( array(
</span><span class="cx">                 'what' =&gt; 'taxonomy',
</span><span class="lines">@@ -600,7 +582,7 @@
</span><span class="cx">         $x-&gt;add( array(
</span><span class="cx">                 'what' =&gt; 'term',
</span><span class="cx">                 'position' =&gt; $level,
</span><del>-                'supplemental' =&gt; get_term( $tag-&gt;term_id, $taxonomy, ARRAY_A ) //Refetch as $tag has been contaminated by the full name.
</del><ins>+                'supplemental' =&gt; get_term( $tag-&gt;term_id, $taxonomy, ARRAY_A ) // Refetch as $tag has been contaminated by the full name.
</ins><span class="cx">                 ) );
</span><span class="cx">         $x-&gt;send();
</span><span class="cx">         break;
</span><span class="lines">@@ -642,28 +624,23 @@
</span><span class="cx">         check_ajax_referer( $action );
</span><span class="cx">         if ( !current_user_can( 'edit_posts' ) )
</span><span class="cx">                 die('-1');
</span><del>-        $search = isset($_POST['s']) ? $_POST['s'] : false;
-        $status = isset($_POST['comment_status']) ? $_POST['comment_status'] : 'all';
-        $per_page = isset($_POST['per_page']) ?  (int) $_POST['per_page'] + 8 : 28;
-        $start = isset($_POST['page']) ? ( intval($_POST['page']) * $per_page ) -1 : $per_page - 1;
-        if ( 1 &gt; $start )
-                $start = 27;
</del><span class="cx"> 
</span><del>-        $mode = isset($_POST['mode']) ? $_POST['mode'] : 'detail';
-        $p = isset($_POST['p']) ? $_POST['p'] : 0;
-        $comment_type = isset($_POST['comment_type']) ? $_POST['comment_type'] : '';
-        list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1, $p, $comment_type );
</del><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Comments_Table( 'ajax' );
</ins><span class="cx"> 
</span><del>-        if ( get_option('show_avatars') )
-                add_filter( 'comment_author', 'floated_admin_avatar' );
</del><ins>+        global $comments;
</ins><span class="cx"> 
</span><span class="cx">         if ( !$comments )
</span><span class="cx">                 die('1');
</span><ins>+
+        if ( get_option('show_avatars') )
+                add_filter( 'comment_author', 'floated_admin_avatar' );
+
</ins><span class="cx">         $x = new WP_Ajax_Response();
</span><span class="cx">         foreach ( (array) $comments as $comment ) {
</span><span class="cx">                 get_comment( $comment );
</span><span class="cx">                 ob_start();
</span><del>-                        _wp_comment_row( $comment-&gt;comment_ID, $mode, $status, true, true );
</del><ins>+                        $table-&gt;single_row( $comment-&gt;comment_ID, $mode, $status, true, true );
</ins><span class="cx">                         $comment_list_item = ob_get_contents();
</span><span class="cx">                 ob_end_clean();
</span><span class="cx">                 $x-&gt;add( array(
</span><span class="lines">@@ -681,10 +658,10 @@
</span><span class="cx">         if ( !current_user_can( 'edit_post', $post_ID ) )
</span><span class="cx">                 die('-1');
</span><span class="cx"> 
</span><del>-        $start = isset($_POST['start']) ? intval($_POST['start']) : 0;
-        $num = isset($_POST['num']) ? intval($_POST['num']) : 10;
</del><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Comments_Table( 'ajax' );
</ins><span class="cx"> 
</span><del>-        list($comments, $total) = _wp_get_comment_list( false, false, $start, $num, $post_ID );
</del><ins>+        global $comments;
</ins><span class="cx"> 
</span><span class="cx">         if ( !$comments )
</span><span class="cx">                 die('1');
</span><span class="lines">@@ -694,7 +671,7 @@
</span><span class="cx">         foreach ( (array) $comments as $comment ) {
</span><span class="cx">                 get_comment( $comment );
</span><span class="cx">                 ob_start();
</span><del>-                        _wp_comment_row( $comment-&gt;comment_ID, 'single', false, false );
</del><ins>+                        $table-&gt;single_row( $comment-&gt;comment_ID, 'single', false, false );
</ins><span class="cx">                         $comment_list_item .= ob_get_contents();
</span><span class="cx">                 ob_end_clean();
</span><span class="cx">         }
</span><span class="lines">@@ -707,6 +684,9 @@
</span><span class="cx"> case 'replyto-comment' :
</span><span class="cx">         check_ajax_referer( $action, '_ajax_nonce-replyto-comment' );
</span><span class="cx"> 
</span><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Comments_Table( 'ajax' );
+
</ins><span class="cx">         $comment_post_ID = (int) $_POST['comment_post_ID'];
</span><span class="cx">         if ( !current_user_can( 'edit_post', $comment_post_ID ) )
</span><span class="cx">                 die('-1');
</span><span class="lines">@@ -759,7 +739,7 @@
</span><span class="cx">                         require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
</span><span class="cx">                         _wp_dashboard_recent_comments_row( $comment, false );
</span><span class="cx">                 } else {
</span><del>-                        _wp_comment_row( $comment-&gt;comment_ID, $mode, false, $checkbox );
</del><ins>+                        $table-&gt;single_row( $comment-&gt;comment_ID, $mode, false, $checkbox );
</ins><span class="cx">                 }
</span><span class="cx">                 $comment_list_item = ob_get_contents();
</span><span class="cx">         ob_end_clean();
</span><span class="lines">@@ -795,13 +775,16 @@
</span><span class="cx">         if ( get_option('show_avatars') &amp;&amp; 'single' != $mode )
</span><span class="cx">                 add_filter( 'comment_author', 'floated_admin_avatar' );
</span><span class="cx"> 
</span><del>-        $x = new WP_Ajax_Response();
</del><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Comments_Table( 'ajax' );
</ins><span class="cx"> 
</span><span class="cx">         ob_start();
</span><del>-                _wp_comment_row( $comment_id, $mode, $comments_listing, $checkbox );
</del><ins>+                $table-&gt;single_row( $comment_id, $mode, $comments_listing, $checkbox );
</ins><span class="cx">                 $comment_list_item = ob_get_contents();
</span><span class="cx">         ob_end_clean();
</span><span class="cx"> 
</span><ins>+        $x = new WP_Ajax_Response();
+
</ins><span class="cx">         $x-&gt;add( array(
</span><span class="cx">                 'what' =&gt; 'edit_comment',
</span><span class="cx">                 'id' =&gt; $comment-&gt;comment_ID,
</span><span class="lines">@@ -941,10 +924,13 @@
</span><span class="cx">         }
</span><span class="cx">         $user_object = new WP_User( $user_id );
</span><span class="cx"> 
</span><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Users_Table( 'ajax' );
+
</ins><span class="cx">         $x = new WP_Ajax_Response( array(
</span><span class="cx">                 'what' =&gt; 'user',
</span><span class="cx">                 'id' =&gt; $user_id,
</span><del>-                'data' =&gt; user_row( $user_object, '', $user_object-&gt;roles[0] ),
</del><ins>+                'data' =&gt; $table-&gt;single_row( $user_object, '', $user_object-&gt;roles[0] ),
</ins><span class="cx">                 'supplemental' =&gt; array(
</span><span class="cx">                         'show-link' =&gt; sprintf(__( 'User &lt;a href=&quot;#%s&quot;&gt;%s&lt;/a&gt; added' ), &quot;user-$user_id&quot;, $user_object-&gt;user_login),
</span><span class="cx">                         'role' =&gt; $user_object-&gt;roles[0]
</span><span class="lines">@@ -1231,17 +1217,12 @@
</span><span class="cx">         // update the post
</span><span class="cx">         edit_post();
</span><span class="cx"> 
</span><del>-        if ( in_array( $_POST['post_type'], get_post_types( array( 'show_ui' =&gt; true ) ) ) ) {
-                $post = array();
-                $post[] = get_post($_POST['post_ID']);
-                if ( is_post_type_hierarchical( $_POST['post_type'] ) ) {
-                        page_rows( $post );
-                } else {
-                        $mode = $_POST['post_view'];
-                        post_rows( $post );
-                }
-        }
</del><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Posts_Table( 'ajax' );
</ins><span class="cx"> 
</span><ins>+        $mode = $_POST['post_view'];
+        $table-&gt;display_rows( array( get_post( $_POST['post_ID'] ) ) );
+
</ins><span class="cx">         exit;
</span><span class="cx">         break;
</span><span class="cx"> case 'inline-save-tax':
</span><span class="lines">@@ -1258,41 +1239,30 @@
</span><span class="cx">         if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) )
</span><span class="cx">                 die(-1);
</span><span class="cx"> 
</span><del>-        switch ($_POST['tax_type']) {
-                case 'link-cat' :
-                        $updated = wp_update_term($id, 'link_category', $_POST);
</del><ins>+        $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
</ins><span class="cx"> 
</span><del>-                        if ( $updated &amp;&amp; !is_wp_error($updated) )
-                                echo link_cat_row($updated['term_id']);
-                        else
-                                die( __('Category not updated.') );
</del><ins>+        $tag = get_term( $id, $taxonomy );
+        $_POST['description'] = $tag-&gt;description;
</ins><span class="cx"> 
</span><del>-                        break;
-                case 'tag' :
-                        $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
</del><ins>+        $updated = wp_update_term($id, $taxonomy, $_POST);
+        if ( $updated &amp;&amp; !is_wp_error($updated) ) {
+                $tag = get_term( $updated['term_id'], $taxonomy );
+                if ( !$tag || is_wp_error( $tag ) ) {
+                        if ( is_wp_error($tag) &amp;&amp; $tag-&gt;get_error_message() )
+                                die( $tag-&gt;get_error_message() );
+                        die( __('Item not updated.') );
+                }
</ins><span class="cx"> 
</span><del>-                        $tag = get_term( $id, $taxonomy );
-                        $_POST['description'] = $tag-&gt;description;
</del><ins>+                set_current_screen( 'edit-' . $taxonomy );
</ins><span class="cx"> 
</span><del>-                        $updated = wp_update_term($id, $taxonomy, $_POST);
-                        if ( $updated &amp;&amp; !is_wp_error($updated) ) {
-                                $tag = get_term( $updated['term_id'], $taxonomy );
-                                if ( !$tag || is_wp_error( $tag ) ) {
-                                        if ( is_wp_error($tag) &amp;&amp; $tag-&gt;get_error_message() )
-                                                die( $tag-&gt;get_error_message() );
-                                        die( __('Item not updated.') );
-                                }
</del><ins>+                require_once( './includes/default-list-tables.php' );
+                $table = new WP_Terms_Table( 'ajax' );
</ins><span class="cx"> 
</span><del>-                                set_current_screen( 'edit-' . $taxonomy );
-
-                                echo _tag_row($tag, 0, $taxonomy);
-                        } else {
-                                if ( is_wp_error($updated) &amp;&amp; $updated-&gt;get_error_message() )
-                                        die( $updated-&gt;get_error_message() );
-                                die( __('Item not updated.') );
-                        }
-
-                        break;
</del><ins>+                echo $table-&gt;single_row( $tag, 0, $taxonomy );
+        } else {
+                if ( is_wp_error($updated) &amp;&amp; $updated-&gt;get_error_message() )
+                        die( $updated-&gt;get_error_message() );
+                die( __('Item not updated.') );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         exit;
</span></span></pre></div>
<a id="trunkwpadmincsscolorsclassiccss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-classic.css (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-classic.css        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/css/colors-classic.css        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1 +1 @@
</span><del>-html{background-color:#f7f6f1;}* html input,* html .widget{border-color:#8cbdd5;}textarea,input[type=&quot;text&quot;],input[type=&quot;password&quot;],input[type=&quot;file&quot;],input[type=&quot;button&quot;],input[type=&quot;submit&quot;],input[type=&quot;reset&quot;],select{border-color:#dfdfdf;background-color:#fff;}kbd,code{background:#eaeaea;}input[readonly]{background-color:#eee;}.find-box-search{border-color:#dfdfdf;background-color:#f1f1f1;}.find-box{background-color:#f1f1f1;}.find-box-inside{background-color:#fff;}a.page-numbers:hover{border-color:#999;}body,#wpbody,.form-table .pre{color:#333;}body&gt;#upload-menu{border-bottom-color:#fff;}#postcustomstuff table,#your-profile fieldset,#rightnow,div.dashboard-widget,#dashboard-widgets p.dashboard-widget-links,#replyrow #ed_reply_toolbar input{border-color:#ccc;}#poststuff .inside label.spam,#poststuff .inside label.deleted{color:red;}#poststuff .inside label.waiting{color:orange;}#poststuff .inside label.approved{color:green;}#postcustomstuff table{border-color:#dfdfdf;background-color:#f9f9f9;}#postcustomstuff thead th{background-color:#f1f1f1;}#postcustomstuff table input,#postcustomstuff table textarea{border-color:#dfdfdf;background-color:#fff;}.widefat{border-color:#dfdfdf;background-color:#fff;}div.dashboard-widget-error{background-color:#c43;}div.dashboard-widget-notice{background-color:#cfe1ef;}div.dashboard-widget-submit{border-top-color:#ccc;}div.tabs-panel,ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{border-color:#dfdfdf;}ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{background-color:#f1f1f1;}input.disabled,textarea.disabled{background-color:#ccc;}.login #backtoblog a:hover,#plugin-information .action-button a,#plugin-information .action-button a:hover,#plugin-information .action-button a:visited{color:#fff;}.widget .widget-top,.postbox h3,.stuffbox h3{background:#d5e6f2 url(&quot;../images/blue-grad.png&quot;) repeat-x left top;text-shadow:#fff 0 1px 0;}.form-table th,.form-wrap label{color:#222;text-shadow:#fff 0 1px 0;}.description,.form-wrap p{color:#666;}strong .post-com-count span{background-color:#21759b;}.sorthelper{background-color:#ccf3fa;}.ac_match,.subsubsub a.current{color:#000;}.wrap h2{color:#093e56;}.ac_over{background-color:#f0f0b8;}.ac_results{background-color:#fff;border-color:#808080;}.ac_results li{color:#101010;}.alt .alternate{background-color:#edfbfc;}.available-theme a.screenshot{background-color:#f1f1f1;border-color:#ddd;}.bar{background-color:#e8e8e8;border-right-color:#99d;}#media-upload,#media-upload .media-item .slidetoggle{background:#fff;}#media-upload .slidetoggle{border-top-color:#dfdfdf;}.error,.login #login_error{background-color:#ffebe8;border-color:#c00;}.error a{color:#c00;}.form-invalid{background-color:#ffebe8!important;}.form-invalid input,.form-invalid select{border-color:#c00!important;}.submit{border-color:#8cbdd5;}.highlight{background-color:#e4f2fd;color:#d54e21;}.howto,.nonessential,#edit-slug-box,.form-input-tip,.rss-widget span.rss-date,.subsubsub{color:#666;}.media-item{border-bottom-color:#dfdfdf;}#wpbody-content #media-items .describe{border-top-color:#dfdfdf;}.media-upload-form label.form-help,td.help{color:#9a9a9a;}.post-com-count{background-image:url(../images/bubble_bg.gif);color:#fff;}.post-com-count span{background-color:#bbb;color:#fff;}.post-com-count:hover span{background-color:#d54e21;}.quicktags,.search{background-color:#ccc;color:#000;}.side-info h5{border-bottom-color:#dadada;}.side-info ul{color:#666;}.button,.button-secondary,.submit input,input[type=button],input[type=submit]{border-color:#dfdfdf;color:#464646;}.button:hover,.button-secondary:hover,.submit input:hover,input[type=button]:hover,input[type=submit]:hover{color:#000;border-color:#adaca7;}.button,.submit input,.button-secondary{background:#f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;text-shadow:rgba(255,255,255,1) 0 1px 0;}.button:active,.submit input:active,.button-secondary:active{background:#eee url(../images/white-grad-active.png) repeat-x scroll left top;}input.button-primary,button.button-primary,a.button-primary{border-color:#5b86ab;font-weight:bold;color:#fff;background:#5580a6 url(../images/button-grad-vs.png) repeat-x scroll left top;text-shadow:rgba(0,0,0,0.3) 0 -1px 0;}input.button-primary:active,button.button-primary:active,a.button-primary:active{background:#21759b url(../images/button-grad-active-vs.png) repeat-x scroll left top;color:#eaf2fa;}input.button-primary:hover,button.button-primary:hover,a.button-primary:hover,a.button-primary:focus,a.button-primary:active{border-color:#2e5475;color:#eaf2fa;}.button-disabled,.button[disabled],.button:disabled,.button-secondary[disabled],.button-secondary:disabled,a.button.disabled{color:#aaa!important;border-color:#ddd!important;}.button-primary-disabled,.button-primary[disabled],.button-primary:disabled{color:#B0C3E2!important;background:#6590A6!important;}a:hover,a:active,a:focus{color:#d54e21;}#wphead #viewsite a:hover,#adminmenu a:hover,#adminmenu ul.wp-submenu a:hover,#the-comment-list .comment a:hover,#rightnow a:hover,#media-upload a.del-link:hover,div.dashboard-widget-submit input:hover,.subsubsub a:hover,.subsubsub a.current:hover,.ui-tabs-nav a:hover,.plugins .inactive a:hover,#all-plugins-table .plugins .inactive a:hover,#search-plugins-table .plugins .inactive a:hover{color:#d54e21;}#the-comment-list .comment-item,#dashboard-widgets #dashboard_quick_press form p.submit{border-color:#dfdfdf;}#side-sortables .category-tabs .tabs a,#side-sortables .add-menu-item-tabs .tabs a{color:#333;}#rightnow .rbutton{background-color:#ebebeb;color:#264761;}.submitbox .submit{background-color:#464646;color:#ccc;}.plugins a.delete:hover,#all-plugins-table .plugins a.delete:hover,#search-plugins-table .plugins a.delete:hover,.submitbox .submitdelete{color:#f00;border-bottom-color:#f00;}.submitbox .submitdelete:hover,#media-items a.delete:hover{color:#fff;background-color:#f00;border-bottom-color:#f00;}#normal-sortables .submitbox .submitdelete:hover{color:#000;background-color:#f00;border-bottom-color:#f00;}.tablenav .dots{border-color:transparent;}.tablenav .next,.tablenav .prev{border-color:transparent;color:#21759b;}.tablenav .next:hover,.tablenav .prev:hover{border-color:transparent;color:#d54e21;}.updated,.login .message{background-color:#ffffe0;border-color:#e6db55;}.update-message{color:#000;}a.page-numbers{border-bottom-color:#b8d3e2;}.commentlist li{border-bottom-color:#ccc;}.widefat td,.widefat th,#install-plugins .plugins td,#install-plugins .plugins th{border-color:#dfdfdf;}.widefat th{text-shadow:rgba(255,255,255,0.8) 0 1px 0;}.widefat thead tr th,.widefat tfoot tr th,h3.dashboard-widget-title,h3.dashboard-widget-title span,h3.dashboard-widget-title small,.find-box-head{color:#333;background:#d5e6f2 url(../images/blue-grad.png) repeat-x scroll left top;}h3.dashboard-widget-title small a{color:#d7d7d7;}h3.dashboard-widget-title small a:hover{color:#fff;}a,#adminmenu a,#poststuff #edButtonPreview,#poststuff #edButtonHTML,#the-comment-list p.comment-author strong a,#media-upload a.del-link,#media-items a.delete,.plugins a.delete,.ui-tabs-nav a{color:#1c6280;}body.press-this .tabs a,body.press-this .tabs a:hover{border-color:#c6d9e9;border-bottom-color:#fff;color:#d54e21;}#adminmenu #awaiting-mod,#adminmenu .update-plugins,#sidemenu a .update-plugins,#rightnow .reallynow,#plugin-information .action-button{background-color:#d54e21;color:#fff;}#adminmenu li a:hover #awaiting-mod,#adminmenu li a:hover .update-plugins,#sidemenu li a:hover .update-plugins{background-color:#264761;color:#fff;}#adminmenu li.current a #awaiting-mod,#adminmenu li.current a .update-plugins,#adminmenu li.wp-has-current-submenu a .update-plugins,#adminmenu li.wp-has-current-submenu a .update-plugins{background-color:#ddd;color:#000;text-shadow:none;-moz-box-shadow:rgba(0,0,0,0.2) 0 -1px 0;-khtml-box-shadow:rgba(0,0,0,0.2) 0 -1px 0;-webkit-box-shadow:rgba(0,0,0,0.2) 0 -1px 0;box-shadow:rgba(0,0,0,0.2) 0 -1px 0;}#adminmenu li.current a:hover #awaiting-mod,#adminmenu li.current a:hover .update-plugins,#adminmenu li.wp-has-current-submenu a:hover #awaiting-mod,#adminmenu li.wp-has-current-submenu a:hover .update-plugins{background-color:#264761;color:#fff;}div#media-upload-header,div#plugin-information-header{background-color:#f9f9f9;border-bottom-color:#dfdfdf;}#currenttheme img{border-color:#666;}#dashboard_secondary div.dashboard-widget-content ul li a{background-color:#f9f9f9;}input.readonly,textarea.readonly{background-color:#ddd;}#ed_toolbar input,#ed_reply_toolbar input{background:#fff url(&quot;../images/fade-butt.png&quot;) repeat-x 0 -2px;}#editable-post-name{background-color:#fffbcc;}#edit-slug-box strong,.tablenav .displaying-num,#submitted-on{color:#777;}.login #nav a{color:#21759b!important;}.login #nav a:hover{color:#d54e21!important;}#footer,#footer-upgrade{background:#1d507d;color:#b6d1e4;}#media-items,.imgedit-group{border-color:#dfdfdf;}.checkbox,.side-info,.plugins tr,.postbox,#your-profile #rich_editing{background-color:#fff;}.plugins .inactive,.plugins .inactive th,.plugins .inactive td,tr.inactive+tr.plugin-update-tr .plugin-update{background-color:#ebeeef;}.plugin-update-tr .update-message{background-color:#fffbe4;border-color:#dfdfdf;}.plugins .active,.plugins .active th,.plugins .active td{color:#000;}.plugins .inactive a{color:#579;}#the-comment-list tr.undo,#the-comment-list div.undo{background-color:#f4f4f4;}#the-comment-list .unapproved{background-color:#ffffe0;}#the-comment-list .approve a{color:#006505;}#the-comment-list .unapprove a{color:#d98500;}table.widefat span.delete a,table.widefat span.trash a,table.widefat span.spam a,#dashboard_recent_comments .delete a,#dashboard_recent_comments .trash a,#dashboard_recent_comments .spam a{color:#bc0b0b;}.widget,#widget-list .widget-top,.postbox,#titlediv,#poststuff .postarea,.stuffbox{border-color:#dfdfdf;}.widget,.postbox{background-color:#fff;}.ui-sortable .postbox h3{color:#093e56;}.widget .widget-top,.ui-sortable .postbox h3:hover{color:#000;}.curtime #timestamp{background-image:url(../images/date-button.gif);}#quicktags #ed_link{color:#00f;}#rightnow .youhave{background-color:#f0f6fb;}#rightnow a{color:#448abd;}.tagchecklist span a,#bulk-titles div a{background:url(../images/xit.gif) no-repeat;}.tagchecklist span a:hover,#bulk-titles div a:hover{background:url(../images/xit.gif) no-repeat -10px 0;}#update-nag,.update-nag{background-color:#FFFBCC;border-color:#E6DB55;color:#555;}.login #backtoblog a{color:#ccc;}#wphead{background-color:#1d507d;}body.login{border-top-color:#093e56;}#wphead h1 a{color:#fff;}#user_info{color:#b6d1e4;}#user_info a:link,#user_info a:visited,#footer a:link,#footer a:visited{color:#fff;text-decoration:none;}#user_info a:hover,#user_info a:active,#footer a:hover,#footer a:active{text-decoration:underline;}div#media-upload-error,.file-error,abbr.required,.widget-control-remove:hover,table.widefat .delete a:hover,table.widefat .trash a:hover,table.widefat .spam a:hover,#dashboard_recent_comments .delete a:hover,#dashboard_recent_comments .trash a:hover,#dashboard_recent_comments .spam a:hover{color:#f00;}#pass-strength-result{background-color:#eee;border-color:#ddd!important;}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important;}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important;}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important;}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important;}#quicktags{border-color:#dfdfdf;background-color:#dfdfdf;}#ed_toolbar input{border-color:#c3c3c3;}#ed_toolbar input:hover{border-color:#aaa;background:#ddd;}#poststuff .wp_themeSkin .mceStatusbar{border-color:#ededed;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{background-color:#f2f1eb;border-color:#dfdfdf;color:#999;}#poststuff #editor-toolbar .active{border-bottom-color:#e3eef7;background-color:#e3eef7;color:#333;}#post-status-info{background-color:#ededed;}.wp_themeSkin *,.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{color:#000;}.wp_themeSkin iframe{background:#fff;}.wp_themeSkin .mceStatusbar{color:#000;background-color:#f5f5f5;}.wp_themeSkin .mceButton{background-color:#e9e8e8;border-color:#b2b2b2;}.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonSelected{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceButtonDisabled{border-color:#ccc!important;}.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen{border-color:#b2b2b2;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin .mceListBoxSelected .mceText{border-color:#777!important;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceText,.wp_themeSkin .mceListBoxHover .mceText{border-color:#777!important;}.wp_themeSkin select.mceListBox{border-color:#b2b2b2;background-color:#fff;}.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen{border-color:#b2b2b2;}.wp_themeSkin .mceSplitButton a.mceOpen:hover,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,.wp_themeSkin .mceSplitButton a.mceAction:hover{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceSplitButtonActive{background-color:#b2b2b2;}.wp_themeSkin div.mceColorSplitMenu table{background-color:#ebebeb;border-color:#b2b2b2;}.wp_themeSkin .mceColorSplitMenu a{border-color:#b2b2b2;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors{border-color:#fff;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover{border-color:#0a246a;background-color:#b6bdd2;}.wp_themeSkin a.mceMoreColors:hover{border-color:#0a246a;}.wp_themeSkin .mceMenu{border-color:#ddd;}.wp_themeSkin .mceMenu table{background-color:#ebeaeb;}.wp_themeSkin .mceMenu .mceText{color:#000;}.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,.wp_themeSkin .mceMenu .mceMenuItemActive{background-color:#f5f5f5;}.wp_themeSkin td.mceMenuItemSeparator{background-color:#aaa;}.wp_themeSkin .mceMenuItemTitle a{background-color:#ccc;border-bottom-color:#aaa;}.wp_themeSkin .mceMenuItemTitle span.mceText{color:#000;}.wp_themeSkin .mceMenuItemDisabled .mceText{color:#888;}#quicktags,.wp_themeSkin tr.mceFirst td.mceToolbar{background:#d5e6f2 url(&quot;../images/ed-bg-vs.gif&quot;) repeat-x scroll left top;}.wp_themeSkin tr.mceFirst td.mceToolbar{border-color:#dfdfdf;}.wp-admin #mceModalBlocker{background:#000;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceLeft{background:#444;border-left:1px solid #999;border-top:1px solid #999;-moz-border-radius:4px 0 0 0;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceRight{background:#444;border-right:1px solid #999;border-top:1px solid #999;border-top-right-radius:4px;-khtml-border-top-right-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius:0 4px 0 0;}.wp-admin .clearlooks2 .mceMiddle .mceLeft{background:#f1f1f1;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceMiddle .mceRight{background:#f1f1f1;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceBottom{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceLeft{background:#f1f1f1;border-bottom:1px solid #999;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceCenter{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceRight{background:#f1f1f1;border-bottom:1px solid #999;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceFocus .mceTop span{color:#e5e5e5;}#editorcontainer,#post-status-info,#titlediv #title,.editwidget .widget-inside{border-color:#dfdfdf;}#titlediv #title{background-color:#fff;}#tTips p#tTips_inside{background-color:#ddd;color:#333;}#timestampdiv input,#namediv input,#poststuff .inside .the-tagcloud{border-color:#dfdfdf;}#adminmenu *{border-color:#dfdfdf;}#adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;}.folded #adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;}#adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle,#adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -207px;}#adminmenu .wp-has-submenu:hover .wp-menu-toggle,#adminmenu .wp-menu-open .wp-menu-toggle{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -109px;}#adminmenu a.menu-top{background:#eaf3fa url(../images/menu-bits-vs.gif) repeat-x scroll left -379px;}#adminmenu .wp-submenu a{background:#fff url(../images/menu-bits-vs.gif) no-repeat scroll 0 -310px;}#adminmenu .wp-has-current-submenu ul li a{background:none;}#adminmenu .wp-has-current-submenu ul li a.current{background:url(../images/menu-dark.gif) top left no-repeat!important;}#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,#adminmenu .menu-top .current{background:#3c6b95 url(../images/menu-bits-vs.gif) top left repeat-x;border-color:#1d507d;color:#fff;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;}#adminmenu li.wp-has-current-submenu .wp-submenu,#adminmenu li.wp-has-current-submenu ul li a{border-color:#aaa!important;}#adminmenu li.wp-has-current-submenu ul li a{background:url(../images/menu-dark.gif) bottom left no-repeat!important;}#adminmenu li.wp-has-current-submenu ul{border-bottom-color:#aaa;}#adminmenu li.menu-top .current:hover{border-color:#6583c0;}#adminmenu .wp-submenu .current a.current{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll 0 -289px;}#adminmenu .wp-submenu a:hover{background-color:#eaf2fa!important;color:#333!important;}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover{color:#333;background-color:#f5f5f5;background-image:none;border-color:#e3e3e3;text-shadow:rgba(255,255,255,1) 0 1px 0;}#adminmenu .wp-submenu ul{background-color:#fff;}.folded #adminmenu li.menu-top,#adminmenu .wp-submenu .wp-submenu-head{background-color:#eaf2fa;}.folded #adminmenu li.wp-has-current-submenu,.folded #adminmenu li.menu-top.current{background-color:#bbd8e7;}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head{background-color:#bbd8e7;border-color:#8cbdd5;}#adminmenu div.wp-submenu{background-color:transparent;}#adminmenu .menu-icon-dashboard div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -61px -33px;}#adminmenu .menu-icon-dashboard:hover div.wp-menu-image,#adminmenu .menu-icon-dashboard.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-dashboard.current div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -61px -1px;}#adminmenu .menu-icon-post div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -272px -33px;}#adminmenu .menu-icon-post:hover div.wp-menu-image,#adminmenu .menu-icon-post.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -272px -1px;}#adminmenu .menu-icon-media div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -121px -33px;}#adminmenu .menu-icon-media:hover div.wp-menu-image,#adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -121px -1px;}#adminmenu .menu-icon-links div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -91px -33px;}#adminmenu .menu-icon-links:hover div.wp-menu-image,#adminmenu .menu-icon-links.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -91px -1px;}#adminmenu .menu-icon-page div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -151px -33px;}#adminmenu .menu-icon-page:hover div.wp-menu-image,#adminmenu .menu-icon-page.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -151px -1px;}#adminmenu .menu-icon-comments div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -31px -33px;}#adminmenu .menu-icon-comments:hover div.wp-menu-image,#adminmenu .menu-icon-comments.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-comments.current div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -31px -1px;}#adminmenu .menu-icon-appearance div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -1px -33px;}#adminmenu .menu-icon-appearance:hover div.wp-menu-image,#adminmenu .menu-icon-appearance.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -1px -1px;}#adminmenu .menu-icon-plugins div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -181px -33px;}#adminmenu .menu-icon-plugins:hover div.wp-menu-image,#adminmenu .menu-icon-plugins.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -181px -1px;}#adminmenu .menu-icon-users div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -301px -33px;}#adminmenu .menu-icon-users:hover div.wp-menu-image,#adminmenu .menu-icon-users.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -301px -1px;}#adminmenu .menu-icon-tools div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -211px -33px;}#adminmenu .menu-icon-tools:hover div.wp-menu-image,#adminmenu .menu-icon-tools.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -211px -1px;}#adminmenu .menu-icon-settings div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -241px -33px;}#adminmenu .menu-icon-settings:hover div.wp-menu-image,#adminmenu .menu-icon-settings.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -241px -1px;}#adminmenu .menu-icon-site div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -361px -33px;}#adminmenu .menu-icon-site:hover div.wp-menu-image,#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -361px -1px;}table.diff .diff-deletedline{background-color:#fdd;}table.diff .diff-deletedline del{background-color:#f99;}table.diff .diff-addedline{background-color:#dfd;}table.diff .diff-addedline ins{background-color:#9f9;}#att-info{background-color:#e4f2fd;}#sidemenu a{background-color:#f9f9f9;border-color:#f9f9f9;border-bottom-color:#dfdfdf;}#sidemenu a.current{background-color:#fff;border-color:#dfdfdf #dfdfdf #fff;color:#d54e21;}#screen-options-wrap,#contextual-help-wrap{background-color:#eae9e4;border-color:#dfdfdf;}#screen-meta-links a.show-settings{color:#606060;}#screen-meta-links a.show-settings:hover{color:#000;}#replysubmit{background-color:#f1f1f1;border-top-color:#ddd;}#replyerror{border-color:#ddd;background-color:#f9f9f9;}#edithead,#replyhead{background-color:#f1f1f1;}#ed_reply_toolbar{background-color:#e9e9e9;}.vim-current,.vim-current th,.vim-current td{background-color:#e4f2fd!important;}.star-average,.star.star-rating{background-color:#fc0;}div.star.select:hover{background-color:#d00;}#plugin-information .fyi ul{background-color:#eaf3fa;}#plugin-information .fyi h2.mainheader{background-color:#cee1ef;}#plugin-information pre,#plugin-information code{background-color:#ededff;}#plugin-information pre{border:1px solid #ccc;}.inline-edit-row fieldset input[type=&quot;text&quot;],.inline-edit-row fieldset textarea,#bulk-titles,#replyrow input{border-color:#ddd;}.inline-editor div.title{background-color:#eaf3fa;}.inline-editor ul.cat-checklist{background-color:#fff;border-color:#ddd;}.inline-editor .categories .catshow,.inline-editor .categories .cathide{color:#21759b;}.inline-editor .quick-edit-save{background-color:#f1f1f1;}#replyrow #ed_reply_toolbar input:hover{border-color:#aaa;background:#ddd;}fieldset.inline-edit-col-right .inline-edit-col{border-color:#dfdfdf;}.attention{color:#d54e21;}.meta-box-sortables .postbox:hover .handlediv{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px;}#major-publishing-actions{background:#eaf2fa;}.tablenav .tablenav-pages{color:#555;}.tablenav .tablenav-pages a{border-color:#e3e3e3;background:#eee url('../images/menu-bits-vs.gif') repeat-x scroll left -379px;}.tablenav .tablenav-pages a:hover{color:#d54e21;border-color:#d54321;}.tablenav .tablenav-pages a:active{color:#fff!important;}.tablenav .tablenav-pages .current{background:#dfdfdf;border-color:#d3d3d3;}#availablethemes,#availablethemes td{border-color:#ddd;}#current-theme img{border-color:#999;}#TB_window #TB_title a.tb-theme-preview-link,#TB_window #TB_title a.tb-theme-preview-link:visited{color:#999;}#TB_window #TB_title a.tb-theme-preview-link:hover,#TB_window #TB_title a.tb-theme-preview-link:focus{color:#ccc;}.misc-pub-section{border-bottom-color:#eee;}#minor-publishing{border-bottom-color:#ddd;}#post-body .misc-pub-section{border-right-color:#eee;}.post-com-count span{background-color:#bbb;}.form-table .color-palette td{border-color:#fff;}.sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;}#post-body ul.category-tabs li.tabs a,#post-body ul.add-menu-item-tabs li.tabs a{color:#333;}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{border-color:#999;background-color:#eee;}#wp_editimgbtn:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_delgallery:hover{border-color:#555;background-color:#ccc;}#favorite-first{background:#5580a6 url(../images/fav-vs.png) repeat-x 0 center;border-color:#517ea5!important;border-bottom-color:#416686!important;}#favorite-actions .slide-down{background-image:url(../images/fav-top-vs.gif);background-position:0 0;background-repeat:repeat-x;}#favorite-inside{border-color:#5b86ac;background-color:#5580a6;}#favorite-toggle{background:transparent url(../images/fav-arrow-vs.gif) no-repeat 0 -4px;}#favorite-actions a{color:#ddd;}#favorite-actions a:hover{color:#fff;}#favorite-inside a:hover{text-decoration:underline;}#favorite-actions .slide-down{border-bottom-color:#626262;}#screen-meta a.show-settings{background-color:transparent;text-shadow:rgba(255,255,255,0.7) 0 1px 0;}#icon-edit,#icon-post{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -552px -5px;}#icon-index{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -137px -5px;}#icon-upload{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -251px -5px;}#icon-link-manager,#icon-link,#icon-link-category{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -190px -5px;}#icon-edit-pages,#icon-page{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -312px -5px;}#icon-edit-comments{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -72px -5px;}#icon-themes{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -11px -5px;}#icon-plugins{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -370px -5px;}#icon-users,#icon-profile,#icon-user-edit{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -600px -5px;}#icon-tools,#icon-admin{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -432px -5px;}#icon-options-general{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -492px -5px;}#icon-ms-admin{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -659px -5px;}.view-switch #view-switch-list{background:transparent url(../images/list-vs.png) no-repeat 0 0;}.view-switch #view-switch-list.current{background:transparent url(../images/list-vs.png) no-repeat -40px 0;}.view-switch #view-switch-excerpt{background:transparent url(../images/list-vs.png) no-repeat -20px 0;}.view-switch #view-switch-excerpt.current{background:transparent url(../images/list-vs.png) no-repeat -60px 0;}#header-logo{background:transparent url(../images/wp-logo-vs.png) no-repeat scroll center center;}#wphead #site-visit-button{background-color:#3c6b95;background-image:url(../images/visit-site-button-grad-vs.gif);color:#b6d1e4;text-shadow:#3f3f3f 0 -1px 0;}#wphead a:hover #site-visit-button{color:#fff;}#wphead a:focus #site-visit-button,#wphead a:active #site-visit-button{background-position:0 -27px;}.popular-tags,.feature-filter{background-color:#fff;border-color:#dfdfdf;}#theme-information .action-button{border-top-color:#dfdfdf;}.theme-listing br.line{border-bottom-color:#ccc;}div.widgets-sortables,#widgets-left .inactive{background-color:#f1f1f1;border-color:#ddd;}#available-widgets .widget-holder{background-color:#fff;border-color:#ddd;}#widgets-left .sidebar-name{background-color:#aaa;background-image:url(../images/ed-bg-vs.gif);text-shadow:#fff 0 1px 0;border-color:#dfdfdf;}#widgets-right .sidebar-name{background-image:url(../images/fav-vs.png);text-shadow:#3f3f3f 0 -1px 0;background-color:#636363;border-color:#636363;color:#fff;}.sidebar-name:hover,#removing-widget{color:#d54e21;}#removing-widget span{color:black;}#widgets-left .sidebar-name-arrow{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -109px;}#widgets-right .sidebar-name-arrow{background:transparent url(../images/fav-arrow-vs.gif) no-repeat scroll 0 -1px;}.in-widget-title{color:#606060;}.deleting .widget-title *{color:#aaa;}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1;}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea;}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:.5;}#dashboard_recent_comments div.undo{border-top-color:#dfdfdf;}.comment-ays,.comment-ays th{border-color:#ddd;}.comment-ays th{background-color:#f1f1f1;}#nav-menu-header,.menu-item-handle{background:url(&quot;../images/blue-grad.png&quot;) repeat-x scroll left top #d5e6f2;}#menu-management .nav-tab-active{background:#eaf3fa;border-bottom-color:#eaf3fa;}
</del><span class="cx">\ No newline at end of file
</span><ins>+html{background-color:#f7f6f1;}* html input,* html .widget{border-color:#8cbdd5;}textarea,input[type=&quot;text&quot;],input[type=&quot;password&quot;],input[type=&quot;file&quot;],input[type=&quot;button&quot;],input[type=&quot;submit&quot;],input[type=&quot;reset&quot;],select{border-color:#dfdfdf;background-color:#fff;}kbd,code{background:#eaeaea;}input[readonly]{background-color:#eee;}.find-box-search{border-color:#dfdfdf;background-color:#f1f1f1;}.find-box{background-color:#f1f1f1;}.find-box-inside{background-color:#fff;}a.page-numbers:hover{border-color:#999;}body,#wpbody,.form-table .pre{color:#333;}body&gt;#upload-menu{border-bottom-color:#fff;}#postcustomstuff table,#your-profile fieldset,#rightnow,div.dashboard-widget,#dashboard-widgets p.dashboard-widget-links,#replyrow #ed_reply_toolbar input{border-color:#ccc;}#poststuff .inside label.spam,#poststuff .inside label.deleted{color:red;}#poststuff .inside label.waiting{color:orange;}#poststuff .inside label.approved{color:green;}#postcustomstuff table{border-color:#dfdfdf;background-color:#f9f9f9;}#postcustomstuff thead th{background-color:#f1f1f1;}#postcustomstuff table input,#postcustomstuff table textarea{border-color:#dfdfdf;background-color:#fff;}.widefat{border-color:#dfdfdf;background-color:#fff;}div.dashboard-widget-error{background-color:#c43;}div.dashboard-widget-notice{background-color:#cfe1ef;}div.dashboard-widget-submit{border-top-color:#ccc;}div.tabs-panel,ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{border-color:#dfdfdf;}ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{background-color:#f1f1f1;}input.disabled,textarea.disabled{background-color:#ccc;}.login #backtoblog a:hover,#plugin-information .action-button a,#plugin-information .action-button a:hover,#plugin-information .action-button a:visited{color:#fff;}.widget .widget-top,.postbox h3,.stuffbox h3{background:#d5e6f2 url(&quot;../images/blue-grad.png&quot;) repeat-x left top;text-shadow:#fff 0 1px 0;}.form-table th,.form-wrap label{color:#222;text-shadow:#fff 0 1px 0;}.description,.form-wrap p{color:#666;}strong .post-com-count span{background-color:#21759b;}.sorthelper{background-color:#ccf3fa;}.ac_match,.subsubsub a.current{color:#000;}.wrap h2{color:#093e56;}.ac_over{background-color:#f0f0b8;}.ac_results{background-color:#fff;border-color:#808080;}.ac_results li{color:#101010;}.alt .alternate{background-color:#edfbfc;}.available-theme a.screenshot{background-color:#f1f1f1;border-color:#ddd;}.bar{background-color:#e8e8e8;border-right-color:#99d;}#media-upload,#media-upload .media-item .slidetoggle{background:#fff;}#media-upload .slidetoggle{border-top-color:#dfdfdf;}.error,.login #login_error{background-color:#ffebe8;border-color:#c00;}.error a{color:#c00;}.form-invalid{background-color:#ffebe8!important;}.form-invalid input,.form-invalid select{border-color:#c00!important;}.submit{border-color:#8cbdd5;}.highlight{background-color:#e4f2fd;color:#d54e21;}.howto,.nonessential,#edit-slug-box,.form-input-tip,.rss-widget span.rss-date,.subsubsub{color:#666;}.media-item{border-bottom-color:#dfdfdf;}#wpbody-content #media-items .describe{border-top-color:#dfdfdf;}.media-upload-form label.form-help,td.help{color:#9a9a9a;}.post-com-count{background-image:url(../images/bubble_bg.gif);color:#fff;}.post-com-count span{background-color:#bbb;color:#fff;}.post-com-count:hover span{background-color:#d54e21;}.quicktags,.search{background-color:#ccc;color:#000;}.side-info h5{border-bottom-color:#dadada;}.side-info ul{color:#666;}.button,.button-secondary,.submit input,input[type=button],input[type=submit]{border-color:#dfdfdf;color:#464646;}.button:hover,.button-secondary:hover,.submit input:hover,input[type=button]:hover,input[type=submit]:hover{color:#000;border-color:#adaca7;}.button,.submit input,.button-secondary{background:#f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;text-shadow:rgba(255,255,255,1) 0 1px 0;}.button:active,.submit input:active,.button-secondary:active{background:#eee url(../images/white-grad-active.png) repeat-x scroll left top;}input.button-primary,button.button-primary,a.button-primary{border-color:#5b86ab;font-weight:bold;color:#fff;background:#5580a6 url(../images/button-grad-vs.png) repeat-x scroll left top;text-shadow:rgba(0,0,0,0.3) 0 -1px 0;}input.button-primary:active,button.button-primary:active,a.button-primary:active{background:#21759b url(../images/button-grad-active-vs.png) repeat-x scroll left top;color:#eaf2fa;}input.button-primary:hover,button.button-primary:hover,a.button-primary:hover,a.button-primary:focus,a.button-primary:active{border-color:#2e5475;color:#eaf2fa;}.button-disabled,.button[disabled],.button:disabled,.button-secondary[disabled],.button-secondary:disabled,a.button.disabled{color:#aaa!important;border-color:#ddd!important;}.button-primary-disabled,.button-primary[disabled],.button-primary:disabled{color:#B0C3E2!important;background:#6590A6!important;}a:hover,a:active,a:focus{color:#d54e21;}#wphead #viewsite a:hover,#adminmenu a:hover,#adminmenu ul.wp-submenu a:hover,#the-comment-list .comment a:hover,#rightnow a:hover,#media-upload a.del-link:hover,div.dashboard-widget-submit input:hover,.subsubsub a:hover,.subsubsub a.current:hover,.ui-tabs-nav a:hover,.plugins .inactive a:hover,#all-plugins-table .plugins .inactive a:hover,#search-plugins-table .plugins .inactive a:hover{color:#d54e21;}#the-comment-list .comment-item,#dashboard-widgets #dashboard_quick_press form p.submit{border-color:#dfdfdf;}#side-sortables .category-tabs .tabs a,#side-sortables .add-menu-item-tabs .tabs a{color:#333;}#rightnow .rbutton{background-color:#ebebeb;color:#264761;}.submitbox .submit{background-color:#464646;color:#ccc;}.plugins a.delete:hover,#all-plugins-table .plugins a.delete:hover,#search-plugins-table .plugins a.delete:hover,.submitbox .submitdelete{color:#f00;border-bottom-color:#f00;}.submitbox .submitdelete:hover,#media-items a.delete:hover{color:#fff;background-color:#f00;border-bottom-color:#f00;}#normal-sortables .submitbox .submitdelete:hover{color:#000;background-color:#f00;border-bottom-color:#f00;}.tablenav .dots{border-color:transparent;}.tablenav .next,.tablenav .prev{border-color:transparent;color:#21759b;}.tablenav .next:hover,.tablenav .prev:hover{border-color:transparent;color:#d54e21;}.updated,.login .message{background-color:#ffffe0;border-color:#e6db55;}.update-message{color:#000;}a.page-numbers{border-bottom-color:#b8d3e2;}.commentlist li{border-bottom-color:#ccc;}.widefat td,.widefat th,#install-plugins .plugins td,#install-plugins .plugins th{border-color:#dfdfdf;}.widefat th{text-shadow:rgba(255,255,255,0.8) 0 1px 0;}.widefat thead tr th,.widefat tfoot tr th,h3.dashboard-widget-title,h3.dashboard-widget-title span,h3.dashboard-widget-title small,.find-box-head{color:#333;background:#d5e6f2 url(../images/blue-grad.png) repeat-x scroll left top;}h3.dashboard-widget-title small a{color:#d7d7d7;}h3.dashboard-widget-title small a:hover{color:#fff;}a,#adminmenu a,#poststuff #edButtonPreview,#poststuff #edButtonHTML,#the-comment-list p.comment-author strong a,#media-upload a.del-link,#media-items a.delete,.plugins a.delete,.ui-tabs-nav a{color:#1c6280;}body.press-this .tabs a,body.press-this .tabs a:hover{border-color:#c6d9e9;border-bottom-color:#fff;color:#d54e21;}#adminmenu #awaiting-mod,#adminmenu .update-plugins,#sidemenu a .update-plugins,#rightnow .reallynow,#plugin-information .action-button{background-color:#d54e21;color:#fff;}#adminmenu li a:hover #awaiting-mod,#adminmenu li a:hover .update-plugins,#sidemenu li a:hover .update-plugins{background-color:#264761;color:#fff;}#adminmenu li.current a #awaiting-mod,#adminmenu li.current a .update-plugins,#adminmenu li.wp-has-current-submenu a .update-plugins,#adminmenu li.wp-has-current-submenu a .update-plugins{background-color:#ddd;color:#000;text-shadow:none;-moz-box-shadow:rgba(0,0,0,0.2) 0 -1px 0;-khtml-box-shadow:rgba(0,0,0,0.2) 0 -1px 0;-webkit-box-shadow:rgba(0,0,0,0.2) 0 -1px 0;box-shadow:rgba(0,0,0,0.2) 0 -1px 0;}#adminmenu li.current a:hover #awaiting-mod,#adminmenu li.current a:hover .update-plugins,#adminmenu li.wp-has-current-submenu a:hover #awaiting-mod,#adminmenu li.wp-has-current-submenu a:hover .update-plugins{background-color:#264761;color:#fff;}div#media-upload-header,div#plugin-information-header{background-color:#f9f9f9;border-bottom-color:#dfdfdf;}#currenttheme img{border-color:#666;}#dashboard_secondary div.dashboard-widget-content ul li a{background-color:#f9f9f9;}input.readonly,textarea.readonly{background-color:#ddd;}#ed_toolbar input,#ed_reply_toolbar input{background:#fff url(&quot;../images/fade-butt.png&quot;) repeat-x 0 -2px;}#editable-post-name{background-color:#fffbcc;}#edit-slug-box strong,.tablenav .displaying-num,#submitted-on{color:#777;}.login #nav a{color:#21759b!important;}.login #nav a:hover{color:#d54e21!important;}#footer,#footer-upgrade{background:#1d507d;color:#b6d1e4;}#media-items,.imgedit-group{border-color:#dfdfdf;}.checkbox,.side-info,.plugins tr,.postbox,#your-profile #rich_editing{background-color:#fff;}.plugins .inactive,.plugins .inactive th,.plugins .inactive td,tr.inactive+tr.plugin-update-tr .plugin-update{background-color:#ebeeef;}.plugin-update-tr .update-message{background-color:#fffbe4;border-color:#dfdfdf;}.plugins .active,.plugins .active th,.plugins .active td{color:#000;}.plugins .inactive a{color:#579;}#the-comment-list tr.undo,#the-comment-list div.undo{background-color:#f4f4f4;}#the-comment-list .unapproved{background-color:#ffffe0;}#the-comment-list .approve a{color:#006505;}#the-comment-list .unapprove a{color:#d98500;}table.widefat span.delete a,table.widefat span.trash a,table.widefat span.spam a,#dashboard_recent_comments .delete a,#dashboard_recent_comments .trash a,#dashboard_recent_comments .spam a{color:#bc0b0b;}.widget,#widget-list .widget-top,.postbox,#titlediv,#poststuff .postarea,.stuffbox{border-color:#dfdfdf;}.widget,.postbox{background-color:#fff;}.ui-sortable .postbox h3{color:#093e56;}.widget .widget-top,.ui-sortable .postbox h3:hover{color:#000;}.curtime #timestamp{background-image:url(../images/date-button.gif);}#quicktags #ed_link{color:#00f;}#rightnow .youhave{background-color:#f0f6fb;}#rightnow a{color:#448abd;}.tagchecklist span a,#bulk-titles div a{background:url(../images/xit.gif) no-repeat;}.tagchecklist span a:hover,#bulk-titles div a:hover{background:url(../images/xit.gif) no-repeat -10px 0;}#update-nag,.update-nag{background-color:#FFFBCC;border-color:#E6DB55;color:#555;}.login #backtoblog a{color:#ccc;}#wphead{background-color:#1d507d;}body.login{border-top-color:#093e56;}#wphead h1 a{color:#fff;}#user_info{color:#b6d1e4;}#user_info a:link,#user_info a:visited,#footer a:link,#footer a:visited{color:#fff;text-decoration:none;}#user_info a:hover,#user_info a:active,#footer a:hover,#footer a:active{text-decoration:underline;}div#media-upload-error,.file-error,abbr.required,.widget-control-remove:hover,table.widefat .delete a:hover,table.widefat .trash a:hover,table.widefat .spam a:hover,#dashboard_recent_comments .delete a:hover,#dashboard_recent_comments .trash a:hover,#dashboard_recent_comments .spam a:hover{color:#f00;}#pass-strength-result{background-color:#eee;border-color:#ddd!important;}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important;}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important;}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important;}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important;}#quicktags{border-color:#dfdfdf;background-color:#dfdfdf;}#ed_toolbar input{border-color:#c3c3c3;}#ed_toolbar input:hover{border-color:#aaa;background:#ddd;}#poststuff .wp_themeSkin .mceStatusbar{border-color:#ededed;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{background-color:#f2f1eb;border-color:#dfdfdf;color:#999;}#poststuff #editor-toolbar .active{border-bottom-color:#e3eef7;background-color:#e3eef7;color:#333;}#post-status-info{background-color:#ededed;}.wp_themeSkin *,.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{color:#000;}.wp_themeSkin iframe{background:#fff;}.wp_themeSkin .mceStatusbar{color:#000;background-color:#f5f5f5;}.wp_themeSkin .mceButton{background-color:#e9e8e8;border-color:#b2b2b2;}.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonSelected{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceButtonDisabled{border-color:#ccc!important;}.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen{border-color:#b2b2b2;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin .mceListBoxSelected .mceText{border-color:#777!important;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceText,.wp_themeSkin .mceListBoxHover .mceText{border-color:#777!important;}.wp_themeSkin select.mceListBox{border-color:#b2b2b2;background-color:#fff;}.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen{border-color:#b2b2b2;}.wp_themeSkin .mceSplitButton a.mceOpen:hover,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,.wp_themeSkin .mceSplitButton a.mceAction:hover{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceSplitButtonActive{background-color:#b2b2b2;}.wp_themeSkin div.mceColorSplitMenu table{background-color:#ebebeb;border-color:#b2b2b2;}.wp_themeSkin .mceColorSplitMenu a{border-color:#b2b2b2;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors{border-color:#fff;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover{border-color:#0a246a;background-color:#b6bdd2;}.wp_themeSkin a.mceMoreColors:hover{border-color:#0a246a;}.wp_themeSkin .mceMenu{border-color:#ddd;}.wp_themeSkin .mceMenu table{background-color:#ebeaeb;}.wp_themeSkin .mceMenu .mceText{color:#000;}.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,.wp_themeSkin .mceMenu .mceMenuItemActive{background-color:#f5f5f5;}.wp_themeSkin td.mceMenuItemSeparator{background-color:#aaa;}.wp_themeSkin .mceMenuItemTitle a{background-color:#ccc;border-bottom-color:#aaa;}.wp_themeSkin .mceMenuItemTitle span.mceText{color:#000;}.wp_themeSkin .mceMenuItemDisabled .mceText{color:#888;}#quicktags,.wp_themeSkin tr.mceFirst td.mceToolbar{background:#d5e6f2 url(&quot;../images/ed-bg-vs.gif&quot;) repeat-x scroll left top;}.wp_themeSkin tr.mceFirst td.mceToolbar{border-color:#dfdfdf;}.wp-admin #mceModalBlocker{background:#000;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceLeft{background:#444;border-left:1px solid #999;border-top:1px solid #999;-moz-border-radius:4px 0 0 0;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceRight{background:#444;border-right:1px solid #999;border-top:1px solid #999;border-top-right-radius:4px;-khtml-border-top-right-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius:0 4px 0 0;}.wp-admin .clearlooks2 .mceMiddle .mceLeft{background:#f1f1f1;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceMiddle .mceRight{background:#f1f1f1;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceBottom{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceLeft{background:#f1f1f1;border-bottom:1px solid #999;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceCenter{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceRight{background:#f1f1f1;border-bottom:1px solid #999;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceFocus .mceTop span{color:#e5e5e5;}#editorcontainer,#post-status-info,#titlediv #title,.editwidget .widget-inside{border-color:#dfdfdf;}#titlediv #title{background-color:#fff;}#tTips p#tTips_inside{background-color:#ddd;color:#333;}#timestampdiv input,#namediv input,#poststuff .inside .the-tagcloud{border-color:#dfdfdf;}#adminmenu *{border-color:#dfdfdf;}#adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;}.folded #adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;}#adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle,#adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -207px;}#adminmenu .wp-has-submenu:hover .wp-menu-toggle,#adminmenu .wp-menu-open .wp-menu-toggle{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -109px;}#adminmenu a.menu-top{background:#eaf3fa url(../images/menu-bits-vs.gif) repeat-x scroll left -379px;}#adminmenu .wp-submenu a{background:#fff url(../images/menu-bits-vs.gif) no-repeat scroll 0 -310px;}#adminmenu .wp-has-current-submenu ul li a{background:none;}#adminmenu .wp-has-current-submenu ul li a.current{background:url(../images/menu-dark.gif) top left no-repeat!important;}#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,#adminmenu .menu-top .current{background:#3c6b95 url(../images/menu-bits-vs.gif) top left repeat-x;border-color:#1d507d;color:#fff;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;}#adminmenu li.wp-has-current-submenu .wp-submenu,#adminmenu li.wp-has-current-submenu ul li a{border-color:#aaa!important;}#adminmenu li.wp-has-current-submenu ul li a{background:url(../images/menu-dark.gif) bottom left no-repeat!important;}#adminmenu li.wp-has-current-submenu ul{border-bottom-color:#aaa;}#adminmenu li.menu-top .current:hover{border-color:#6583c0;}#adminmenu .wp-submenu .current a.current{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll 0 -289px;}#adminmenu .wp-submenu a:hover{background-color:#eaf2fa!important;color:#333!important;}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover{color:#333;background-color:#f5f5f5;background-image:none;border-color:#e3e3e3;text-shadow:rgba(255,255,255,1) 0 1px 0;}#adminmenu .wp-submenu ul{background-color:#fff;}.folded #adminmenu li.menu-top,#adminmenu .wp-submenu .wp-submenu-head{background-color:#eaf2fa;}.folded #adminmenu li.wp-has-current-submenu,.folded #adminmenu li.menu-top.current{background-color:#bbd8e7;}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head{background-color:#bbd8e7;border-color:#8cbdd5;}#adminmenu div.wp-submenu{background-color:transparent;}#adminmenu .menu-icon-dashboard div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -61px -33px;}#adminmenu .menu-icon-dashboard:hover div.wp-menu-image,#adminmenu .menu-icon-dashboard.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-dashboard.current div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -61px -1px;}#adminmenu .menu-icon-post div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -272px -33px;}#adminmenu .menu-icon-post:hover div.wp-menu-image,#adminmenu .menu-icon-post.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -272px -1px;}#adminmenu .menu-icon-media div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -121px -33px;}#adminmenu .menu-icon-media:hover div.wp-menu-image,#adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -121px -1px;}#adminmenu .menu-icon-links div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -91px -33px;}#adminmenu .menu-icon-links:hover div.wp-menu-image,#adminmenu .menu-icon-links.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -91px -1px;}#adminmenu .menu-icon-page div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -151px -33px;}#adminmenu .menu-icon-page:hover div.wp-menu-image,#adminmenu .menu-icon-page.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -151px -1px;}#adminmenu .menu-icon-comments div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -31px -33px;}#adminmenu .menu-icon-comments:hover div.wp-menu-image,#adminmenu .menu-icon-comments.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-comments.current div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -31px -1px;}#adminmenu .menu-icon-appearance div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -1px -33px;}#adminmenu .menu-icon-appearance:hover div.wp-menu-image,#adminmenu .menu-icon-appearance.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -1px -1px;}#adminmenu .menu-icon-plugins div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -181px -33px;}#adminmenu .menu-icon-plugins:hover div.wp-menu-image,#adminmenu .menu-icon-plugins.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -181px -1px;}#adminmenu .menu-icon-users div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -301px -33px;}#adminmenu .menu-icon-users:hover div.wp-menu-image,#adminmenu .menu-icon-users.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -301px -1px;}#adminmenu .menu-icon-tools div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -211px -33px;}#adminmenu .menu-icon-tools:hover div.wp-menu-image,#adminmenu .menu-icon-tools.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -211px -1px;}#adminmenu .menu-icon-settings div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -241px -33px;}#adminmenu .menu-icon-settings:hover div.wp-menu-image,#adminmenu .menu-icon-settings.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -241px -1px;}#adminmenu .menu-icon-site div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -361px -33px;}#adminmenu .menu-icon-site:hover div.wp-menu-image,#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu-vs.png?ver=20100531') no-repeat scroll -361px -1px;}table.diff .diff-deletedline{background-color:#fdd;}table.diff .diff-deletedline del{background-color:#f99;}table.diff .diff-addedline{background-color:#dfd;}table.diff .diff-addedline ins{background-color:#9f9;}#att-info{background-color:#e4f2fd;}#sidemenu a{background-color:#f9f9f9;border-color:#f9f9f9;border-bottom-color:#dfdfdf;}#sidemenu a.current{background-color:#fff;border-color:#dfdfdf #dfdfdf #fff;color:#d54e21;}#screen-options-wrap,#contextual-help-wrap{background-color:#eae9e4;border-color:#dfdfdf;}#screen-meta-links a.show-settings{color:#606060;}#screen-meta-links a.show-settings:hover{color:#000;}#replysubmit{background-color:#f1f1f1;border-top-color:#ddd;}#replyerror{border-color:#ddd;background-color:#f9f9f9;}#edithead,#replyhead{background-color:#f1f1f1;}#ed_reply_toolbar{background-color:#e9e9e9;}.vim-current,.vim-current th,.vim-current td{background-color:#e4f2fd!important;}.star-average,.star.star-rating{background-color:#fc0;}div.star.select:hover{background-color:#d00;}#plugin-information .fyi ul{background-color:#eaf3fa;}#plugin-information .fyi h2.mainheader{background-color:#cee1ef;}#plugin-information pre,#plugin-information code{background-color:#ededff;}#plugin-information pre{border:1px solid #ccc;}.inline-edit-row fieldset input[type=&quot;text&quot;],.inline-edit-row fieldset textarea,#bulk-titles,#replyrow input{border-color:#ddd;}.inline-editor div.title{background-color:#eaf3fa;}.inline-editor ul.cat-checklist{background-color:#fff;border-color:#ddd;}.inline-editor .categories .catshow,.inline-editor .categories .cathide{color:#21759b;}.inline-editor .quick-edit-save{background-color:#f1f1f1;}#replyrow #ed_reply_toolbar input:hover{border-color:#aaa;background:#ddd;}fieldset.inline-edit-col-right .inline-edit-col{border-color:#dfdfdf;}.attention{color:#d54e21;}.meta-box-sortables .postbox:hover .handlediv{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px;}#major-publishing-actions{background:#eaf2fa;}.tablenav .tablenav-pages{color:#555;}.tablenav .tablenav-pages a{border-color:#e3e3e3;background:#eee url('../images/menu-bits-vs.gif') repeat-x scroll left -379px;}.tablenav .tablenav-pages a:hover{color:#d54e21;border-color:#d54321;}.tablenav .tablenav-pages a:active{color:#fff!important;}.tablenav .tablenav-pages .current{background:#dfdfdf;border-color:#d3d3d3;}#availablethemes,#availablethemes td{border-color:#ddd;}#current-theme img{border-color:#999;}#TB_window #TB_title a.tb-theme-preview-link,#TB_window #TB_title a.tb-theme-preview-link:visited{color:#999;}#TB_window #TB_title a.tb-theme-preview-link:hover,#TB_window #TB_title a.tb-theme-preview-link:focus{color:#ccc;}.misc-pub-section{border-bottom-color:#eee;}#minor-publishing{border-bottom-color:#ddd;}#post-body .misc-pub-section{border-right-color:#eee;}.post-com-count span{background-color:#bbb;}.form-table .color-palette td{border-color:#fff;}.sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;}#post-body ul.category-tabs li.tabs a,#post-body ul.add-menu-item-tabs li.tabs a{color:#333;}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{border-color:#999;background-color:#eee;}#wp_editimgbtn:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_delgallery:hover{border-color:#555;background-color:#ccc;}#favorite-first{background:#5580a6 url(../images/fav-vs.png) repeat-x 0 center;border-color:#517ea5!important;border-bottom-color:#416686!important;}#favorite-actions .slide-down{background-image:url(../images/fav-top-vs.gif);background-position:0 0;background-repeat:repeat-x;}#favorite-inside{border-color:#5b86ac;background-color:#5580a6;}#favorite-toggle{background:transparent url(../images/fav-arrow-vs.gif) no-repeat 0 -4px;}#favorite-actions a{color:#ddd;}#favorite-actions a:hover{color:#fff;}#favorite-inside a:hover{text-decoration:underline;}#favorite-actions .slide-down{border-bottom-color:#626262;}#screen-meta a.show-settings{background-color:transparent;text-shadow:rgba(255,255,255,0.7) 0 1px 0;}#icon-edit,#icon-post{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -552px -5px;}#icon-index{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -137px -5px;}#icon-upload{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -251px -5px;}#icon-link-manager,#icon-link,#icon-link-category{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -190px -5px;}#icon-edit-pages,#icon-page{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -312px -5px;}#icon-edit-comments{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -72px -5px;}#icon-themes{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -11px -5px;}#icon-plugins{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -370px -5px;}#icon-users,#icon-profile,#icon-user-edit{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -600px -5px;}#icon-tools,#icon-admin{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -432px -5px;}#icon-options-general{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -492px -5px;}#icon-ms-admin{background:transparent url(../images/icons32-vs.png?ver=20100531) no-repeat -659px -5px;}.view-switch #view-switch-list{background:transparent url(../images/list-vs.png) no-repeat 0 0;}.view-switch .current #view-switch-list{background:transparent url(../images/list-vs.png) no-repeat -40px 0;}.view-switch #view-switch-excerpt{background:transparent url(../images/list-vs.png) no-repeat -20px 0;}.view-switch .current #view-switch-excerpt{background:transparent url(../images/list-vs.png) no-repeat -60px 0;}#header-logo{background:transparent url(../images/wp-logo-vs.png) no-repeat scroll center center;}#wphead #site-visit-button{background-color:#3c6b95;background-image:url(../images/visit-site-button-grad-vs.gif);color:#b6d1e4;text-shadow:#3f3f3f 0 -1px 0;}#wphead a:hover #site-visit-button{color:#fff;}#wphead a:focus #site-visit-button,#wphead a:active #site-visit-button{background-position:0 -27px;}.popular-tags,.feature-filter{background-color:#fff;border-color:#dfdfdf;}#theme-information .action-button{border-top-color:#dfdfdf;}.theme-listing br.line{border-bottom-color:#ccc;}div.widgets-sortables,#widgets-left .inactive{background-color:#f1f1f1;border-color:#ddd;}#available-widgets .widget-holder{background-color:#fff;border-color:#ddd;}#widgets-left .sidebar-name{background-color:#aaa;background-image:url(../images/ed-bg-vs.gif);text-shadow:#fff 0 1px 0;border-color:#dfdfdf;}#widgets-right .sidebar-name{background-image:url(../images/fav-vs.png);text-shadow:#3f3f3f 0 -1px 0;background-color:#636363;border-color:#636363;color:#fff;}.sidebar-name:hover,#removing-widget{color:#d54e21;}#removing-widget span{color:black;}#widgets-left .sidebar-name-arrow{background:transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -109px;}#widgets-right .sidebar-name-arrow{background:transparent url(../images/fav-arrow-vs.gif) no-repeat scroll 0 -1px;}.in-widget-title{color:#606060;}.deleting .widget-title *{color:#aaa;}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1;}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea;}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:.5;}#dashboard_recent_comments div.undo{border-top-color:#dfdfdf;}.comment-ays,.comment-ays th{border-color:#ddd;}.comment-ays th{background-color:#f1f1f1;}#nav-menu-header,.menu-item-handle{background:url(&quot;../images/blue-grad.png&quot;) repeat-x scroll left top #d5e6f2;}#menu-management .nav-tab-active{background:#eaf3fa;border-bottom-color:#eaf3fa;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincsscolorsclassicdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-classic.dev.css (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-classic.dev.css        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/css/colors-classic.dev.css        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1592,7 +1592,7 @@
</span><span class="cx">         background: transparent url(../images/list-vs.png) no-repeat 0 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.view-switch #view-switch-list.current {
</del><ins>+.view-switch .current #view-switch-list {
</ins><span class="cx">         background: transparent url(../images/list-vs.png) no-repeat -40px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1600,7 +1600,7 @@
</span><span class="cx">         background: transparent url(../images/list-vs.png) no-repeat -20px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.view-switch #view-switch-excerpt.current {
</del><ins>+.view-switch .current #view-switch-excerpt {
</ins><span class="cx">         background: transparent url(../images/list-vs.png) no-repeat -60px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1726,4 +1726,4 @@
</span><span class="cx"> #menu-management .nav-tab-active {
</span><span class="cx">         background: #eaf3fa;
</span><span class="cx">         border-bottom-color: #eaf3fa;
</span><del>-}
</del><span class="cx">\ No newline at end of file
</span><ins>+}
</ins></span></pre></div>
<a id="trunkwpadmincsscolorsfreshcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-fresh.css (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-fresh.css        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/css/colors-fresh.css        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1 +1 @@
</span><del>-html{background-color:#f9f9f9;}* html input,* html .widget{border-color:#dfdfdf;}textarea,input[type=&quot;text&quot;],input[type=&quot;password&quot;],input[type=&quot;file&quot;],input[type=&quot;button&quot;],input[type=&quot;submit&quot;],input[type=&quot;reset&quot;],select{border-color:#dfdfdf;background-color:#fff;}kbd,code{background:#eaeaea;}input[readonly]{background-color:#eee;}.find-box-search{border-color:#dfdfdf;background-color:#f1f1f1;}.find-box{background-color:#f1f1f1;}.find-box-inside{background-color:#fff;}a.page-numbers:hover{border-color:#999;}body,#wpbody,.form-table .pre{color:#333;}body&gt;#upload-menu{border-bottom-color:#fff;}#postcustomstuff table,#your-profile fieldset,#rightnow,div.dashboard-widget,#dashboard-widgets p.dashboard-widget-links,#replyrow #ed_reply_toolbar input{border-color:#ccc;}#poststuff .inside label.spam,#poststuff .inside label.deleted{color:red;}#poststuff .inside label.waiting{color:orange;}#poststuff .inside label.approved{color:green;}#postcustomstuff table{border-color:#dfdfdf;background-color:#F9F9F9;}#postcustomstuff thead th{background-color:#F1F1F1;}#postcustomstuff table input,#postcustomstuff table textarea{border-color:#dfdfdf;background-color:#fff;}.widefat{border-color:#dfdfdf;background-color:#fff;}div.dashboard-widget-error{background-color:#c43;}div.dashboard-widget-notice{background-color:#cfe1ef;}div.dashboard-widget-submit{border-top-color:#ccc;}div.tabs-panel,ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{border-color:#dfdfdf;}ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{background-color:#f1f1f1;}input.disabled,textarea.disabled{background-color:#ccc;}#plugin-information .action-button a,#plugin-information .action-button a:hover,#plugin-information .action-button a:visited{color:#fff;}.widget .widget-top,.postbox h3,.stuffbox h3{background:#dfdfdf url(&quot;../images/gray-grad.png&quot;) repeat-x left top;text-shadow:#fff 0 1px 0;}.form-table th,.form-wrap label{color:#222;text-shadow:#fff 0 1px 0;}.description,.form-wrap p{color:#666;}strong .post-com-count span{background-color:#21759b;}.sorthelper{background-color:#ccf3fa;}.ac_match,.subsubsub a.current{color:#000;}.wrap h2{color:#464646;}.ac_over{background-color:#f0f0b8;}.ac_results{background-color:#fff;border-color:#808080;}.ac_results li{color:#101010;}.alternate,.alt{background-color:#f9f9f9;}.available-theme a.screenshot{background-color:#f1f1f1;border-color:#ddd;}.bar{background-color:#e8e8e8;border-right-color:#99d;}#media-upload,#media-upload .media-item .slidetoggle{background:#fff;}#media-upload .slidetoggle{border-top-color:#dfdfdf;}.error,.login #login_error{background-color:#ffebe8;border-color:#c00;}.error a{color:#c00;}.form-invalid{background-color:#ffebe8!important;}.form-invalid input,.form-invalid select{border-color:#c00!important;}.submit{border-color:#DFDFDF;}.highlight{background-color:#e4f2fd;color:#d54e21;}.howto,.nonessential,#edit-slug-box,.form-input-tip,.rss-widget span.rss-date,.subsubsub{color:#666;}.media-item{border-bottom-color:#dfdfdf;}#wpbody-content #media-items .describe{border-top-color:#dfdfdf;}.media-upload-form label.form-help,td.help{color:#9a9a9a;}.post-com-count{background-image:url(../images/bubble_bg.gif);color:#fff;}.post-com-count span{background-color:#bbb;color:#fff;}.post-com-count:hover span{background-color:#d54e21;}.quicktags,.search{background-color:#ccc;color:#000;}.side-info h5{border-bottom-color:#dadada;}.side-info ul{color:#666;}.button,.button-secondary,.submit input,input[type=button],input[type=submit]{border-color:#bbb;color:#464646;}.button:hover,.button-secondary:hover,.submit input:hover,input[type=button]:hover,input[type=submit]:hover{color:#000;border-color:#666;}.button,.submit input,.button-secondary{background:#f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;text-shadow:rgba(255,255,255,1) 0 1px 0;}.button:active,.submit input:active,.button-secondary:active{background:#eee url(../images/white-grad-active.png) repeat-x scroll left top;}input.button-primary,button.button-primary,a.button-primary{border-color:#298cba;font-weight:bold;color:#fff;background:#21759B url(../images/button-grad.png) repeat-x scroll left top;text-shadow:rgba(0,0,0,0.3) 0 -1px 0;}input.button-primary:active,button.button-primary:active,a.button-primary:active{background:#21759b url(../images/button-grad-active.png) repeat-x scroll left top;color:#eaf2fa;}input.button-primary:hover,button.button-primary:hover,a.button-primary:hover,a.button-primary:focus,a.button-primary:active{border-color:#13455b;color:#eaf2fa;}.button-disabled,.button[disabled],.button:disabled,.button-secondary[disabled],.button-secondary:disabled,a.button.disabled{color:#aaa!important;border-color:#ddd!important;}.button-primary-disabled,.button-primary[disabled],.button-primary:disabled{color:#9FD0D5!important;background:#298CBA!important;}a:hover,a:active,a:focus{color:#d54e21;}#wphead #viewsite a:hover,#adminmenu a:hover,#adminmenu ul.wp-submenu a:hover,#the-comment-list .comment a:hover,#rightnow a:hover,#media-upload a.del-link:hover,div.dashboard-widget-submit input:hover,.subsubsub a:hover,.subsubsub a.current:hover,.ui-tabs-nav a:hover,.plugins .inactive a:hover,#all-plugins-table .plugins .inactive a:hover,#search-plugins-table .plugins .inactive a:hover{color:#d54e21;}#the-comment-list .comment-item,#dashboard-widgets #dashboard_quick_press form p.submit{border-color:#dfdfdf;}#side-sortables .category-tabs .tabs a,#side-sortables .add-menu-item-tabs .tabs a{color:#333;}#rightnow .rbutton{background-color:#ebebeb;color:#264761;}.submitbox .submit{background-color:#464646;color:#ccc;}.plugins a.delete:hover,#all-plugins-table .plugins a.delete:hover,#search-plugins-table .plugins a.delete:hover,.submitbox .submitdelete{color:#f00;border-bottom-color:#f00;}.submitbox .submitdelete:hover,#media-items a.delete:hover{color:#fff;background-color:#f00;border-bottom-color:#f00;}#normal-sortables .submitbox .submitdelete:hover{color:#000;background-color:#f00;border-bottom-color:#f00;}.tablenav .dots{border-color:transparent;}.tablenav .next,.tablenav .prev{border-color:transparent;color:#21759b;}.tablenav .next:hover,.tablenav .prev:hover{border-color:transparent;color:#d54e21;}.updated,.login .message{background-color:#ffffe0;border-color:#e6db55;}.update-message{color:#000;}a.page-numbers{border-bottom-color:#B8D3E2;}.commentlist li{border-bottom-color:#ccc;}.widefat td,.widefat th,#install-plugins .plugins td,#install-plugins .plugins th{border-color:#dfdfdf;}.widefat th{text-shadow:rgba(255,255,255,0.8) 0 1px 0;}.widefat thead tr th,.widefat tfoot tr th,h3.dashboard-widget-title,h3.dashboard-widget-title span,h3.dashboard-widget-title small,.find-box-head{color:#333;background:#dfdfdf url(../images/gray-grad.png) repeat-x scroll left top;}h3.dashboard-widget-title small a{color:#d7d7d7;}h3.dashboard-widget-title small a:hover{color:#fff;}a,#adminmenu a,#poststuff #edButtonPreview,#poststuff #edButtonHTML,#the-comment-list p.comment-author strong a,#media-upload a.del-link,#media-items a.delete,.plugins a.delete,.ui-tabs-nav a{color:#21759b;}body.press-this .tabs a,body.press-this .tabs a:hover{background-color:#fff;border-color:#c6d9e9;border-bottom-color:#fff;color:#d54e21;}#adminmenu #awaiting-mod,#adminmenu .update-plugins,#sidemenu a .update-plugins,#rightnow .reallynow{background-color:#464646;color:#fff;-moz-box-shadow:#fff 0 -1px 0;-khtml-box-shadow:#fff 0 -1px 0;-webkit-box-shadow:#fff 0 -1px 0;box-shadow:#fff 0 -1px 0;}#plugin-information .action-button{background-color:#d54e21;color:#fff;}#adminmenu li.current a #awaiting-mod,#adminmenu li a.wp-has-current-submenu .update-plugins{background-color:#464646;color:#fff;-moz-box-shadow:#fff 0 -1px 0;-khtml-box-shadow:#fff 0 -1px 0;-webkit-box-shadow:#fff 0 -1px 0;box-shadow:#fff 0 -1px 0;}div#media-upload-header,div#plugin-information-header{background-color:#f9f9f9;border-bottom-color:#dfdfdf;}#currenttheme img{border-color:#666;}#dashboard_secondary div.dashboard-widget-content ul li a{background-color:#f9f9f9;}input.readonly,textarea.readonly{background-color:#ddd;}#ed_toolbar input,#ed_reply_toolbar input{background:#fff url(&quot;../images/fade-butt.png&quot;) repeat-x 0 -2px;}#editable-post-name{background-color:#fffbcc;}#edit-slug-box strong,.tablenav .displaying-num,#submitted-on{color:#777;}.login #nav a{color:#21759b!important;}.login #nav a:hover{color:#d54e21!important;}#footer{color:#777;border-color:#d1d1d1;background:#d9d9d9;background:-moz-linear-gradient(bottom,#d7d7d7,#e4e4e4);background:-webkit-gradient(linear,left bottom,left top,from(#d7d7d7),to(#e4e4e4));}#media-items,.imgedit-group{border-color:#dfdfdf;}.checkbox,.side-info,.plugins tr,#your-profile #rich_editing{background-color:#fff;}.plugins .inactive,.plugins .inactive th,.plugins .inactive td,tr.inactive+tr.plugin-update-tr .plugin-update{background-color:#eee;}.plugin-update-tr .update-message{background-color:#fffbe4;border-color:#dfdfdf;}.plugins .active,.plugins .active th,.plugins .active td{color:#000;}.plugins .inactive a{color:#579;}#the-comment-list tr.undo,#the-comment-list div.undo{background-color:#f4f4f4;}#the-comment-list .unapproved{background-color:#ffffe0;}#the-comment-list .approve a{color:#006505;}#the-comment-list .unapprove a{color:#d98500;}table.widefat span.delete a,table.widefat span.trash a,table.widefat span.spam a,#dashboard_recent_comments .delete a,#dashboard_recent_comments .trash a,#dashboard_recent_comments .spam a{color:#bc0b0b;}.widget,#widget-list .widget-top,.postbox,#titlediv,#poststuff .postarea,.stuffbox{border-color:#dfdfdf;}.widget,.postbox{background-color:#fff;}.ui-sortable .postbox h3{color:#464646;}.widget .widget-top,.ui-sortable .postbox h3:hover{color:#000;}.curtime #timestamp{background-image:url(../images/date-button.gif);}#quicktags #ed_link{color:#00f;}#rightnow .youhave{background-color:#f0f6fb;}#rightnow a{color:#448abd;}.tagchecklist span a,#bulk-titles div a{background:url(../images/xit.gif) no-repeat;}.tagchecklist span a:hover,#bulk-titles div a:hover{background:url(../images/xit.gif) no-repeat -10px 0;}#update-nag,.update-nag{background-color:#FFFBCC;border-color:#E6DB55;color:#555;}.login #backtoblog a{color:#464646;}#wphead{border-bottom:#c6c6c6 1px solid;background:#d9d9d9;background:-moz-linear-gradient(bottom,#d7d7d7,#e4e4e4);background:-webkit-gradient(linear,left bottom,left top,from(#d7d7d7),to(#e4e4e4));}#wphead h1 a{color:#464646;}#user_info{color:#777;}#user_info a:link,#user_info a:visited,#footer a:link,#footer a:visited{color:#222;text-decoration:none;}#user_info a:hover,#footer a:hover{color:#000;text-decoration:underline!important;}#user_info a:active,#footer a:active{color:#ccc!important;}div#media-upload-error,.file-error,abbr.required,.widget-control-remove:hover,table.widefat .delete a:hover,table.widefat .trash a:hover,table.widefat .spam a:hover,#dashboard_recent_comments .delete a:hover,#dashboard_recent_comments .trash a:hover #dashboard_recent_comments .spam a:hover{color:#f00;}#pass-strength-result{background-color:#eee;border-color:#ddd!important;}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important;}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important;}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important;}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important;}#quicktags{border-color:#dfdfdf;background-color:#dfdfdf;}#ed_toolbar input{border-color:#C3C3C3;}#ed_toolbar input:hover{border-color:#aaa;background:#ddd;}#poststuff .wp_themeSkin .mceStatusbar{border-color:#EDEDED;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{background-color:#f1f1f1;border-color:#dfdfdf;color:#999;}#poststuff #editor-toolbar .active{border-bottom-color:#e9e9e9;background-color:#e9e9e9;color:#333;}#post-status-info{background-color:#EDEDED;}.wp_themeSkin *,.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{color:#000;}.wp_themeSkin iframe{background:#fff;}.wp_themeSkin .mceStatusbar{color:#000;background-color:#f5f5f5;}.wp_themeSkin .mceButton{background-color:#e9e8e8;border-color:#B2B2B2;}.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonSelected{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceButtonDisabled{border-color:#ccc!important;}.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen{border-color:#B2B2B2;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin .mceListBoxSelected .mceText{border-color:#777!important;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceText,.wp_themeSkin .mceListBoxHover .mceText{border-color:#777!important;}.wp_themeSkin select.mceListBox{border-color:#B2B2B2;background-color:#fff;}.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen{border-color:#B2B2B2;}.wp_themeSkin .mceSplitButton a.mceOpen:hover,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,.wp_themeSkin .mceSplitButton a.mceAction:hover{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceSplitButtonActive{background-color:#B2B2B2;}.wp_themeSkin div.mceColorSplitMenu table{background-color:#ebebeb;border-color:#B2B2B2;}.wp_themeSkin .mceColorSplitMenu a{border-color:#B2B2B2;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors{border-color:#fff;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover{border-color:#0A246A;background-color:#B6BDD2;}.wp_themeSkin a.mceMoreColors:hover{border-color:#0A246A;}.wp_themeSkin .mceMenu{border-color:#ddd;}.wp_themeSkin .mceMenu table{background-color:#ebeaeb;}.wp_themeSkin .mceMenu .mceText{color:#000;}.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,.wp_themeSkin .mceMenu .mceMenuItemActive{background-color:#f5f5f5;}.wp_themeSkin td.mceMenuItemSeparator{background-color:#aaa;}.wp_themeSkin .mceMenuItemTitle a{background-color:#ccc;border-bottom-color:#aaa;}.wp_themeSkin .mceMenuItemTitle span.mceText{color:#000;}.wp_themeSkin .mceMenuItemDisabled .mceText{color:#888;}.wp_themeSkin tr.mceFirst td.mceToolbar{background:#dfdfdf url(&quot;../images/ed-bg.gif&quot;) repeat-x scroll left top;border-color:#dfdfdf;}.wp-admin #mceModalBlocker{background:#000;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceLeft{background:#444;border-left:1px solid #999;border-top:1px solid #999;-moz-border-radius:4px 0 0 0;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceRight{background:#444;border-right:1px solid #999;border-top:1px solid #999;border-top-right-radius:4px;-khtml-border-top-right-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius:0 4px 0 0;}.wp-admin .clearlooks2 .mceMiddle .mceLeft{background:#f1f1f1;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceMiddle .mceRight{background:#f1f1f1;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceBottom{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceLeft{background:#f1f1f1;border-bottom:1px solid #999;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceCenter{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceRight{background:#f1f1f1;border-bottom:1px solid #999;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceFocus .mceTop span{color:#e5e5e5;}#editorcontainer,#post-status-info,#titlediv #title,.editwidget .widget-inside{border-color:#dfdfdf;}#titlediv #title{background-color:#fff;}#tTips p#tTips_inside{background-color:#ddd;color:#333;}#timestampdiv input,#namediv input,#poststuff .inside .the-tagcloud{border-color:#ddd;}#adminmenu *{border-color:#e3e3e3;}#adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;}.folded #adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;}#adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle,#adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -207px;}#adminmenu .wp-has-submenu:hover .wp-menu-toggle,#adminmenu .wp-menu-open .wp-menu-toggle{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -109px;}#adminmenu a.menu-top{background:#f1f1f1 url(../images/menu-bits.gif?ver=20100610) repeat-x scroll left -379px;}#adminmenu .wp-submenu a{background:#fff url(../images/menu-bits.gif?ver=20100610) no-repeat scroll 0 -310px;}#adminmenu .wp-has-current-submenu ul li a{background:none;}#adminmenu .wp-has-current-submenu ul li a.current{background:url(../images/menu-dark.gif) top left no-repeat!important;}.wp-has-current-submenu .wp-submenu{border-top:none!important;}#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu{border-bottom:#aaa 1px solid;}#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,#adminmenu li.current a.menu-top{background:#e0e0e0 url(../images/menu-bits.gif?ver=20100610) top left repeat-x;border:#aaa 1px solid;color:#000;}#adminmenu li.wp-has-current-submenu .wp-submenu,#adminmenu li.wp-has-current-submenu ul li a{border-right-color:#aaa!important;border-left-color:#aaa!important;}#adminmenu li.wp-has-current-submenu ul li a{background:url(../images/menu-dark.gif) bottom left no-repeat!important;}#adminmenu li.wp-has-current-submenu ul{border-bottom-color:#aaa;}#adminmenu .wp-submenu .current a.current{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll 0 -289px;}#adminmenu .wp-submenu a:hover{background-color:#EAF2FA!important;color:#333!important;}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover{color:#333;background-color:#f5f5f5;background-image:none;border-color:#e3e3e3;}#adminmenu .wp-submenu ul{background-color:#fff;}.folded #adminmenu li.menu-top,#adminmenu .wp-submenu .wp-submenu-head{background-color:#F1F1F1;}.folded #adminmenu li.wp-has-current-submenu,.folded #adminmenu li.menu-top.current{background-color:#e6e6e6;}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head{background-color:#EAEAEA;border-color:#aaa;}#adminmenu div.wp-submenu{background-color:transparent;}#adminmenu .menu-icon-dashboard div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -61px -33px;}#adminmenu .menu-icon-dashboard:hover div.wp-menu-image,#adminmenu .menu-icon-dashboard.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-dashboard.current div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -61px -1px;}#adminmenu .menu-icon-post div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -272px -33px;}#adminmenu .menu-icon-post:hover div.wp-menu-image,#adminmenu .menu-icon-post.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -272px -1px;}#adminmenu .menu-icon-media div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -121px -33px;}#adminmenu .menu-icon-media:hover div.wp-menu-image,#adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -121px -1px;}#adminmenu .menu-icon-links div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -91px -33px;}#adminmenu .menu-icon-links:hover div.wp-menu-image,#adminmenu .menu-icon-links.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -91px -1px;}#adminmenu .menu-icon-page div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -151px -33px;}#adminmenu .menu-icon-page:hover div.wp-menu-image,#adminmenu .menu-icon-page.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -151px -1px;}#adminmenu .menu-icon-comments div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -31px -33px;}#adminmenu .menu-icon-comments:hover div.wp-menu-image,#adminmenu .menu-icon-comments.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-comments.current div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -31px -1px;}#adminmenu .menu-icon-appearance div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -1px -33px;}#adminmenu .menu-icon-appearance:hover div.wp-menu-image,#adminmenu .menu-icon-appearance.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -1px -1px;}#adminmenu .menu-icon-plugins div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -181px -33px;}#adminmenu .menu-icon-plugins:hover div.wp-menu-image,#adminmenu .menu-icon-plugins.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -181px -1px;}#adminmenu .menu-icon-users div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -301px -33px;}#adminmenu .menu-icon-users:hover div.wp-menu-image,#adminmenu .menu-icon-users.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -301px -1px;}#adminmenu .menu-icon-tools div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -211px -33px;}#adminmenu .menu-icon-tools:hover div.wp-menu-image,#adminmenu .menu-icon-tools.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -211px -1px;}#adminmenu .menu-icon-settings div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -241px -33px;}#adminmenu .menu-icon-settings:hover div.wp-menu-image,#adminmenu .menu-icon-settings.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -241px -1px;}#adminmenu .menu-icon-site div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -361px -33px;}#adminmenu .menu-icon-site:hover div.wp-menu-image,#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -361px -1px;}table.diff .diff-deletedline{background-color:#fdd;}table.diff .diff-deletedline del{background-color:#f99;}table.diff .diff-addedline{background-color:#dfd;}table.diff .diff-addedline ins{background-color:#9f9;}#att-info{background-color:#E4F2FD;}#sidemenu a{background-color:#f9f9f9;border-color:#f9f9f9;border-bottom-color:#dfdfdf;}#sidemenu a.current{background-color:#fff;border-color:#dfdfdf #dfdfdf #fff;color:#D54E21;}#screen-options-wrap,#contextual-help-wrap{background-color:#f1f1f1;border-color:#dfdfdf;}#screen-meta-links a.show-settings{color:#606060;}#screen-meta-links a.show-settings:hover{color:#000;}#replysubmit{background-color:#f1f1f1;border-top-color:#ddd;}#replyerror{border-color:#ddd;background-color:#f9f9f9;}#edithead,#replyhead{background-color:#f1f1f1;}#ed_reply_toolbar{background-color:#e9e9e9;}.vim-current,.vim-current th,.vim-current td{background-color:#E4F2FD!important;}.star-average,.star.star-rating{background-color:#fc0;}div.star.select:hover{background-color:#d00;}#plugin-information .fyi ul{background-color:#eaf3fa;}#plugin-information .fyi h2.mainheader{background-color:#cee1ef;}#plugin-information pre,#plugin-information code{background-color:#ededff;}#plugin-information pre{border:1px solid #ccc;}.inline-edit-row fieldset input[type=&quot;text&quot;],.inline-edit-row fieldset textarea,#bulk-titles,#replyrow input{border-color:#ddd;}.inline-editor div.title{background-color:#EAF3FA;}.inline-editor ul.cat-checklist{background-color:#fff;border-color:#ddd;}.inline-editor .categories .catshow,.inline-editor .categories .cathide{color:#21759b;}.inline-editor .quick-edit-save{background-color:#f1f1f1;}#replyrow #ed_reply_toolbar input:hover{border-color:#aaa;background:#ddd;}fieldset.inline-edit-col-right .inline-edit-col{border-color:#dfdfdf;}.attention{color:#D54E21;}.meta-box-sortables .postbox:hover .handlediv{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -111px;}#major-publishing-actions{background:#eaf2fa;}.tablenav .tablenav-pages{color:#555;}.tablenav .tablenav-pages a{border-color:#e3e3e3;background:#eee url('../images/menu-bits.gif?ver=20100610') repeat-x scroll left -379px;}.tablenav .tablenav-pages a:hover{color:#d54e21;border-color:#d54321;}.tablenav .tablenav-pages a:active{color:#fff!important;}.tablenav .tablenav-pages .current{background:#dfdfdf;border-color:#d3d3d3;}#availablethemes,#availablethemes td{border-color:#ddd;}#current-theme img{border-color:#999;}#TB_window #TB_title a.tb-theme-preview-link,#TB_window #TB_title a.tb-theme-preview-link:visited{color:#999;}#TB_window #TB_title a.tb-theme-preview-link:hover,#TB_window #TB_title a.tb-theme-preview-link:focus{color:#ccc;}.misc-pub-section{border-bottom-color:#eee;}#minor-publishing{border-bottom-color:#ddd;}#post-body .misc-pub-section{border-right-color:#eee;}.post-com-count span{background-color:#bbb;}.form-table .color-palette td{border-color:#fff;}.sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;}#post-body ul.category-tabs li.tabs a,#post-body ul.add-menu-item-tabs li.tabs a{color:#333;}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{border-color:#999;background-color:#eee;}#wp_editimgbtn:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_delgallery:hover{border-color:#555;background-color:#ccc;}#favorite-first{border-color:#c0c0c0;background:#f1f1f1;background:-moz-linear-gradient(bottom,#e7e7e7,#fff);background:-webkit-gradient(linear,left bottom,left top,from(#e7e7e7),to(#fff));}#favorite-inside{border-color:#c0c0c0;background-color:#fff;}#favorite-toggle{background:transparent url(../images/fav-arrow.gif?ver=20100531) no-repeat 0 -4px;}#favorite-actions a{color:#464646;}#favorite-actions a:hover{color:#000;}#favorite-inside a:hover{text-decoration:underline;}#screen-meta a.show-settings{background-color:transparent;text-shadow:rgba(255,255,255,0.7) 0 1px 0;}#icon-edit,#icon-post{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -552px -5px;}#icon-index{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -137px -5px;}#icon-upload{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -251px -5px;}#icon-link-manager,#icon-link,#icon-link-category{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -190px -5px;}#icon-edit-pages,#icon-page{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -312px -5px;}#icon-edit-comments{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -72px -5px;}#icon-themes{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -11px -5px;}#icon-plugins{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -370px -5px;}#icon-users,#icon-profile,#icon-user-edit{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -600px -5px;}#icon-tools,#icon-admin{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -432px -5px;}#icon-options-general{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -492px -5px;}#icon-ms-admin{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -659px -5px;}.view-switch #view-switch-list{background:transparent url(../images/list.png) no-repeat 0 0;}.view-switch #view-switch-list.current{background:transparent url(../images/list.png) no-repeat -40px 0;}.view-switch #view-switch-excerpt{background:transparent url(../images/list.png) no-repeat -20px 0;}.view-switch #view-switch-excerpt.current{background:transparent url(../images/list.png) no-repeat -60px 0;}#header-logo{background:transparent url(../images/wp-logo.png?ver=20100531) no-repeat scroll center center;}.popular-tags,.feature-filter{background-color:#fff;border-color:#DFDFDF;}#theme-information .action-button{border-top-color:#DFDFDF;}.theme-listing br.line{border-bottom-color:#ccc;}div.widgets-sortables,#widgets-left .inactive{background-color:#f1f1f1;border-color:#ddd;}#available-widgets .widget-holder{background-color:#fff;border-color:#ddd;}#widgets-left .sidebar-name{background-color:#aaa;background-image:url(../images/ed-bg.gif);text-shadow:#fff 0 1px 0;border-color:#dfdfdf;}#widgets-right .sidebar-name{background-image:url(../images/fav.png);text-shadow:#3f3f3f 0 -1px 0;background-color:#636363;border-color:#636363;color:#fff;}.sidebar-name:hover,#removing-widget{color:#d54e21;}#removing-widget span{color:black;}#widgets-left .sidebar-name-arrow{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -109px;}#widgets-right .sidebar-name-arrow{background:transparent url(../images/widgets-arrow.gif?ver=20100531) no-repeat scroll 0 -1px;}.in-widget-title{color:#606060;}.deleting .widget-title *{color:#aaa;}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1;}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea;}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:.5;}#dashboard_recent_comments div.undo{border-top-color:#dfdfdf;}.comment-ays,.comment-ays th{border-color:#ddd;}.comment-ays th{background-color:#f1f1f1;}#nav-menu-header,.menu-item-handle{background:url(&quot;../images/gray-grad.png&quot;) repeat-x scroll left top #dfdfdf;}#menu-management .nav-tab-active{background:#ececec;border-bottom-color:#ececec;}
</del><span class="cx">\ No newline at end of file
</span><ins>+html{background-color:#f9f9f9;}* html input,* html .widget{border-color:#dfdfdf;}textarea,input[type=&quot;text&quot;],input[type=&quot;password&quot;],input[type=&quot;file&quot;],input[type=&quot;button&quot;],input[type=&quot;submit&quot;],input[type=&quot;reset&quot;],select{border-color:#dfdfdf;background-color:#fff;}kbd,code{background:#eaeaea;}input[readonly]{background-color:#eee;}.find-box-search{border-color:#dfdfdf;background-color:#f1f1f1;}.find-box{background-color:#f1f1f1;}.find-box-inside{background-color:#fff;}a.page-numbers:hover{border-color:#999;}body,#wpbody,.form-table .pre{color:#333;}body&gt;#upload-menu{border-bottom-color:#fff;}#postcustomstuff table,#your-profile fieldset,#rightnow,div.dashboard-widget,#dashboard-widgets p.dashboard-widget-links,#replyrow #ed_reply_toolbar input{border-color:#ccc;}#poststuff .inside label.spam,#poststuff .inside label.deleted{color:red;}#poststuff .inside label.waiting{color:orange;}#poststuff .inside label.approved{color:green;}#postcustomstuff table{border-color:#dfdfdf;background-color:#F9F9F9;}#postcustomstuff thead th{background-color:#F1F1F1;}#postcustomstuff table input,#postcustomstuff table textarea{border-color:#dfdfdf;background-color:#fff;}.widefat{border-color:#dfdfdf;background-color:#fff;}div.dashboard-widget-error{background-color:#c43;}div.dashboard-widget-notice{background-color:#cfe1ef;}div.dashboard-widget-submit{border-top-color:#ccc;}div.tabs-panel,ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{border-color:#dfdfdf;}ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{background-color:#f1f1f1;}input.disabled,textarea.disabled{background-color:#ccc;}#plugin-information .action-button a,#plugin-information .action-button a:hover,#plugin-information .action-button a:visited{color:#fff;}.widget .widget-top,.postbox h3,.stuffbox h3{background:#dfdfdf url(&quot;../images/gray-grad.png&quot;) repeat-x left top;text-shadow:#fff 0 1px 0;}.form-table th,.form-wrap label{color:#222;text-shadow:#fff 0 1px 0;}.description,.form-wrap p{color:#666;}strong .post-com-count span{background-color:#21759b;}.sorthelper{background-color:#ccf3fa;}.ac_match,.subsubsub a.current{color:#000;}.wrap h2{color:#464646;}.ac_over{background-color:#f0f0b8;}.ac_results{background-color:#fff;border-color:#808080;}.ac_results li{color:#101010;}.alternate,.alt{background-color:#f9f9f9;}.available-theme a.screenshot{background-color:#f1f1f1;border-color:#ddd;}.bar{background-color:#e8e8e8;border-right-color:#99d;}#media-upload,#media-upload .media-item .slidetoggle{background:#fff;}#media-upload .slidetoggle{border-top-color:#dfdfdf;}.error,.login #login_error{background-color:#ffebe8;border-color:#c00;}.error a{color:#c00;}.form-invalid{background-color:#ffebe8!important;}.form-invalid input,.form-invalid select{border-color:#c00!important;}.submit{border-color:#DFDFDF;}.highlight{background-color:#e4f2fd;color:#d54e21;}.howto,.nonessential,#edit-slug-box,.form-input-tip,.rss-widget span.rss-date,.subsubsub{color:#666;}.media-item{border-bottom-color:#dfdfdf;}#wpbody-content #media-items .describe{border-top-color:#dfdfdf;}.media-upload-form label.form-help,td.help{color:#9a9a9a;}.post-com-count{background-image:url(../images/bubble_bg.gif);color:#fff;}.post-com-count span{background-color:#bbb;color:#fff;}.post-com-count:hover span{background-color:#d54e21;}.quicktags,.search{background-color:#ccc;color:#000;}.side-info h5{border-bottom-color:#dadada;}.side-info ul{color:#666;}.button,.button-secondary,.submit input,input[type=button],input[type=submit]{border-color:#bbb;color:#464646;}.button:hover,.button-secondary:hover,.submit input:hover,input[type=button]:hover,input[type=submit]:hover{color:#000;border-color:#666;}.button,.submit input,.button-secondary{background:#f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;text-shadow:rgba(255,255,255,1) 0 1px 0;}.button:active,.submit input:active,.button-secondary:active{background:#eee url(../images/white-grad-active.png) repeat-x scroll left top;}input.button-primary,button.button-primary,a.button-primary{border-color:#298cba;font-weight:bold;color:#fff;background:#21759B url(../images/button-grad.png) repeat-x scroll left top;text-shadow:rgba(0,0,0,0.3) 0 -1px 0;}input.button-primary:active,button.button-primary:active,a.button-primary:active{background:#21759b url(../images/button-grad-active.png) repeat-x scroll left top;color:#eaf2fa;}input.button-primary:hover,button.button-primary:hover,a.button-primary:hover,a.button-primary:focus,a.button-primary:active{border-color:#13455b;color:#eaf2fa;}.button-disabled,.button[disabled],.button:disabled,.button-secondary[disabled],.button-secondary:disabled,a.button.disabled{color:#aaa!important;border-color:#ddd!important;}.button-primary-disabled,.button-primary[disabled],.button-primary:disabled{color:#9FD0D5!important;background:#298CBA!important;}a:hover,a:active,a:focus{color:#d54e21;}#wphead #viewsite a:hover,#adminmenu a:hover,#adminmenu ul.wp-submenu a:hover,#the-comment-list .comment a:hover,#rightnow a:hover,#media-upload a.del-link:hover,div.dashboard-widget-submit input:hover,.subsubsub a:hover,.subsubsub a.current:hover,.ui-tabs-nav a:hover,.plugins .inactive a:hover,#all-plugins-table .plugins .inactive a:hover,#search-plugins-table .plugins .inactive a:hover{color:#d54e21;}#the-comment-list .comment-item,#dashboard-widgets #dashboard_quick_press form p.submit{border-color:#dfdfdf;}#side-sortables .category-tabs .tabs a,#side-sortables .add-menu-item-tabs .tabs a{color:#333;}#rightnow .rbutton{background-color:#ebebeb;color:#264761;}.submitbox .submit{background-color:#464646;color:#ccc;}.plugins a.delete:hover,#all-plugins-table .plugins a.delete:hover,#search-plugins-table .plugins a.delete:hover,.submitbox .submitdelete{color:#f00;border-bottom-color:#f00;}.submitbox .submitdelete:hover,#media-items a.delete:hover{color:#fff;background-color:#f00;border-bottom-color:#f00;}#normal-sortables .submitbox .submitdelete:hover{color:#000;background-color:#f00;border-bottom-color:#f00;}.tablenav .dots{border-color:transparent;}.tablenav .next,.tablenav .prev{border-color:transparent;color:#21759b;}.tablenav .next:hover,.tablenav .prev:hover{border-color:transparent;color:#d54e21;}.updated,.login .message{background-color:#ffffe0;border-color:#e6db55;}.update-message{color:#000;}a.page-numbers{border-bottom-color:#B8D3E2;}.commentlist li{border-bottom-color:#ccc;}.widefat td,.widefat th,#install-plugins .plugins td,#install-plugins .plugins th{border-color:#dfdfdf;}.widefat th{text-shadow:rgba(255,255,255,0.8) 0 1px 0;}.widefat thead tr th,.widefat tfoot tr th,h3.dashboard-widget-title,h3.dashboard-widget-title span,h3.dashboard-widget-title small,.find-box-head{color:#333;background:#dfdfdf url(../images/gray-grad.png) repeat-x scroll left top;}h3.dashboard-widget-title small a{color:#d7d7d7;}h3.dashboard-widget-title small a:hover{color:#fff;}a,#adminmenu a,#poststuff #edButtonPreview,#poststuff #edButtonHTML,#the-comment-list p.comment-author strong a,#media-upload a.del-link,#media-items a.delete,.plugins a.delete,.ui-tabs-nav a{color:#21759b;}body.press-this .tabs a,body.press-this .tabs a:hover{background-color:#fff;border-color:#c6d9e9;border-bottom-color:#fff;color:#d54e21;}#adminmenu #awaiting-mod,#adminmenu .update-plugins,#sidemenu a .update-plugins,#rightnow .reallynow{background-color:#464646;color:#fff;-moz-box-shadow:#fff 0 -1px 0;-khtml-box-shadow:#fff 0 -1px 0;-webkit-box-shadow:#fff 0 -1px 0;box-shadow:#fff 0 -1px 0;}#plugin-information .action-button{background-color:#d54e21;color:#fff;}#adminmenu li.current a #awaiting-mod,#adminmenu li a.wp-has-current-submenu .update-plugins{background-color:#464646;color:#fff;-moz-box-shadow:#fff 0 -1px 0;-khtml-box-shadow:#fff 0 -1px 0;-webkit-box-shadow:#fff 0 -1px 0;box-shadow:#fff 0 -1px 0;}div#media-upload-header,div#plugin-information-header{background-color:#f9f9f9;border-bottom-color:#dfdfdf;}#currenttheme img{border-color:#666;}#dashboard_secondary div.dashboard-widget-content ul li a{background-color:#f9f9f9;}input.readonly,textarea.readonly{background-color:#ddd;}#ed_toolbar input,#ed_reply_toolbar input{background:#fff url(&quot;../images/fade-butt.png&quot;) repeat-x 0 -2px;}#editable-post-name{background-color:#fffbcc;}#edit-slug-box strong,.tablenav .displaying-num,#submitted-on{color:#777;}.login #nav a{color:#21759b!important;}.login #nav a:hover{color:#d54e21!important;}#footer{color:#777;border-color:#d1d1d1;background:#d9d9d9;background:-moz-linear-gradient(bottom,#d7d7d7,#e4e4e4);background:-webkit-gradient(linear,left bottom,left top,from(#d7d7d7),to(#e4e4e4));}#media-items,.imgedit-group{border-color:#dfdfdf;}.checkbox,.side-info,.plugins tr,#your-profile #rich_editing{background-color:#fff;}.plugins .inactive,.plugins .inactive th,.plugins .inactive td,tr.inactive+tr.plugin-update-tr .plugin-update{background-color:#eee;}.plugin-update-tr .update-message{background-color:#fffbe4;border-color:#dfdfdf;}.plugins .active,.plugins .active th,.plugins .active td{color:#000;}.plugins .inactive a{color:#579;}#the-comment-list tr.undo,#the-comment-list div.undo{background-color:#f4f4f4;}#the-comment-list .unapproved{background-color:#ffffe0;}#the-comment-list .approve a{color:#006505;}#the-comment-list .unapprove a{color:#d98500;}table.widefat span.delete a,table.widefat span.trash a,table.widefat span.spam a,#dashboard_recent_comments .delete a,#dashboard_recent_comments .trash a,#dashboard_recent_comments .spam a{color:#bc0b0b;}.widget,#widget-list .widget-top,.postbox,#titlediv,#poststuff .postarea,.stuffbox{border-color:#dfdfdf;}.widget,.postbox{background-color:#fff;}.ui-sortable .postbox h3{color:#464646;}.widget .widget-top,.ui-sortable .postbox h3:hover{color:#000;}.curtime #timestamp{background-image:url(../images/date-button.gif);}#quicktags #ed_link{color:#00f;}#rightnow .youhave{background-color:#f0f6fb;}#rightnow a{color:#448abd;}.tagchecklist span a,#bulk-titles div a{background:url(../images/xit.gif) no-repeat;}.tagchecklist span a:hover,#bulk-titles div a:hover{background:url(../images/xit.gif) no-repeat -10px 0;}#update-nag,.update-nag{background-color:#FFFBCC;border-color:#E6DB55;color:#555;}.login #backtoblog a{color:#464646;}#wphead{border-bottom:#c6c6c6 1px solid;background:#d9d9d9;background:-moz-linear-gradient(bottom,#d7d7d7,#e4e4e4);background:-webkit-gradient(linear,left bottom,left top,from(#d7d7d7),to(#e4e4e4));}#wphead h1 a{color:#464646;}#user_info{color:#777;}#user_info a:link,#user_info a:visited,#footer a:link,#footer a:visited{color:#222;text-decoration:none;}#user_info a:hover,#footer a:hover{color:#000;text-decoration:underline!important;}#user_info a:active,#footer a:active{color:#ccc!important;}div#media-upload-error,.file-error,abbr.required,.widget-control-remove:hover,table.widefat .delete a:hover,table.widefat .trash a:hover,table.widefat .spam a:hover,#dashboard_recent_comments .delete a:hover,#dashboard_recent_comments .trash a:hover #dashboard_recent_comments .spam a:hover{color:#f00;}#pass-strength-result{background-color:#eee;border-color:#ddd!important;}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important;}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important;}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important;}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important;}#quicktags{border-color:#dfdfdf;background-color:#dfdfdf;}#ed_toolbar input{border-color:#C3C3C3;}#ed_toolbar input:hover{border-color:#aaa;background:#ddd;}#poststuff .wp_themeSkin .mceStatusbar{border-color:#EDEDED;}#poststuff #edButtonPreview,#poststuff #edButtonHTML{background-color:#f1f1f1;border-color:#dfdfdf;color:#999;}#poststuff #editor-toolbar .active{border-bottom-color:#e9e9e9;background-color:#e9e9e9;color:#333;}#post-status-info{background-color:#EDEDED;}.wp_themeSkin *,.wp_themeSkin a:hover,.wp_themeSkin a:link,.wp_themeSkin a:visited,.wp_themeSkin a:active{color:#000;}.wp_themeSkin iframe{background:#fff;}.wp_themeSkin .mceStatusbar{color:#000;background-color:#f5f5f5;}.wp_themeSkin .mceButton{background-color:#e9e8e8;border-color:#B2B2B2;}.wp_themeSkin a.mceButtonEnabled:hover,.wp_themeSkin a.mceButtonActive,.wp_themeSkin a.mceButtonSelected{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceButtonDisabled{border-color:#ccc!important;}.wp_themeSkin .mceListBox .mceText,.wp_themeSkin .mceListBox .mceOpen{border-color:#B2B2B2;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceOpen,.wp_themeSkin .mceListBoxHover .mceOpen,.wp_themeSkin .mceListBoxSelected .mceOpen,.wp_themeSkin .mceListBoxSelected .mceText{border-color:#777!important;background-color:#d5d5d5;}.wp_themeSkin table.mceListBoxEnabled:hover .mceText,.wp_themeSkin .mceListBoxHover .mceText{border-color:#777!important;}.wp_themeSkin select.mceListBox{border-color:#B2B2B2;background-color:#fff;}.wp_themeSkin .mceSplitButton a.mceAction,.wp_themeSkin .mceSplitButton a.mceOpen{border-color:#B2B2B2;}.wp_themeSkin .mceSplitButton a.mceOpen:hover,.wp_themeSkin .mceSplitButtonSelected a.mceOpen,.wp_themeSkin table.mceSplitButtonEnabled:hover a.mceAction,.wp_themeSkin .mceSplitButton a.mceAction:hover{background-color:#d5d5d5;border-color:#777!important;}.wp_themeSkin .mceSplitButtonActive{background-color:#B2B2B2;}.wp_themeSkin div.mceColorSplitMenu table{background-color:#ebebeb;border-color:#B2B2B2;}.wp_themeSkin .mceColorSplitMenu a{border-color:#B2B2B2;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors{border-color:#fff;}.wp_themeSkin .mceColorSplitMenu a.mceMoreColors:hover{border-color:#0A246A;background-color:#B6BDD2;}.wp_themeSkin a.mceMoreColors:hover{border-color:#0A246A;}.wp_themeSkin .mceMenu{border-color:#ddd;}.wp_themeSkin .mceMenu table{background-color:#ebeaeb;}.wp_themeSkin .mceMenu .mceText{color:#000;}.wp_themeSkin .mceMenu .mceMenuItemEnabled a:hover,.wp_themeSkin .mceMenu .mceMenuItemActive{background-color:#f5f5f5;}.wp_themeSkin td.mceMenuItemSeparator{background-color:#aaa;}.wp_themeSkin .mceMenuItemTitle a{background-color:#ccc;border-bottom-color:#aaa;}.wp_themeSkin .mceMenuItemTitle span.mceText{color:#000;}.wp_themeSkin .mceMenuItemDisabled .mceText{color:#888;}.wp_themeSkin tr.mceFirst td.mceToolbar{background:#dfdfdf url(&quot;../images/ed-bg.gif&quot;) repeat-x scroll left top;border-color:#dfdfdf;}.wp-admin #mceModalBlocker{background:#000;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceLeft{background:#444;border-left:1px solid #999;border-top:1px solid #999;-moz-border-radius:4px 0 0 0;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;}.wp-admin .clearlooks2 .mceFocus .mceTop .mceRight{background:#444;border-right:1px solid #999;border-top:1px solid #999;border-top-right-radius:4px;-khtml-border-top-right-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius:0 4px 0 0;}.wp-admin .clearlooks2 .mceMiddle .mceLeft{background:#f1f1f1;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceMiddle .mceRight{background:#f1f1f1;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceBottom{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceLeft{background:#f1f1f1;border-bottom:1px solid #999;border-left:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceCenter{background:#f1f1f1;border-bottom:1px solid #999;}.wp-admin .clearlooks2 .mceBottom .mceRight{background:#f1f1f1;border-bottom:1px solid #999;border-right:1px solid #999;}.wp-admin .clearlooks2 .mceFocus .mceTop span{color:#e5e5e5;}#editorcontainer,#post-status-info,#titlediv #title,.editwidget .widget-inside{border-color:#dfdfdf;}#titlediv #title{background-color:#fff;}#tTips p#tTips_inside{background-color:#ddd;color:#333;}#timestampdiv input,#namediv input,#poststuff .inside .the-tagcloud{border-color:#ddd;}#adminmenu *{border-color:#e3e3e3;}#adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;}.folded #adminmenu li.wp-menu-separator{background:transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;}#adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle,#adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -207px;}#adminmenu .wp-has-submenu:hover .wp-menu-toggle,#adminmenu .wp-menu-open .wp-menu-toggle{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -109px;}#adminmenu a.menu-top{background:#f1f1f1 url(../images/menu-bits.gif?ver=20100610) repeat-x scroll left -379px;}#adminmenu .wp-submenu a{background:#fff url(../images/menu-bits.gif?ver=20100610) no-repeat scroll 0 -310px;}#adminmenu .wp-has-current-submenu ul li a{background:none;}#adminmenu .wp-has-current-submenu ul li a.current{background:url(../images/menu-dark.gif) top left no-repeat!important;}.wp-has-current-submenu .wp-submenu{border-top:none!important;}#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu{border-bottom:#aaa 1px solid;}#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,#adminmenu li.current a.menu-top{background:#e0e0e0 url(../images/menu-bits.gif?ver=20100610) top left repeat-x;border:#aaa 1px solid;color:#000;}#adminmenu li.wp-has-current-submenu .wp-submenu,#adminmenu li.wp-has-current-submenu ul li a{border-right-color:#aaa!important;border-left-color:#aaa!important;}#adminmenu li.wp-has-current-submenu ul li a{background:url(../images/menu-dark.gif) bottom left no-repeat!important;}#adminmenu li.wp-has-current-submenu ul{border-bottom-color:#aaa;}#adminmenu .wp-submenu .current a.current{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll 0 -289px;}#adminmenu .wp-submenu a:hover{background-color:#EAF2FA!important;color:#333!important;}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover{color:#333;background-color:#f5f5f5;background-image:none;border-color:#e3e3e3;}#adminmenu .wp-submenu ul{background-color:#fff;}.folded #adminmenu li.menu-top,#adminmenu .wp-submenu .wp-submenu-head{background-color:#F1F1F1;}.folded #adminmenu li.wp-has-current-submenu,.folded #adminmenu li.menu-top.current{background-color:#e6e6e6;}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head{background-color:#EAEAEA;border-color:#aaa;}#adminmenu div.wp-submenu{background-color:transparent;}#adminmenu .menu-icon-dashboard div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -61px -33px;}#adminmenu .menu-icon-dashboard:hover div.wp-menu-image,#adminmenu .menu-icon-dashboard.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-dashboard.current div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -61px -1px;}#adminmenu .menu-icon-post div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -272px -33px;}#adminmenu .menu-icon-post:hover div.wp-menu-image,#adminmenu .menu-icon-post.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -272px -1px;}#adminmenu .menu-icon-media div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -121px -33px;}#adminmenu .menu-icon-media:hover div.wp-menu-image,#adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -121px -1px;}#adminmenu .menu-icon-links div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -91px -33px;}#adminmenu .menu-icon-links:hover div.wp-menu-image,#adminmenu .menu-icon-links.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -91px -1px;}#adminmenu .menu-icon-page div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -151px -33px;}#adminmenu .menu-icon-page:hover div.wp-menu-image,#adminmenu .menu-icon-page.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -151px -1px;}#adminmenu .menu-icon-comments div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -31px -33px;}#adminmenu .menu-icon-comments:hover div.wp-menu-image,#adminmenu .menu-icon-comments.wp-has-current-submenu div.wp-menu-image,#adminmenu .menu-icon-comments.current div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -31px -1px;}#adminmenu .menu-icon-appearance div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -1px -33px;}#adminmenu .menu-icon-appearance:hover div.wp-menu-image,#adminmenu .menu-icon-appearance.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -1px -1px;}#adminmenu .menu-icon-plugins div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -181px -33px;}#adminmenu .menu-icon-plugins:hover div.wp-menu-image,#adminmenu .menu-icon-plugins.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -181px -1px;}#adminmenu .menu-icon-users div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -301px -33px;}#adminmenu .menu-icon-users:hover div.wp-menu-image,#adminmenu .menu-icon-users.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -301px -1px;}#adminmenu .menu-icon-tools div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -211px -33px;}#adminmenu .menu-icon-tools:hover div.wp-menu-image,#adminmenu .menu-icon-tools.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -211px -1px;}#adminmenu .menu-icon-settings div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -241px -33px;}#adminmenu .menu-icon-settings:hover div.wp-menu-image,#adminmenu .menu-icon-settings.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -241px -1px;}#adminmenu .menu-icon-site div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -361px -33px;}#adminmenu .menu-icon-site:hover div.wp-menu-image,#adminmenu .menu-icon-site.wp-has-current-submenu div.wp-menu-image{background:transparent url('../images/menu.png?ver=20100531') no-repeat scroll -361px -1px;}table.diff .diff-deletedline{background-color:#fdd;}table.diff .diff-deletedline del{background-color:#f99;}table.diff .diff-addedline{background-color:#dfd;}table.diff .diff-addedline ins{background-color:#9f9;}#att-info{background-color:#E4F2FD;}#sidemenu a{background-color:#f9f9f9;border-color:#f9f9f9;border-bottom-color:#dfdfdf;}#sidemenu a.current{background-color:#fff;border-color:#dfdfdf #dfdfdf #fff;color:#D54E21;}#screen-options-wrap,#contextual-help-wrap{background-color:#f1f1f1;border-color:#dfdfdf;}#screen-meta-links a.show-settings{color:#606060;}#screen-meta-links a.show-settings:hover{color:#000;}#replysubmit{background-color:#f1f1f1;border-top-color:#ddd;}#replyerror{border-color:#ddd;background-color:#f9f9f9;}#edithead,#replyhead{background-color:#f1f1f1;}#ed_reply_toolbar{background-color:#e9e9e9;}.vim-current,.vim-current th,.vim-current td{background-color:#E4F2FD!important;}.star-average,.star.star-rating{background-color:#fc0;}div.star.select:hover{background-color:#d00;}#plugin-information .fyi ul{background-color:#eaf3fa;}#plugin-information .fyi h2.mainheader{background-color:#cee1ef;}#plugin-information pre,#plugin-information code{background-color:#ededff;}#plugin-information pre{border:1px solid #ccc;}.inline-edit-row fieldset input[type=&quot;text&quot;],.inline-edit-row fieldset textarea,#bulk-titles,#replyrow input{border-color:#ddd;}.inline-editor div.title{background-color:#EAF3FA;}.inline-editor ul.cat-checklist{background-color:#fff;border-color:#ddd;}.inline-editor .categories .catshow,.inline-editor .categories .cathide{color:#21759b;}.inline-editor .quick-edit-save{background-color:#f1f1f1;}#replyrow #ed_reply_toolbar input:hover{border-color:#aaa;background:#ddd;}fieldset.inline-edit-col-right .inline-edit-col{border-color:#dfdfdf;}.attention{color:#D54E21;}.meta-box-sortables .postbox:hover .handlediv{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -111px;}#major-publishing-actions{background:#eaf2fa;}.tablenav .tablenav-pages{color:#555;}.tablenav .tablenav-pages a{border-color:#e3e3e3;background:#eee url('../images/menu-bits.gif?ver=20100610') repeat-x scroll left -379px;}.tablenav .tablenav-pages a:hover{color:#d54e21;border-color:#d54321;}.tablenav .tablenav-pages a:active{color:#fff!important;}.tablenav .tablenav-pages .current{background:#dfdfdf;border-color:#d3d3d3;}#availablethemes,#availablethemes td{border-color:#ddd;}#current-theme img{border-color:#999;}#TB_window #TB_title a.tb-theme-preview-link,#TB_window #TB_title a.tb-theme-preview-link:visited{color:#999;}#TB_window #TB_title a.tb-theme-preview-link:hover,#TB_window #TB_title a.tb-theme-preview-link:focus{color:#ccc;}.misc-pub-section{border-bottom-color:#eee;}#minor-publishing{border-bottom-color:#ddd;}#post-body .misc-pub-section{border-right-color:#eee;}.post-com-count span{background-color:#bbb;}.form-table .color-palette td{border-color:#fff;}.sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;}#post-body ul.category-tabs li.tabs a,#post-body ul.add-menu-item-tabs li.tabs a{color:#333;}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{border-color:#999;background-color:#eee;}#wp_editimgbtn:hover,#wp_delimgbtn:hover,#wp_editgallery:hover,#wp_delgallery:hover{border-color:#555;background-color:#ccc;}#favorite-first{border-color:#c0c0c0;background:#f1f1f1;background:-moz-linear-gradient(bottom,#e7e7e7,#fff);background:-webkit-gradient(linear,left bottom,left top,from(#e7e7e7),to(#fff));}#favorite-inside{border-color:#c0c0c0;background-color:#fff;}#favorite-toggle{background:transparent url(../images/fav-arrow.gif?ver=20100531) no-repeat 0 -4px;}#favorite-actions a{color:#464646;}#favorite-actions a:hover{color:#000;}#favorite-inside a:hover{text-decoration:underline;}#screen-meta a.show-settings{background-color:transparent;text-shadow:rgba(255,255,255,0.7) 0 1px 0;}#icon-edit,#icon-post{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -552px -5px;}#icon-index{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -137px -5px;}#icon-upload{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -251px -5px;}#icon-link-manager,#icon-link,#icon-link-category{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -190px -5px;}#icon-edit-pages,#icon-page{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -312px -5px;}#icon-edit-comments{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -72px -5px;}#icon-themes{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -11px -5px;}#icon-plugins{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -370px -5px;}#icon-users,#icon-profile,#icon-user-edit{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -600px -5px;}#icon-tools,#icon-admin{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -432px -5px;}#icon-options-general{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -492px -5px;}#icon-ms-admin{background:transparent url(../images/icons32.png?ver=20100531) no-repeat -659px -5px;}.view-switch #view-switch-list{background:transparent url(../images/list.png) no-repeat 0 0;}.view-switch .current #view-switch-list{background:transparent url(../images/list.png) no-repeat -40px 0;}.view-switch #view-switch-excerpt{background:transparent url(../images/list.png) no-repeat -20px 0;}.view-switch .current #view-switch-excerpt{background:transparent url(../images/list.png) no-repeat -60px 0;}#header-logo{background:transparent url(../images/wp-logo.png?ver=20100531) no-repeat scroll center center;}.popular-tags,.feature-filter{background-color:#fff;border-color:#DFDFDF;}#theme-information .action-button{border-top-color:#DFDFDF;}.theme-listing br.line{border-bottom-color:#ccc;}div.widgets-sortables,#widgets-left .inactive{background-color:#f1f1f1;border-color:#ddd;}#available-widgets .widget-holder{background-color:#fff;border-color:#ddd;}#widgets-left .sidebar-name{background-color:#aaa;background-image:url(../images/ed-bg.gif);text-shadow:#fff 0 1px 0;border-color:#dfdfdf;}#widgets-right .sidebar-name{background-image:url(../images/fav.png);text-shadow:#3f3f3f 0 -1px 0;background-color:#636363;border-color:#636363;color:#fff;}.sidebar-name:hover,#removing-widget{color:#d54e21;}#removing-widget span{color:black;}#widgets-left .sidebar-name-arrow{background:transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -109px;}#widgets-right .sidebar-name-arrow{background:transparent url(../images/widgets-arrow.gif?ver=20100531) no-repeat scroll 0 -1px;}.in-widget-title{color:#606060;}.deleting .widget-title *{color:#aaa;}.imgedit-menu div{border-color:#d5d5d5;background-color:#f1f1f1;}.imgedit-menu div:hover{border-color:#c1c1c1;background-color:#eaeaea;}.imgedit-menu div.disabled{border-color:#ccc;background-color:#ddd;filter:alpha(opacity=50);opacity:.5;}#dashboard_recent_comments div.undo{border-top-color:#dfdfdf;}.comment-ays,.comment-ays th{border-color:#ddd;}.comment-ays th{background-color:#f1f1f1;}#nav-menu-header,.menu-item-handle{background:url(&quot;../images/gray-grad.png&quot;) repeat-x scroll left top #dfdfdf;}#menu-management .nav-tab-active{background:#ececec;border-bottom-color:#ececec;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincsscolorsfreshdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-fresh.dev.css (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-fresh.dev.css        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/css/colors-fresh.dev.css        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1575,7 +1575,7 @@
</span><span class="cx">         background: transparent url(../images/list.png) no-repeat 0 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.view-switch #view-switch-list.current {
</del><ins>+.view-switch .current #view-switch-list {
</ins><span class="cx">         background: transparent url(../images/list.png) no-repeat -40px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1583,7 +1583,7 @@
</span><span class="cx">         background: transparent url(../images/list.png) no-repeat -20px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.view-switch #view-switch-excerpt.current {
</del><ins>+.view-switch .current #view-switch-excerpt {
</ins><span class="cx">         background: transparent url(../images/list.png) no-repeat -60px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1693,4 +1693,4 @@
</span><span class="cx"> #menu-management .nav-tab-active {
</span><span class="cx">         background: #ececec;
</span><span class="cx">         border-bottom-color: #ececec;
</span><del>-}
</del><span class="cx">\ No newline at end of file
</span><ins>+}
</ins></span></pre></div>
<a id="trunkwpadmincsswpadmincss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin.css (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin.css        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/css/wp-admin.css        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1 +1 @@
</span><del>-textarea,input[type=&quot;text&quot;],input[type=&quot;password&quot;],input[type=&quot;file&quot;],input[type=&quot;button&quot;],input[type=&quot;submit&quot;],input[type=&quot;reset&quot;],select{border-width:1px;border-style:solid;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}p,ul,ol,blockquote,input,select{font-size:12px;}select option{padding:2px;}.plugins .name,#pass-strength-result.strong,#pass-strength-result.short,.button-highlighted,input.button-highlighted,#quicktags #ed_strong,#ed_reply_toolbar #ed_reply_strong{font-weight:bold;}.plugins p{margin:0 4px;padding:0;}.plugins .desc p{margin:0 0 8px;}.plugins td.desc{line-height:1.5em;}.plugins .desc ul,.plugins .desc ol{margin:0 0 0 2em;}.plugins .desc ul{list-style-type:disc;}.plugins .action-links{white-space:nowrap;}.plugins .row-actions-visible{padding:0;}.widefat tbody.plugins th.check-column{padding:7px 0;}.widefat .plugins td,.widefat .plugins th{border-bottom:0 none;}#install-plugins .plugins td,#install-plugins .plugins th{border-bottom-style:solid;border-bottom-width:1px;}.plugins .inactive td,.plugins .inactive th,.plugins .active td,.plugins .active th{border-top-style:solid;border-top-width:1px;padding:5px 7px 0;}#wpbody-content .plugins .plugin-title{padding-right:12px;}.plugins .second td,.plugins .second th{border-top:0 none;padding:0 7px 5px;}.plugins-php .widefat tfoot th,.plugins-php .widefat tfoot td{border-top-style:solid;border-top-width:1px;}.import-system{font-size:16px;}.anchors{margin:10px 20px 10px 20px;}table#availablethemes{border-spacing:0;border-width:1px 0;border-style:solid none;margin:10px auto;width:100%;}td.available-theme{vertical-align:top;width:240px;margin:0;padding:20px;text-align:left;}table#availablethemes td{border-width:0 1px 1px;border-style:none solid solid;}table#availablethemes td.right,table#availablethemes td.left{border-right:0 none;border-left:0 none;}table#availablethemes td.bottom{border-bottom:0 none;}.available-theme a.screenshot{width:240px;height:180px;display:block;border-width:1px;border-style:solid;margin-bottom:10px;overflow:hidden;}.available-theme img{width:240px;}.available-theme h3{margin:15px 0 5px;}#current-theme{margin:1em 0 1.5em;}#current-theme a{border-bottom:none;}#current-theme h3{font-size:17px;font-weight:normal;margin:0;}#current-theme .theme-description{margin-top:5px;}#current-theme img{float:left;border-width:1px;border-style:solid;margin-right:1em;margin-bottom:1.5em;width:150px;}#TB_window #TB_title a.tb-theme-preview-link,#TB_window #TB_title a.tb-theme-preview-link:visited{font-weight:bold;text-decoration:none;}#TB_window #TB_title{background-color:#222;color:#cfcfcf;}.checkbox{border:none;margin:0;padding:0;}.code,code{font-family:Consolas,Monaco,Courier,monospace;}kbd,code{padding:1px 3px;margin:0 1px;font-size:11px;}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom-width:1px;border-bottom-style:solid;}.commentlist li li{border-bottom:0;padding:0;}.commentlist p{padding:0;margin:0 0 .8em;}.post-categories{display:inline;margin:0;padding:0;}.post-categories li{display:inline;}.quicktags,.search{font:12px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}.submit{padding:1.5em 0;margin:5px 0;-moz-border-radius:0 0 3px 3px;-webkit-border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;-khtml-border-bottom-left-radius:3px;-khtml-border-bottom-right-radius:3px;border-bottom-left-radius:3px;border-bottom-right-radius:3px;}form p.submit a.cancel:hover{text-decoration:none;}#submitdiv h3{margin-bottom:0!important;}#misc-publishing-actions{padding:6px 0 16px 0;}.misc-pub-section{padding:6px;border-bottom-width:1px;border-bottom-style:solid;}.misc-pub-section-last{border-bottom:0 none;}#minor-publishing-actions{padding:6px;text-align:right;}#minor-publishing{border-bottom-width:1px;border-bottom-style:solid;}#save-post{float:left;}.preview{float:right;}#major-publishing-actions{padding:6px;clear:both;border-top:none;}#minor-publishing-actions input,#major-publishing-actions input,#minor-publishing-actions .preview{min-width:80px;text-align:center;}#delete-action{line-height:25px;vertical-align:middle;text-align:left;float:left;}#publishing-action{text-align:right;float:right;line-height:23px;}#post-body #minor-publishing{padding-bottom:10px;}#post-body #misc-publishing-actions{padding:0;}#post-body .misc-pub-section{border-right-width:1px;border-right-style:solid;border-bottom:0 none;min-height:30px;float:left;max-width:32%;}#post-body .misc-pub-section-last{border-right:0;}#sticky-span{margin-left:18px;}#post-status-display,#post-visibility-display{font-weight:bold;}.side-info{margin:0;padding:4px;font-size:11px;}.side-info h5{padding-bottom:7px;font-size:14px;margin:12px 2px 5px;border-bottom-width:1px;border-bottom-style:solid;}.side-info ul{margin:0;padding-left:18px;list-style:square;}.submit input,.button,input.button,.button-primary,input.button-primary,.button-secondary,input.button-secondary,.button-highlighted,input.button-highlighted,#postcustomstuff .submit input{text-decoration:none;font-size:11px!important;line-height:13px;padding:3px 8px;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;}a.button,a.button-primary,a.button-secondary{line-height:15px;padding:3px 10px;white-space:nowrap;-webkit-border-radius:10px;}#doaction,#doaction2,#post-query-submit{margin-right:8px;}.tablenav select[name=&quot;action&quot;],.tablenav select[name=&quot;action2&quot;]{width:130px;}.tablenav select[name=&quot;m&quot;]{width:155px;}.tablenav select#cat{width:170px;}#wpcontent select{padding:2px;height:2em;font-size:11px;}#wpcontent option{padding:2px;}#timezone_string option{margin-left:1em;}.approve{display:none;}.unapproved .approve,.spam .approve,.trash .approve{display:inline;}.unapproved .unapprove{display:none;}.narrow{width:70%;margin-bottom:40px;}.narrow p{line-height:150%;}textarea.all-options,input.all-options{width:250px;}#namediv table{width:100%;}#namediv td.first{width:10px;white-space:nowrap;}#namediv input{width:98%;}#namediv p{margin:10px 0;}#wpbody-content .metabox-holder{padding-top:10px;}#content{margin:0;width:100%;}#editorcontainer #content{padding:6px;line-height:150%;border:0 none;outline:none;resize:vertical;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-khtml-box-sizing:border-box;box-sizing:border-box;}#editorcontainer,#quicktags{border-style:solid;border-width:1px;border-collapse:separate;-moz-border-radius:6px 6px 0 0;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}#quicktags{padding:0;margin-bottom:-3px;border-bottom-width:3px;background-image:url(&quot;../images/ed-bg.gif&quot;);background-position:left top;background-repeat:repeat-x;}#quicktags #ed_toolbar{padding:2px 4px 0;}#ed_toolbar input,#ed_reply_toolbar input{margin:3px 1px 4px;line-height:18px;display:inline-block;min-width:26px;padding:2px 4px;font-size:12px;}#ed_reply_toolbar input{margin:1px 2px 1px 1px;}#quicktags #ed_link,#ed_reply_toolbar #ed_reply_link{text-decoration:underline;}#quicktags #ed_del,#ed_reply_toolbar #ed_reply_del{text-decoration:line-through;}#quicktags #ed_em,#ed_reply_toolbar #ed_reply_em{font-style:italic;}#excerpt,.attachmentlinks{margin:0;height:4em;width:98%;}#postcustomstuff table,#postcustomstuff input,#postcustomstuff textarea{border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}#postcustomstuff .updatemeta,#postcustomstuff .deletemeta{margin:auto;}#postcustomstuff thead th{padding:5px 8px 8px;}#postcustom #postcustomstuff .submit{border:0 none;float:none;padding:5px 8px;}#side-sortables #postcustom #postcustomstuff .submit{padding:0 5px;}#side-sortables #postcustom #postcustomstuff td.left input{margin:3px 3px 0;}#side-sortables #postcustom #postcustomstuff #the-list textarea{height:85px;margin:3px;}#postcustomstuff table{margin:0;width:100%;border-width:1px;border-style:solid;border-spacing:0;}#postcustomstuff table input,#postcustomstuff table select,#postcustomstuff table textarea{width:95%;margin:8px 0 8px 8px;}#postcustomstuff th.left,#postcustomstuff td.left{width:38%;}#postcustomstuff .submit input{width:auto;}#postcustomstuff #newmeta .submit{padding:0 8px;}#postcustomstuff table #addmetasub{width:auto;}#postcustomstuff #newmetaleft{vertical-align:top;}#postcustomstuff #newmetaleft a{padding:0 10px;text-decoration:none;}#save{width:15em;}#template div{margin-right:190px;}* html #template div{margin-right:0;}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute;}* html #themeselect{padding:0 3px;height:22px;}#your-profile legend{font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-size:22px;}#your-profile #rich_editing{border:none;}#howto{font-size:11px;margin:0 5px;display:block;}#ajax-response.alignleft{margin-left:2em;}div.nav{height:2em;padding:7px 10px;vertical-align:text-top;margin:5px 0;}.nav .button-secondary{padding:2px 4px;}a.page-numbers{border-bottom-style:solid;border-bottom-width:2px;font-weight:bold;margin-right:1px;padding:0 2px;}p.pagenav{margin:0;display:inline;}.pagenav span{font-weight:bold;margin:0 6px;}.row-title{font-size:12px!important;font-weight:bold;}.widefat .column-comment p{margin:.6em 0;}.column-author img,.column-username img{float:left;margin-right:10px;margin-top:3px;}.tablenav a.button-secondary{display:block;margin:3px 8px 0 0;}.tablenav{clear:both;height:30px;margin:6px 0 4px;vertical-align:middle;}.tablenav .tablenav-pages{float:right;display:block;cursor:default;height:30px;line-height:30px;font-size:11px;}.tablenav .tablenav-pages a,.tablenav-pages span.current{text-decoration:none;border:none;padding:3px 6px;border-width:1px;border-style:solid;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.tablenav .displaying-num{margin-right:10px;font-size:12px;font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-style:italic;}.tablenav .actions{padding:2px 8px 0 0;}td.media-icon{text-align:center;width:80px;padding-top:8px;padding-bottom:8px;}td.media-icon img{max-width:80px;max-height:60px;}#update-nag,.update-nag{line-height:19px;padding:5px 0;font-size:12px;text-align:center;margin:0 15px;border-width:1px;border-style:solid;border-top-width:0;border-top-style:none;-moz-border-radius:0 0 6px 6px;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;}.plugins .plugin-update{padding:0;}.plugin-update .update-message{margin:0 10px 8px 31px;font-weight:bold;}#pass-strength-result{border-style:solid;border-width:1px;float:left;margin:12px 5px 5px 1px;padding:3px 5px;text-align:center;width:200px;}.row-actions{visibility:hidden;padding:2px 0 0;}tr:hover .row-actions,div.comment-item:hover .row-actions{visibility:visible;}.row-actions-visible{padding:2px 0 0;}#wphead-info{margin:0 0 0 15px;padding-right:15px;}#user_info{float:right;font-size:12px;line-height:46px;height:46px;}#user_info p{margin:0;padding:0;line-height:46px;}#wphead{height:46px;}#wphead a,#adminmenu a,#sidemenu a,#taglist a,#catlist a,#show-settings a{text-decoration:none;}#header-logo{float:left;margin:7px 0 0 15px;}#wphead h1{font:normal 22px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;padding:10px 8px 5px;margin:0;float:left;}#wphead h1.long-title{font:normal 18px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;padding:12px 10px 5px;}#wphead #privacy-on-link{font-size:50%;font-style:normal;line-height:17px;padding:0 6px;vertical-align:middle;}#wphead h1 a:hover{text-decoration:none;}#wphead h1 a:hover #site-title,#wphead h1 a#privacy-on-link:hover{text-decoration:underline;}#adminmenu *{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;user-select:none;}#adminmenu .wp-submenu{display:none;list-style:none;padding:0;margin:0;position:relative;z-index:2;border-width:1px 0 0;border-style:solid none none;}#adminmenu .wp-submenu a{font:normal 11px/18px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover{font-weight:bold;}#adminmenu a.menu-top,#adminmenu .wp-submenu-head{font:normal 13px/18px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}#adminmenu div.wp-submenu-head{display:none;}.folded #adminmenu div.wp-submenu-head,.folded #adminmenu li.wp-has-submenu div.sub-open{display:block;}.folded #adminmenu a.menu-top,.folded #adminmenu .wp-submenu,.folded #adminmenu li.wp-menu-open .wp-submenu,.folded #adminmenu div.wp-menu-toggle{display:none;}#adminmenu li.wp-menu-open .wp-submenu,.no-js #adminmenu .open-if-no-js .wp-submenu{display:block;}#adminmenu div.wp-menu-image{float:left;width:28px;height:28px;}#adminmenu li{margin:0;padding:0;cursor:pointer;}#adminmenu a{display:block;line-height:18px;padding:1px 5px 3px;}#adminmenu li.menu-top{min-height:26px;}#adminmenu a.menu-top{line-height:18px;min-width:10em;padding:5px 5px;border-width:1px 1px 0;border-style:solid solid none;}#adminmenu .wp-submenu a{margin:0;padding-left:12px;border-width:0 1px 0 0;border-style:none solid none none;}#adminmenu .menu-top-last ul.wp-submenu{border-width:0 0 1px;border-style:none none solid;}#adminmenu .wp-submenu li{padding:0;margin:0;}.folded #adminmenu li.menu-top{width:28px;height:30px;overflow:hidden;border-width:1px 1px 0;border-style:solid solid none;}#adminmenu .menu-top-first a.menu-top,.folded #adminmenu li.menu-top-first,#adminmenu .wp-submenu .wp-submenu-head{border-width:1px 1px 0;border-style:solid solid none;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}#adminmenu .menu-top-last a.menu-top,.folded #adminmenu li.menu-top-last{border-width:1px;border-style:solid;-moz-border-radius-bottomleft:6px;-moz-border-radius-bottomright:6px;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;}#adminmenu li.wp-menu-open a.menu-top-last{border-bottom:0 none;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}#adminmenu .wp-menu-image img{float:left;padding:8px 6px 0;opacity:.6;filter:alpha(opacity=60);}#adminmenu li.menu-top:hover .wp-menu-image img,#adminmenu li.wp-has-current-submenu .wp-menu-image img{opacity:1;filter:alpha(opacity=100);}#adminmenu li.wp-menu-separator{height:21px;padding:0;margin:0;}#adminmenu a.separator{cursor:w-resize;height:20px;padding:0;}.folded #adminmenu a.separator{cursor:e-resize;}#adminmenu .wp-menu-separator-last{height:10px;width:1px;}#adminmenu .wp-submenu .wp-submenu-head{border-width:1px;border-style:solid;padding:6px 4px 6px 10px;cursor:default;}.folded #adminmenu .wp-submenu{position:absolute;margin:-1px 0 0 28px;padding:0 8px 8px;z-index:999;border:0 none;}.folded #adminmenu .wp-submenu ul{width:140px;border-width:0 0 1px;border-style:none none solid;}.folded #adminmenu .wp-submenu li.wp-first-item{border-top:0 none;}.folded #adminmenu .wp-submenu a{padding-left:10px;}.folded #adminmenu a.wp-has-submenu{margin-left:40px;}#adminmenu li.menu-top-last .wp-submenu ul{border-width:0 0 1px;border-style:none none solid;}#adminmenu .wp-menu-toggle{width:22px;clear:right;float:right;margin:1px 0 0;height:27px;padding:1px 2px 0 0;cursor:default;}#adminmenu li.wp-has-current-submenu ul{border-bottom-width:1px;border-bottom-style:solid;}#adminmenu .wp-menu-image a{height:24px;}#adminmenu .wp-menu-image img{padding:6px 0 0 1px;}#adminmenu #awaiting-mod,#adminmenu span.update-plugins,#sidemenu li a span.update-plugins{position:absolute;font-family:Helvetica,Arial,sans-serif;font-size:9px;line-height:17px;font-weight:bold;margin-top:1px;margin-left:7px;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;}#adminmenu li #awaiting-mod span,#adminmenu li span.update-plugins span,#sidemenu li a span.update-plugins span{display:block;padding:0 6px;}#adminmenu li span.count-0,#sidemenu li a .count-0{display:none;}.post-com-count-wrapper{min-width:22px;font-family:Helvetica,Arial,sans-serif;}.post-com-count{height:1.3em;line-height:1.1em;display:block;text-decoration:none;padding:0 0 6px;cursor:pointer;background-position:center -80px;background-repeat:no-repeat;}.post-com-count span{font-size:9px;font-weight:bold;height:1.7em;line-height:1.70em;min-width:.7em;padding:0 6px;display:inline-block;cursor:pointer;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}strong .post-com-count{background-position:center -55px;}.post-com-count:hover{background-position:center -3px;}.column-response .post-com-count{float:left;margin-right:5px;text-align:center;}.response-links{float:left;}#the-comment-list .attachment-80x60{padding:4px 8px;}#footer{margin-top:-46px;border-top:1px;border-style:solid;}#footer,#footer a{font-size:12px;font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-style:italic;}#footer p{margin:0;padding:15px;line-height:15px;}#footer a{text-decoration:none;}#footer a:hover{text-decoration:underline;}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;margin-bottom:-8px;clear:both;}.form-table td{margin-bottom:9px;padding:8px 10px;line-height:20px;font-size:11px;}.form-table th,.form-wrap label{font-weight:normal;text-shadow:rgba(255,255,255,1) 0 1px 0;}.form-table th{vertical-align:top;text-align:left;padding:10px;width:200px;}.form-table th.th-full{width:auto;}.form-table div.color-option{display:block;clear:both;margin-top:12px;}.form-table input.tog{margin-top:2px;margin-right:2px;float:left;}.form-table table.color-palette{vertical-align:bottom;float:left;margin:-12px 3px 11px;}.form-table .color-palette td{border-width:1px 1px 0;border-style:solid solid none;height:10px;line-height:20px;width:10px;}input.large-text,textarea.large-text{width:99%;}.form-table input.regular-text,#adduser .form-field input{width:25em;}.form-table input.small-text{width:50px;}#profile-page .form-table textarea{width:500px;margin-bottom:6px;}#profile-page .form-table #rich_editing{margin-right:5px;}.form-table .pre{padding:8px;margin:0;}.pre{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}table.form-table td .updated{font-size:13px;}.form-wrap{margin:10px 0;width:97%;}.form-wrap p,.form-wrap label{font-size:11px;}.form-wrap label{display:block;padding:2px;font-size:12px;}.form-field input,.form-field textarea{border-style:solid;border-width:1px;width:95%;}p.description,.form-wrap p{margin:2px 0 5px;}p.help,p.description,span.description,.form-wrap p{font-size:12px;font-style:italic;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}.form-wrap .form-field{margin:0 0 10px;padding:8px;}.col-wrap h3{margin:12px 0;font-size:1.1em;}.col-wrap p.submit{margin-top:-10px;}.tagcloud{width:97%;margin:0 0 40px;text-align:justify;}.tagcloud h3{margin:2px 0 12px;}#post-body #normal-sortables{min-height:50px;}#post-body #advanced-sortables{min-height:20px;}.postbox{position:relative;min-width:255px;width:99.5%;}#trackback_url{width:99%;}#normal-sortables .postbox .submit{background:transparent none;border:0 none;float:right;padding:0 12px;margin:0;}#normal-sortables .postbox #replyrow .submit{float:none;margin:0;padding:3px 7px;}#side-sortables .submitbox .submit input,#side-sortables .submitbox .submit .preview,#side-sortables .submitbox .submit a.preview:hover{border:0 none;}#side-sortables .inside-submitbox .insidebox,.stuffbox .insidebox{margin:11px 0;}#side-sortables .comments-box,#normal-sortables .comments-box{border:0 none;}#side-sortables .comments-box thead th,#normal-sortables .comments-box thead th{background:transparent;padding:0 7px 4px;font-style:italic;}#commentsdiv img.waiting{padding-left:5px;vertical-align:middle;}#post-body .tagsdiv #newtag{margin-right:5px;width:16em;}#side-sortables input#post_password{width:94%;}#side-sortables .tagsdiv #newtag{width:68%;}#post-status-info{border-width:0 1px 1px;border-style:none solid solid;width:100%;-moz-border-radius:0 0 6px 6px;-webkit-border-bottom-left-radius:6px;-webkit-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;}#post-status-info td{font-size:11px;}.autosave-info{padding:2px 15px 2px 2px;text-align:right;}#editorcontent #post-status-info{border:none;}#post-body .wp_themeSkin .mceStatusbar a.mceResize{display:block;background:transparent url(../images/resize.gif) no-repeat scroll right bottom;width:12px;cursor:se-resize;margin:0 2px;position:relative;top:22px;}#linksubmitdiv div.inside,div.inside{padding:0;margin:0;}#comment-status-radio p{margin:3px 0 5px;}#comment-status-radio input{margin:2px 3px 5px 0;vertical-align:middle;}#comment-status-radio label{padding:5px 0;}.tagchecklist{margin-left:14px;font-size:12px;overflow:auto;}.tagchecklist strong{margin-left:-8px;position:absolute;}.tagchecklist span{margin-right:25px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;}.tagchecklist span a{margin:6px 0 0 -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;}.howto{font-style:italic;display:block;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;}.ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;}.ac_over{cursor:pointer;}.ac_match{text-decoration:underline;}#poststuff h2{margin-top:20px;font-size:1.5em;margin-bottom:15px;padding:0 0 3px;clear:left;}.widget .widget-top,.postbox h3{cursor:move;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;user-select:none;}.postbox .hndle span{padding:6px 0;}.postbox .hndle{cursor:move;}.hndle a{font-size:11px;font-weight:normal;}#dashboard-widgets .meta-box-sortables{margin:0 5px;}.postbox .handlediv{float:right;width:23px;height:26px;}.sortable-placeholder{border-width:1px;border-style:dashed;margin-bottom:20px;}#poststuff h3,.metabox-holder h3{font-size:12px;font-weight:bold;padding:7px 9px;margin:0;line-height:1;}.widget,.postbox,.stuffbox{margin-bottom:20px;border-width:1px;border-style:solid;line-height:1;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.widget .widget-top,.postbox h3,.postbox h3,.stuffbox h3{-moz-border-radius:6px 6px 0 0;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}.postbox.closed h3{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px;}.postbox table.form-table{margin-bottom:0;}.postbox input[type=&quot;text&quot;],.postbox textarea,.stuffbox input[type=&quot;text&quot;],.stuffbox textarea{border-width:1px;border-style:solid;}#poststuff .inside,#poststuff .inside p{font-size:11px;margin:6px 6px 8px;}#poststuff .inside .submitbox p{margin:1em 0;}#post-visibility-select{line-height:1.5em;margin-top:3px;}#poststuff #submitdiv .inside{margin:0;}#titlediv,#poststuff .postarea{margin-bottom:20px;}#titlediv{position:relative;margin-bottom:20px;}#titlediv label{cursor:text;}#titlediv div.inside{margin:0;}#poststuff #titlewrap{border:0;padding:0;}#titlediv #title{padding:3px 4px;border-width:1px;border-style:solid;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-size:1.7em;line-height:100%;width:100%;outline:none;}#titlediv #title-prompt-text{color:#bbb;position:absolute;font-size:1.7em;padding:8px;}#poststuff .inside-submitbox,#side-sortables .inside-submitbox{margin:0 3px;font-size:11px;}input#link_description,input#link_url{width:98%;}#pending{background:0 none;border:0 none;padding:0;font-size:11px;margin-top:-1px;}#edit-slug-box{height:1em;margin-top:8px;padding:0 7px;}#editable-post-name-full{display:none;}#editable-post-name input{width:16em;}.postarea h3 label{float:left;}.postarea #add-media-button{float:right;margin:7px 0 0;position:relative;right:10px;}#poststuff #editor-toolbar{height:30px;}.wp_themeSkin tr.mceFirst td.mceToolbar{border-width:0 0 1px;border-style:none none solid;}#edButtonPreview,#edButtonHTML{height:18px;margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;}.js .theEditor{color:white;}#poststuff #edButtonHTML{margin-right:15px;}#media-buttons{cursor:default;padding:8px 8px 0;}#media-buttons a{cursor:pointer;padding:0 0 5px 10px;}#media-buttons img,#submitpost #ajax-loading{vertical-align:middle;}.submitbox .submit{text-align:left;padding:12px 10px 10px;font-size:11px;}.submitbox .submitdelete{border-bottom-width:1px;border-bottom-style:solid;text-decoration:none;padding:1px 2px;}.inside-submitbox #post_status{margin:2px 0 2px -2px;}.submitbox .submit a:hover{border-bottom-width:1px;border-bottom-style:solid;}.submitbox .submit input{margin-bottom:8px;margin-right:4px;padding:6px;}#post-status-select{line-height:2.5em;margin-top:3px;}.category-adder{margin-left:120px;padding:4px 0;}.category-adder h4{margin:0 0 8px;}#side-sortables .category-adder{margin:0;}#post-body .category-add input,.category-add select{width:30%;}#side-sortables .category-add input{width:94%;}#side-sortables .category-add select{width:100%;}#side-sortables .category-add input.category-add-sumbit,#post-body .category-add input.category-add input.category-add-sumbit{width:auto;}#post-body ul.category-tabs,#post-body ul.add-menu-item-tabs{float:left;width:120px;text-align:right;margin:0 -120px 0 5px;padding:0;}#post-body ul.category-tabs li,#post-body ul.add-menu-item-tabs li{padding:8px;}#post-body ul.category-tabs li.tabs,#post-body ul.add-menu-item-tabs li.tabs{-moz-border-radius:3px 0 0 3px;-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-top-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-top-left-radius:3px;border-bottom-left-radius:3px;}#post-body ul.category-tabs li.tabs a,#post-body ul.add-menu-item-tabs li.tabs a{font-weight:bold;text-decoration:none;}.categorydiv div.tabs-panel,.customlinkdiv div.tabs-panel,.posttypediv div.tabs-panel,.taxonomydiv div.tabs-panel,#linkcategorydiv div.tabs-panel{height:200px;overflow:auto;padding:.5em .9em;border-style:solid;border-width:1px;}.nav-menus-php .customlinkdiv div.tabs-panel,.nav-menus-php .posttypediv div.tabs-panel,.nav-menus-php .taxonomydiv div.tabs-panel{height:auto;max-height:205px;}div.tabs-panel-active{display:block;}div.tabs-panel-inactive{display:none;}#post-body .categorydiv div.tabs-panel,.taxonomy div.tabs-panel,#post-body #linkcategorydiv div.tabs-panel{margin:0 5px 0 125px;}#side-sortables .category-tabs li,#side-sortables .add-menu-item-tabs li{display:inline;}#side-sortables .category-tabs a,#side-sortables .add-menu-item-tabs a{text-decoration:none;}#side-sortables .category-tabs,#side-sortables .add-menu-item-tabs{margin-bottom:3px;}.categorydiv ul,.customlinkdiv ul,.posttypediv ul,.taxonomydiv ul,#linkcategorydiv ul{list-style:none;padding:0;margin:0;}#front-page-warning,#front-static-pages ul,.inline-editor ul.cat-checklist ul,.categorydiv ul.categorychecklist ul,.customlinkdiv ul.categorychecklist ul,.posttypediv ul.categorychecklist ul,.taxonomydiv ul.categorychecklist ul,#linkcategorydiv ul.categorychecklist ul{margin-left:18px;}ul.categorychecklist li{margin:0;padding:0;line-height:19px;word-wrap:break-word;}.category-adder h4{margin-top:4px;margin-bottom:0;}.categorydiv .tabs-panel,.customlinkdiv .tabs-panel,.posttypediv .tabs-panel,.taxonomydiv .tabs-panel{border-width:3px;border-style:solid;}ul.category-tabs,ul.add-menu-item-tabs{margin-top:12px;}ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{border-style:solid solid none;border-width:1px 1px 0;}#post-body .category-tabs li.tabs,#post-body .add-menu-item-tabs li.tabs{border-style:solid none solid solid;border-width:1px 0 1px 1px;margin-right:-1px;}ul.category-tabs li,ul.add-menu-item-tabs li{padding:5px;-moz-border-radius:3px 3px 0 0;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;}form#tags-filter{position:relative;}p.search-box{float:right;margin:-5px 0 0;}.screen-per-page{width:3em;}#posts-filter fieldset{float:left;margin:0 1.5ex 1em 0;padding:0;}#posts-filter fieldset legend{padding:0 0 .2em 1px;}td.post-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;}td.post-title p,td.plugin-title p{margin:6px 0;}td.plugin-title{white-space:nowrap;}.wp-hidden-children .wp-hidden-child,.ui-tabs-hide{display:none;}.commentlist .avatar{vertical-align:text-top;}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle;}body.wp-admin{min-width:785px;}.view-switch{float:right;margin:6px 8px 0;}.view-switch a{text-decoration:none;}.filter{float:left;margin:-5px 0 0 10px;}.filter .subsubsub{margin-left:-10px;margin-top:13px;}#the-comment-list td.comment p.comment-author{margin-top:0;margin-left:0;}#the-comment-list p.comment-author img{float:left;margin-right:8px;}#the-comment-list p.comment-author strong a{border:none;}#the-comment-list td{vertical-align:top;}#the-comment-list td.comment{word-wrap:break-word;}#the-comment-list .check-column{padding-top:8px;}#templateside ul li a{text-decoration:none;}.indicator-hint{padding-top:8px;}#display_name{width:15em;}.tablenav .delete{margin-right:20px;}td.action-links,th.action-links{text-align:right;}table.diff{width:100%;}table.diff col.content{width:50%;}table.diff tr{background-color:transparent;}table.diff td,table.diff th{padding:.5em;font-family:Consolas,Monaco,Courier,monospace;border:none;}table.diff .diff-deletedline del,table.diff .diff-addedline ins{text-decoration:none;}#wp-word-count{display:block;padding:2px 7px;}fieldset{border:0;padding:0;margin:0;}.tool-box{margin:15px 0 35px;}.tool-box .buttons{margin:15px 0;}.tool-box .title{margin:8px 0;font:18px/24px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}.pressthis a{font-size:1.2em;}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:999998;}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{margin:2px;padding:2px;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.settings-toggle{text-align:right;margin:5px 7px 15px 0;font-size:12px;}.settings-toggle h3{margin:0;}#timestampdiv select{height:20px;line-height:14px;padding:0;vertical-align:top;}#jj,#hh,#mn{width:2em;padding:1px;font-size:12px;}#aa{width:3.4em;padding:1px;font-size:12px;}.curtime #timestamp{background-repeat:no-repeat;background-position:left top;padding-left:18px;}#timestampdiv{padding-top:5px;line-height:23px;}#timestampdiv p{margin:8px 0 6px;}#timestampdiv input{border-width:1px;border-style:solid;}#sidemenu{margin:-30px 15px 0 315px;list-style:none;position:relative;float:right;padding-left:10px;font-size:12px;}#sidemenu a{padding:0 7px;display:block;float:left;line-height:28px;border-top-width:1px;border-top-style:solid;border-bottom-width:1px;border-bottom-style:solid;}#sidemenu li{display:inline;line-height:200%;list-style:none;text-align:center;white-space:nowrap;margin:0;padding:0;}#sidemenu a.current{font-weight:normal;padding-left:6px;padding-right:6px;-moz-border-radius:4px 4px 0 0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-left-radius:4px;-khtml-border-top-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px;border-width:1px;border-style:solid;}#sidemenu{margin:-30px 15px 0 315px;list-style:none;position:relative;float:right;padding-left:10px;font-size:12px;}#sidemenu a{padding:0 7px;display:block;float:left;line-height:28px;border-top-width:1px;border-top-style:solid;border-bottom-width:1px;border-bottom-style:solid;}#sidemenu li a .count-0{display:none;}#replyrow{font-size:11px;}#replyrow input{border-width:1px;border-style:solid;}#replyrow td{padding:2px;}#replyrow #editorcontainer{border:0 none;}#replysubmit{margin:0;padding:3px 7px;}#replysubmit img.waiting,.inline-edit-save img.waiting{padding:4px 10px 0;vertical-align:top;float:right;}#replysubmit .button{margin-right:5px;}#replyrow #editor-toolbar{display:none;}#replyhead{font-size:12px;font-weight:bold;padding:2px 10px 4px;}#edithead .inside{float:left;padding:3px 0 2px 5px;margin:0;text-align:center;font-size:11px;}#edithead .inside input{width:180px;font-size:11px;}#edithead label{padding:2px 0;}#replycontainer{padding:5px;border:0 none;height:120px;overflow:hidden;position:relative;}#replycontent{resize:none;margin:0;width:100%;height:100%;padding:0;line-height:150%;border:0 none;outline:none;font-size:12px;}#replyrow #ed_reply_toolbar{margin:0;padding:2px 3px;}#screen-meta{position:relative;clear:both;}#screen-meta-links{margin:0 18px 0 0;}#screen-meta .screen-reader-text{visibility:hidden;}#screen-options-link-wrap,#contextual-help-link-wrap{float:right;height:22px;padding:0;margin:0 6px 0 0;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;background:#e3e3e3;-moz-border-radius-bottomleft:3px;-moz-border-radius-bottomright:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;}#contextual-help-wrap li{list-style-type:disc;margin-left:18px;}#screen-meta a.show-settings{text-decoration:none;z-index:1;padding:0 16px 0 6px;height:22px;line-height:22px;font-size:10px;display:block;background-repeat:no-repeat;background-position:right bottom;}#screen-meta a.show-settings{background-image:url(../images/screen-options-right.gif?ver=20100531);}#screen-meta a.show-settings:hover{text-decoration:none;}#screen-options-wrap h5,#contextual-help-wrap h5{margin:8px 0;font-size:13px;}#screen-options-wrap,#contextual-help-wrap{border-style:none solid solid;border-top:0 none;border-width:0 1px 1px;margin:0 15px;padding:8px 12px 12px;-moz-border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px;}.metabox-prefs label{padding-right:15px;white-space:nowrap;line-height:30px;}.metabox-prefs label input{margin:0 5px 0 2px;}.metabox-prefs label a{display:none;}tr.inline-edit-row td{padding:0 .5em;}#wpbody-content .inline-edit-row fieldset{font-size:12px;float:left;margin:0;padding:0;width:100%;}#wpbody-content .inline-edit-row fieldset .inline-edit-col{padding:0 .5em;}#wpbody-content .quick-edit-row-page fieldset.inline-edit-col-right .inline-edit-col{border-width:0 0 0 1px;border-style:none none none solid;}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%;}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%;}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%;}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%;}#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right{width:49%;}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%;}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%;}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:right;width:69%;}#wpbody-content .inline-edit-row-page .inline-edit-col-right,#owpbody-content .bulk-edit-row-post .inline-edit-col-right{margin-top:27px;}.inline-edit-row fieldset .inline-edit-group{clear:both;}.inline-edit-row fieldset .inline-edit-group:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden;}.inline-edit-row p.submit{clear:both;padding:.5em;margin:.5em 0 0;}.inline-edit-row span.error{line-height:22px;margin:0 15px;padding:3px 5px;}.inline-edit-row h4{margin:.2em 0;padding:0;line-height:23px;}.inline-edit-row fieldset span.title,.inline-edit-row fieldset span.checkbox-title{margin:0;padding:0;line-height:27px;}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0;}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;}.inline-edit-row fieldset label span.title{display:block;float:left;width:5em;}.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-left:5em;}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-right:.5em;}.inline-edit-row .input-text-wrap input[type=text]{width:100%;}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:text-bottom;}.inline-edit-row fieldset label textarea{width:100%;height:4em;}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%;}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-right:.5em;}.inline-edit-row h4{text-transform:uppercase;}.inline-edit-row fieldset span.title,.inline-edit-row fieldset span.checkbox-title{font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-style:italic;line-height:1.8em;}.inline-edit-row fieldset input[type=&quot;text&quot;],.inline-edit-row fieldset textarea{border-style:solid;border-width:1px;}.inline-edit-row fieldset .inline-edit-date{float:left;}.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=mn]{font-size:12px;width:2.1em;}.inline-edit-row fieldset input[name=aa]{font-size:12px;width:3.5em;}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em;}.inline-edit-row .catshow,.inline-edit-row .cathide{cursor:pointer;}ul.cat-checklist{height:12em;border-style:solid;border-width:1px;overflow-y:scroll;padding:0 5px;margin:0;}#bulk-titles{display:block;height:12em;border-style:solid;border-width:1px;overflow-y:scroll;padding:0 5px;margin:0 0 5px;}.inline-edit-row fieldset ul.cat-checklist li,.inline-edit-row fieldset ul.cat-checklist input{margin:0;}.inline-edit-row fieldset ul.cat-checklist label,.inline-edit-row .catshow,.inline-edit-row .cathide,.inline-edit-row #bulk-titles div{font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;font-style:normal;font-size:11px;}table .inline-edit-row fieldset ul.cat-hover{height:auto;max-height:30em;overflow-y:auto;position:absolute;}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em;}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%;}.quick-edit-row-post fieldset label.inline-edit-status{float:left;}#bulk-titles{line-height:140%;}#bulk-titles div{margin:.2em .3em;}#bulk-titles div a{cursor:pointer;display:block;float:left;height:10px;margin:3px 3px 0 -2px;overflow:hidden;position:relative;text-indent:-9999px;width:10px;}#wpbody-content #media-items .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default;padding:5px;}#wpbody-content .describe th{vertical-align:top;text-align:left;padding:10px;width:140px;}#wpbody-content .describe .media-item-info tr{background-color:transparent;}#wpbody-content .describe .media-item-info td{padding:4px 10px 0;}.describe .media-item-info .A1B1{padding:0 0 0 10px;}#wpbody-content .filename{padding:0 10px;}#wpbody-content .media-item .thumbnail{max-height:128px;max-width:128px;}#wpbody-content #async-upload-wrap a{display:none;}.media-upload-form td label{margin-right:6px;margin-left:2px;}.media-upload-form .align .field label{display:inline;padding:0 0 0 22px;margin:0 1em 0 0;font-weight:bold;}.media-upload-form tr.image-size label{margin:0 0 0 3px;font-weight:bold;}.media-upload-form th.label label{font-weight:bold;margin:.5em;font-size:13px;}.media-upload-form th.label label span{padding:0 5px;}abbr.required{border:medium none;text-decoration:none;}#wpbody-content .describe input[type=&quot;text&quot;],#wpbody-content .describe textarea{width:460px;}#wpbody-content .describe p.help{margin:0;padding:0 0 0 5px;}.media-item .error-div a.dismiss,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:20px;}.describe-toggle-off{display:none;}#wpbody-content .media-item{border-bottom-style:solid;border-bottom-width:1px;min-height:36px;position:relative;width:100%;}#wpbody-content .media-single .media-item{border-bottom-style:none;border-bottom-width:0;}#wpbody-content #media-items{border-style:solid solid none;border-width:1px;width:670px;}#wpbody-content #media-items .filename{line-height:36px;overflow:hidden;}.media-item .error-div{padding-left:10px;}.media-item .pinkynail{float:left;margin:2px;max-width:40px;max-height:32px;}.media-item .startopen,.media-item .startclosed{display:none;}.media-item .original{position:relative;height:34px;width:503px;}.media-item .percent{font-weight:bold;}.crunching{display:block;line-height:32px;text-align:right;margin-right:5px;}.progress{position:relative;margin-bottom:-36px;height:36px;}.bar{width:0;height:100%;border-right-width:3px;border-right-style:solid;}.upload-php .fixed .column-parent{width:25%;}.find-box{width:500px;height:300px;overflow:hidden;padding:33px 5px 40px;position:absolute;z-index:1000;}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%;}.find-box-inside{overflow:auto;width:100%;height:100%;}.find-box-search{padding:12px;border-width:1px;border-style:none none solid;}#find-posts-response{margin:8px 0;padding:0 1px;}#find-posts-response table{width:100%;}#find-posts-response .found-radio{padding:5px 0 0 8px;width:15px;}.find-box-buttons{width:480px;margin:8px;}.find-box-search label{padding-right:6px;}.find-box #resize-se{position:absolute;right:1px;bottom:1px;}#favorite-actions{float:right;margin:11px 12px 0;min-width:130px;position:relative;}#favorite-first{-moz-border-radius:12px;-khtml-border-radius:12px;-webkit-border-radius:12px;border-radius:12px;line-height:15px;padding:3px 30px 4px 12px;border-width:1px;border-style:solid;}#favorite-inside{margin:0;padding:2px 1px;border-width:1px;border-style:solid;position:absolute;z-index:11;display:none;-moz-border-radius:0 0 12px 12px;-webkit-border-bottom-right-radius:12px;-webkit-border-bottom-left-radius:12px;-khtml-border-bottom-right-radius:12px;-khtml-border-bottom-left-radius:12px;border-bottom-right-radius:12px;border-bottom-left-radius:12px;}#favorite-actions a{display:block;text-decoration:none;font-size:11px;}#favorite-inside a{padding:3px 5px 3px 10px;}#favorite-toggle{height:22px;position:absolute;right:0;top:1px;width:28px;}#favorite-actions .slide-down{-moz-border-radius:12px 12px 0 0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom:none;}#utc-time,#local-time{padding-left:25px;font-style:italic;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}ul#dismissed-updates{display:none;}form.upgrade{margin-top:8px;}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0;}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}br.clear{height:2px;line-height:2px;}.swfupload{margin:5px 10px;vertical-align:middle;}table.fixed{table-layout:fixed;}.fixed .column-rating,.fixed .column-visible{width:8%;}.fixed .column-date,.fixed .column-parent,.fixed .column-links{width:10%;}.fixed .column-response,.fixed .column-author,.fixed .column-categories,.fixed .column-tags,.fixed .column-rel,.fixed .column-role{width:15%;}.fixed .column-comments{width:4em;padding-top:8px;}.fixed .column-slug{width:25%;}.fixed .column-posts{width:10%;}.fixed .column-icon{width:80px;}#commentsdiv .fixed .column-author,#comments-form .fixed .column-author{width:20%;}.widefat th,.widefat td{overflow:hidden;}.widefat td p{margin:2px 0 .8em;}table .vers,table .column-visible,table .column-rating{text-align:center;}.icon32{float:left;height:36px;margin:14px 6px 0 0;width:36px;}.key-labels label{line-height:24px;}.subtitle{font-size:.75em;line-height:1;padding-left:25px;}ol{list-style-type:decimal;margin-left:2em;}.postbox-container{float:left;padding-right:.5%;}.postbox-container .meta-box-sortables{min-height:300px;}.temp-border{border:1px dotted #ccc;}.columns-prefs label{padding:0 5px;}.theme-install-php h4,.plugin-install-php h4{margin:2.5em 0 8px;}p.install-help{margin:8px 0;font-style:italic;}p.popular-tags{-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;border-width:1px;border-style:solid;line-height:2em;padding:8px 12px 12px;text-align:justify;}p.popular-tags a{padding:0 3px;}.stuffbox .editcomment{clear:none;}.ajax-feedback{visibility:hidden;vertical-align:bottom;}.tagsdiv .newtag{width:180px;}.tagsdiv .the-tags{display:block;height:60px;margin:0 auto;overflow:auto;width:260px;}#post-body-content .tagsdiv .the-tags{margin:0 5px;}label,#your-profile label+a{vertical-align:middle;}#misc-publishing-actions label{vertical-align:baseline;}.plugin-update-tr .update-message{margin:5px;padding:3px 5px;border-width:1px;border-style:solid;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.add-new-h2{font-style:normal;margin:0 6px;position:relative;top:-3px;}.describe .image-editor{vertical-align:top;}.imgedit-wrap{position:relative;}.imgedit-settings p{margin:8px 0;}.describe .imgedit-wrap table td{vertical-align:top;padding-top:0;}.imgedit-wrap p,.describe .imgedit-wrap table td{font-size:11px;line-height:18px;}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px;}td.imgedit-settings input{vertical-align:middle;}.imgedit-wait{position:absolute;top:0;background:#FFF url(../images/wpspin_light.gif) no-repeat scroll 22px 10px;opacity:.7;filter:alpha(opacity=70);width:100%;height:500px;display:none;}.media-disabled,.imgedit-settings .disabled{color:grey;}.imgedit-wait-spin{padding:0 4px 4px;vertical-align:bottom;visibility:hidden;}.imgedit-menu{margin:0 0 12px;min-width:300px;}.imgedit-menu div{float:left;width:32px;height:32px;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border-width:1px;border-style:solid;}.imgedit-crop-wrap{position:relative;}.imgedit-crop{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -9px -31px;margin:0 8px 0 0;}.imgedit-crop.disabled:hover{background-position:-9px -31px;}.imgedit-crop:hover{background-position:-9px -1px;}.imgedit-rleft{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -46px -31px;margin:0 3px;}.imgedit-rleft.disabled:hover{background-position:-46px -31px;}.imgedit-rleft:hover{background-position:-46px -1px;}.imgedit-rright{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -77px -31px;margin:0 8px 0 3px;}.imgedit-rright.disabled:hover{background-position:-77px -31px;}.imgedit-rright:hover{background-position:-77px -1px;}.imgedit-flipv{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -115px -31px;margin:0 3px;}.imgedit-flipv.disabled:hover{background-position:-115px -31px;}.imgedit-flipv:hover{background-position:-115px -1px;}.imgedit-fliph{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -147px -31px;margin:0 8px 0 3px;}.imgedit-fliph.disabled:hover{background-position:-147px -31px;}.imgedit-fliph:hover{background-position:-147px -1px;}.imgedit-undo{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -184px -31px;margin:0 3px;}.imgedit-undo.disabled:hover{background-position:-184px -31px;}.imgedit-undo:hover{background-position:-184px -1px;}.imgedit-redo{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -215px -31px;margin:0 8px 0 3px;}.imgedit-redo.disabled:hover{background-position:-215px -31px;}.imgedit-redo:hover{background-position:-215px -1px;}.imgedit-applyto img{margin:0 8px 0 0;}.imgedit-group-top{margin:5px 0;}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block;}.imgedit-help{display:none;font-style:italic;margin-bottom:8px;}.imgedit-help ul li{font-size:11px;}a.imgedit-help-toggle{text-decoration:none;}#wpbody-content .imgedit-response div{width:600px;margin:8px;}.form-table td.imgedit-response{padding:0;}.imgedit-submit{margin:8px 0;}.imgedit-submit-btn{margin-left:20px;}.imgedit-wrap .nowrap{white-space:nowrap;}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle;}.imgedit-group{border-width:1px;border-style:solid;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;margin-bottom:8px;padding:2px 10px;}#dashboard_recent_comments div.undo{border-top-style:solid;border-top-width:1px;margin:0 -10px;padding:3px 8px;font-size:11px;}.trash-undo-inside,.spam-undo-inside{margin:1px 8px 1px 0;line-height:16px;}.spam-undo-inside .avatar,.trash-undo-inside .avatar{height:20px;width:20px;margin-right:8px;vertical-align:middle;}.taghint{color:#aaa;margin:15px 0 -24px 12px;}#poststuff .tagsdiv .howto{margin:0 0 6px 8px;}.ajaxtag .newtag{background:transparent;position:relative;}#broken-themes{text-align:left;width:50%;border-spacing:3px;padding:3px;}.describe .del-link{padding-left:5px;}.comment-ays{margin-bottom:0;border-style:solid;border-width:1px;}.comment-ays th{border-right-style:solid;border-right-width:1px;}div#custom-background-image{min-height:100px;border:1px solid #dfdfdf;}div#custom-background-image img{max-width:400px;max-height:300px;}#custom-background label{padding-right:15px;}.appearance_page_custom-header #headimg{border:1px solid #DFDFDF;min-height:100px;width:100%;}.appearance_page_custom-header #upload-form p label{font-size:11px;}.appearance_page_custom-header #available-headers .default-header{float:left;margin:0 20px 20px 0;}.appearance_page_custom-header #available-headers label input{margin-right:10px;}.appearance_page_custom-header #available-headers label img{vertical-align:middle;}.nav-tab{border-style:solid;border-color:#ccc #ccc #f9f9f9;border-width:1px 1px 0;color:#c1c1c1;text-shadow:rgba(255,255,255,1) 0 1px 0;font-size:12px;line-height:16px;display:inline-block;padding:4px 14px 6px;text-decoration:none;margin:0 6px -1px 0;-moz-border-radius:5px 5px 0 0;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;-khtml-border-top-left-radius:5px;-khtml-border-top-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;}.nav-tab-active{border-width:1px;color:#464646;}.themes-php .wrap h2,.theme-install-php .wrap h2{border-bottom:1px solid #ccc;padding-bottom:0;}h2 .nav-tab{padding:4px 20px 6px;font:italic normal normal 24px/35px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}body.update-php{height:98%;}
</del><span class="cx">\ No newline at end of file
</span><ins>+textarea,input[type=&quot;text&quot;],input[type=&quot;password&quot;],input[type=&quot;file&quot;],input[type=&quot;button&quot;],input[type=&quot;submit&quot;],input[type=&quot;reset&quot;],select{border-width:1px;border-style:solid;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}p,ul,ol,blockquote,input,select{font-size:12px;}select option{padding:2px;}.plugins #name{width:33%;}.plugins .name,#pass-strength-result.strong,#pass-strength-result.short,.button-highlighted,input.button-highlighted,#quicktags #ed_strong,#ed_reply_toolbar #ed_reply_strong{font-weight:bold;}.plugins p{margin:0 4px;padding:0;}.plugins .desc p{margin:0 0 8px;}.plugins td.desc{line-height:1.5em;}.plugins .desc ul,.plugins .desc ol{margin:0 0 0 2em;}.plugins .desc ul{list-style-type:disc;}.plugins .action-links{white-space:nowrap;}.plugins .row-actions-visible{padding:0;}.plugins tbody th.check-column{padding:7px 0;}.plugins td,.plugins th{border-bottom:0 none;}#install-plugins .plugins td,#install-plugins .plugins th{border-bottom-style:solid;border-bottom-width:1px;}.plugins .inactive td,.plugins .inactive th,.plugins .active td,.plugins .active th{border-top-style:solid;border-top-width:1px;padding:5px 7px 0;}#wpbody-content .plugins .plugin-title{padding-right:12px;}.plugins .second td,.plugins .second th{border-top:0 none;padding:0 7px 5px;}.plugins-php .widefat tfoot th,.plugins-php .widefat tfoot td{border-top-style:solid;border-top-width:1px;}.import-system{font-size:16px;}.anchors{margin:10px 20px 10px 20px;}#loading-items{position:absolute;z-index:9999;padding:10px;background-color:#fff;font-weight:bold;text-align:center;opacity:.5;}table#availablethemes{border-spacing:0;border-width:1px 0;border-style:solid none;margin:10px auto;width:100%;}td.available-theme{vertical-align:top;width:240px;margin:0;padding:20px;text-align:left;}table#availablethemes td{border-width:0 1px 1px;border-style:none solid solid;}table#availablethemes td.right,table#availablethemes td.left{border-right:0 none;border-left:0 none;}table#availablethemes td.bottom{border-bottom:0 none;}.available-theme a.screenshot{width:240px;height:180px;display:block;border-width:1px;border-style:solid;margin-bottom:10px;overflow:hidden;}.available-theme img{width:240px;}.available-theme h3{margin:15px 0 5px;}#current-theme{margin:1em 0 1.5em;}#current-theme a{border-bottom:none;}#current-theme h3{font-size:17px;font-weight:normal;margin:0;}#current-theme .theme-description{margin-top:5px;}#current-theme img{float:left;border-width:1px;border-style:solid;margin-right:1em;margin-bottom:1.5em;width:150px;}#TB_window #TB_title a.tb-theme-preview-link,#TB_window #TB_title a.tb-theme-preview-link:visited{font-weight:bold;text-decoration:none;}#TB_window #TB_title{background-color:#222;color:#cfcfcf;}.checkbox{border:none;margin:0;padding:0;}.code,code{font-family:Consolas,Monaco,Courier,monospace;}kbd,code{padding:1px 3px;margin:0 1px;font-size:11px;}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom-width:1px;border-bottom-style:solid;}.commentlist li li{border-bottom:0;padding:0;}.commentlist p{padding:0;margin:0 0 .8em;}.post-categories{display:inline;margin:0;padding:0;}.post-categories li{display:inline;}.quicktags,.search{font:12px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}.submit{padding:1.5em 0;margin:5px 0;-moz-border-radius:0 0 3px 3px;-webkit-border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;-khtml-border-bottom-left-radius:3px;-khtml-border-bottom-right-radius:3px;border-bottom-left-radius:3px;border-bottom-right-radius:3px;}form p.submit a.cancel:hover{text-decoration:none;}#submitdiv h3{margin-bottom:0!important;}#misc-publishing-actions{padding:6px 0 16px 0;}.misc-pub-section{padding:6px;border-bottom-width:1px;border-bottom-style:solid;}.misc-pub-section-last{border-bottom:0 none;}#minor-publishing-actions{padding:6px;text-align:right;}#minor-publishing{border-bottom-width:1px;border-bottom-style:solid;}#save-post{float:left;}.preview{float:right;}#major-publishing-actions{padding:6px;clear:both;border-top:none;}#minor-publishing-actions input,#major-publishing-actions input,#minor-publishing-actions .preview{min-width:80px;text-align:center;}#delete-action{line-height:25px;vertical-align:middle;text-align:left;float:left;}#publishing-action{text-align:right;float:right;line-height:23px;}#post-body #minor-publishing{padding-bottom:10px;}#post-body #misc-publishing-actions{padding:0;}#post-body .misc-pub-section{border-right-width:1px;border-right-style:solid;border-bottom:0 none;min-height:30px;float:left;max-width:32%;}#post-body .misc-pub-section-last{border-right:0;}#sticky-span{margin-left:18px;}#post-status-display,#post-visibility-display{font-weight:bold;}.side-info{margin:0;padding:4px;font-size:11px;}.side-info h5{padding-bottom:7px;font-size:14px;margin:12px 2px 5px;border-bottom-width:1px;border-bottom-style:solid;}.side-info ul{margin:0;padding-left:18px;list-style:square;}.submit input,.button,input.button,.button-primary,input.button-primary,.button-secondary,input.button-secondary,.button-highlighted,input.button-highlighted,#postcustomstuff .submit input{text-decoration:none;font-size:11px!important;line-height:13px;padding:3px 8px;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;}a.button,a.button-primary,a.button-secondary{line-height:15px;padding:3px 10px;white-space:nowrap;-webkit-border-radius:10px;}#doaction,#doaction2,#post-query-submit{margin-right:8px;}.tablenav select[name=&quot;action&quot;],.tablenav select[name=&quot;action2&quot;]{width:130px;}.tablenav select[name=&quot;m&quot;]{width:155px;}.tablenav select#cat{width:170px;}#wpcontent select{padding:2px;height:2em;font-size:11px;}#wpcontent option{padding:2px;}#timezone_string option{margin-left:1em;}.approve{display:none;}.unapproved .approve,.spam .approve,.trash .approve{display:inline;}.unapproved .unapprove{display:none;}.narrow{width:70%;margin-bottom:40px;}.narrow p{line-height:150%;}textarea.all-options,input.all-options{width:250px;}#namediv table{width:100%;}#namediv td.first{width:10px;white-space:nowrap;}#namediv input{width:98%;}#namediv p{margin:10px 0;}#wpbody-content .metabox-holder{padding-top:10px;}#content{margin:0;width:100%;}#editorcontainer #content{padding:6px;line-height:150%;border:0 none;outline:none;resize:vertical;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-khtml-box-sizing:border-box;box-sizing:border-box;}#editorcontainer,#quicktags{border-style:solid;border-width:1px;border-collapse:separate;-moz-border-radius:6px 6px 0 0;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}#quicktags{padding:0;margin-bottom:-3px;border-bottom-width:3px;background-image:url(&quot;../images/ed-bg.gif&quot;);background-position:left top;background-repeat:repeat-x;}#quicktags #ed_toolbar{padding:2px 4px 0;}#ed_toolbar input,#ed_reply_toolbar input{margin:3px 1px 4px;line-height:18px;display:inline-block;min-width:26px;padding:2px 4px;font-size:12px;}#ed_reply_toolbar input{margin:1px 2px 1px 1px;}#quicktags #ed_link,#ed_reply_toolbar #ed_reply_link{text-decoration:underline;}#quicktags #ed_del,#ed_reply_toolbar #ed_reply_del{text-decoration:line-through;}#quicktags #ed_em,#ed_reply_toolbar #ed_reply_em{font-style:italic;}#excerpt,.attachmentlinks{margin:0;height:4em;width:98%;}#postcustomstuff table,#postcustomstuff input,#postcustomstuff textarea{border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}#postcustomstuff .updatemeta,#postcustomstuff .deletemeta{margin:auto;}#postcustomstuff thead th{padding:5px 8px 8px;}#postcustom #postcustomstuff .submit{border:0 none;float:none;padding:5px 8px;}#side-sortables #postcustom #postcustomstuff .submit{padding:0 5px;}#side-sortables #postcustom #postcustomstuff td.left input{margin:3px 3px 0;}#side-sortables #postcustom #postcustomstuff #the-list textarea{height:85px;margin:3px;}#postcustomstuff table{margin:0;width:100%;border-width:1px;border-style:solid;border-spacing:0;}#postcustomstuff table input,#postcustomstuff table select,#postcustomstuff table textarea{width:95%;margin:8px 0 8px 8px;}#postcustomstuff th.left,#postcustomstuff td.left{width:38%;}#postcustomstuff .submit input{width:auto;}#postcustomstuff #newmeta .submit{padding:0 8px;}#postcustomstuff table #addmetasub{width:auto;}#postcustomstuff #newmetaleft{vertical-align:top;}#postcustomstuff #newmetaleft a{padding:0 10px;text-decoration:none;}#save{width:15em;}#template div{margin-right:190px;}* html #template div{margin-right:0;}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute;}* html #themeselect{padding:0 3px;height:22px;}#your-profile legend{font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-size:22px;}#your-profile #rich_editing{border:none;}#howto{font-size:11px;margin:0 5px;display:block;}#ajax-response.alignleft{margin-left:2em;}div.nav{height:2em;padding:7px 10px;vertical-align:text-top;margin:5px 0;}.nav .button-secondary{padding:2px 4px;}.tablenav-pages a{border-bottom-style:solid;border-bottom-width:2px;font-weight:bold;margin-right:1px;padding:0 2px;}.tablenav-pages .current-page{text-align:center;}.tablenav-pages .next-page{margin-left:2px;}p.pagenav{margin:0;display:inline;}.pagenav span{font-weight:bold;margin:0 6px;}.row-title{font-size:12px!important;font-weight:bold;}.widefat .column-comment p{margin:.6em 0;}.column-author img,.column-username img{float:left;margin-right:10px;margin-top:3px;}.tablenav a.button-secondary{display:block;margin:3px 8px 0 0;}.tablenav{clear:both;height:30px;margin:6px 0 4px;vertical-align:middle;}.tablenav .tablenav-pages{float:right;display:block;cursor:default;height:30px;line-height:30px;font-size:11px;}.tablenav .tablenav-pages a,.tablenav-pages span.current{text-decoration:none;border:none;padding:3px 6px;border-width:1px;border-style:solid;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.tablenav .displaying-num{margin-right:10px;font-size:12px;font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-style:italic;}.tablenav .actions{padding:2px 8px 0 0;}td.media-icon{text-align:center;width:80px;padding-top:8px;padding-bottom:8px;}td.media-icon img{max-width:80px;max-height:60px;}#update-nag,.update-nag{line-height:19px;padding:5px 0;font-size:12px;text-align:center;margin:0 15px;border-width:1px;border-style:solid;border-top-width:0;border-top-style:none;-moz-border-radius:0 0 6px 6px;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;}.plugins .plugin-update{padding:0;}.plugin-update .update-message{margin:0 10px 8px 31px;font-weight:bold;}#pass-strength-result{border-style:solid;border-width:1px;float:left;margin:12px 5px 5px 1px;padding:3px 5px;text-align:center;width:200px;}.row-actions{visibility:hidden;padding:2px 0 0;}tr:hover .row-actions,div.comment-item:hover .row-actions{visibility:visible;}.row-actions-visible{padding:2px 0 0;}#wphead-info{margin:0 0 0 15px;padding-right:15px;}#user_info{float:right;font-size:12px;line-height:46px;height:46px;}#user_info p{margin:0;padding:0;line-height:46px;}#wphead{height:46px;}#wphead a,#adminmenu a,#sidemenu a,#taglist a,#catlist a,#show-settings a{text-decoration:none;}#header-logo{float:left;margin:7px 0 0 15px;}#wphead h1{font:normal 22px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;padding:10px 8px 5px;margin:0;float:left;}#wphead h1.long-title{font:normal 18px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;padding:12px 10px 5px;}#wphead #privacy-on-link{font-size:50%;font-style:normal;line-height:17px;padding:0 6px;vertical-align:middle;}#wphead h1 a:hover{text-decoration:none;}#wphead h1 a:hover #site-title,#wphead h1 a#privacy-on-link:hover{text-decoration:underline;}#adminmenu *{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;user-select:none;}#adminmenu .wp-submenu{display:none;list-style:none;padding:0;margin:0;position:relative;z-index:2;border-width:1px 0 0;border-style:solid none none;}#adminmenu .wp-submenu a{font:normal 11px/18px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover{font-weight:bold;}#adminmenu a.menu-top,#adminmenu .wp-submenu-head{font:normal 13px/18px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}#adminmenu div.wp-submenu-head{display:none;}.folded #adminmenu div.wp-submenu-head,.folded #adminmenu li.wp-has-submenu div.sub-open{display:block;}.folded #adminmenu a.menu-top,.folded #adminmenu .wp-submenu,.folded #adminmenu li.wp-menu-open .wp-submenu,.folded #adminmenu div.wp-menu-toggle{display:none;}#adminmenu li.wp-menu-open .wp-submenu,.no-js #adminmenu .open-if-no-js .wp-submenu{display:block;}#adminmenu div.wp-menu-image{float:left;width:28px;height:28px;}#adminmenu li{margin:0;padding:0;cursor:pointer;}#adminmenu a{display:block;line-height:18px;padding:1px 5px 3px;}#adminmenu li.menu-top{min-height:26px;}#adminmenu a.menu-top{line-height:18px;min-width:10em;padding:5px 5px;border-width:1px 1px 0;border-style:solid solid none;}#adminmenu .wp-submenu a{margin:0;padding-left:12px;border-width:0 1px 0 0;border-style:none solid none none;}#adminmenu .menu-top-last ul.wp-submenu{border-width:0 0 1px;border-style:none none solid;}#adminmenu .wp-submenu li{padding:0;margin:0;}.folded #adminmenu li.menu-top{width:28px;height:30px;overflow:hidden;border-width:1px 1px 0;border-style:solid solid none;}#adminmenu .menu-top-first a.menu-top,.folded #adminmenu li.menu-top-first,#adminmenu .wp-submenu .wp-submenu-head{border-width:1px 1px 0;border-style:solid solid none;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}#adminmenu .menu-top-last a.menu-top,.folded #adminmenu li.menu-top-last{border-width:1px;border-style:solid;-moz-border-radius-bottomleft:6px;-moz-border-radius-bottomright:6px;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;}#adminmenu li.wp-menu-open a.menu-top-last{border-bottom:0 none;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}#adminmenu .wp-menu-image img{float:left;padding:8px 6px 0;opacity:.6;filter:alpha(opacity=60);}#adminmenu li.menu-top:hover .wp-menu-image img,#adminmenu li.wp-has-current-submenu .wp-menu-image img{opacity:1;filter:alpha(opacity=100);}#adminmenu li.wp-menu-separator{height:21px;padding:0;margin:0;}#adminmenu a.separator{cursor:w-resize;height:20px;padding:0;}.folded #adminmenu a.separator{cursor:e-resize;}#adminmenu .wp-menu-separator-last{height:10px;width:1px;}#adminmenu .wp-submenu .wp-submenu-head{border-width:1px;border-style:solid;padding:6px 4px 6px 10px;cursor:default;}.folded #adminmenu .wp-submenu{position:absolute;margin:-1px 0 0 28px;padding:0 8px 8px;z-index:999;border:0 none;}.folded #adminmenu .wp-submenu ul{width:140px;border-width:0 0 1px;border-style:none none solid;}.folded #adminmenu .wp-submenu li.wp-first-item{border-top:0 none;}.folded #adminmenu .wp-submenu a{padding-left:10px;}.folded #adminmenu a.wp-has-submenu{margin-left:40px;}#adminmenu li.menu-top-last .wp-submenu ul{border-width:0 0 1px;border-style:none none solid;}#adminmenu .wp-menu-toggle{width:22px;clear:right;float:right;margin:1px 0 0;height:27px;padding:1px 2px 0 0;cursor:default;}#adminmenu li.wp-has-current-submenu ul{border-bottom-width:1px;border-bottom-style:solid;}#adminmenu .wp-menu-image a{height:24px;}#adminmenu .wp-menu-image img{padding:6px 0 0 1px;}#adminmenu #awaiting-mod,#adminmenu span.update-plugins,#sidemenu li a span.update-plugins{position:absolute;font-family:Helvetica,Arial,sans-serif;font-size:9px;line-height:17px;font-weight:bold;margin-top:1px;margin-left:7px;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;}#adminmenu li #awaiting-mod span,#adminmenu li span.update-plugins span,#sidemenu li a span.update-plugins span{display:block;padding:0 6px;}#adminmenu li span.count-0,#sidemenu li a .count-0{display:none;}.post-com-count-wrapper{min-width:22px;font-family:Helvetica,Arial,sans-serif;}.post-com-count{height:1.3em;line-height:1.1em;display:block;text-decoration:none;padding:0 0 6px;cursor:pointer;background-position:center -80px;background-repeat:no-repeat;}.post-com-count span{font-size:9px;font-weight:bold;height:1.7em;line-height:1.70em;min-width:.7em;padding:0 6px;display:inline-block;cursor:pointer;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}strong .post-com-count{background-position:center -55px;}.post-com-count:hover{background-position:center -3px;}.column-response .post-com-count{float:left;margin-right:5px;text-align:center;}.response-links{float:left;}#the-comment-list .attachment-80x60{padding:4px 8px;}#footer{margin-top:-46px;border-top:1px;border-style:solid;}#footer,#footer a{font-size:12px;font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-style:italic;}#footer p{margin:0;padding:15px;line-height:15px;}#footer a{text-decoration:none;}#footer a:hover{text-decoration:underline;}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;margin-bottom:-8px;clear:both;}.form-table td{margin-bottom:9px;padding:8px 10px;line-height:20px;font-size:11px;}.form-table th,.form-wrap label{font-weight:normal;text-shadow:rgba(255,255,255,1) 0 1px 0;}.form-table th{vertical-align:top;text-align:left;padding:10px;width:200px;}.form-table th.th-full{width:auto;}.form-table div.color-option{display:block;clear:both;margin-top:12px;}.form-table input.tog{margin-top:2px;margin-right:2px;float:left;}.form-table table.color-palette{vertical-align:bottom;float:left;margin:-12px 3px 11px;}.form-table .color-palette td{border-width:1px 1px 0;border-style:solid solid none;height:10px;line-height:20px;width:10px;}input.large-text,textarea.large-text{width:99%;}input.regular-text,#adduser .form-field input{width:25em;}input.small-text{width:50px;}#profile-page .form-table textarea{width:500px;margin-bottom:6px;}#profile-page .form-table #rich_editing{margin-right:5px;}.form-table .pre{padding:8px;margin:0;}.pre{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}table.form-table td .updated{font-size:13px;}.form-wrap{margin:10px 0;width:97%;}.form-wrap p,.form-wrap label{font-size:11px;}.form-wrap label{display:block;padding:2px;font-size:12px;}.form-field input,.form-field textarea{border-style:solid;border-width:1px;width:95%;}p.description,.form-wrap p{margin:2px 0 5px;}p.help,p.description,span.description,.form-wrap p{font-size:12px;font-style:italic;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}.form-wrap .form-field{margin:0 0 10px;padding:8px;}.col-wrap h3{margin:12px 0;font-size:1.1em;}.col-wrap p.submit{margin-top:-10px;}.tagcloud{width:97%;margin:0 0 40px;text-align:justify;}.tagcloud h3{margin:2px 0 12px;}#post-body #normal-sortables{min-height:50px;}#post-body #advanced-sortables{min-height:20px;}.postbox{position:relative;min-width:255px;width:99.5%;}#trackback_url{width:99%;}#normal-sortables .postbox .submit{background:transparent none;border:0 none;float:right;padding:0 12px;margin:0;}#normal-sortables .postbox #replyrow .submit{float:none;margin:0;padding:3px 7px;}#side-sortables .submitbox .submit input,#side-sortables .submitbox .submit .preview,#side-sortables .submitbox .submit a.preview:hover{border:0 none;}#side-sortables .inside-submitbox .insidebox,.stuffbox .insidebox{margin:11px 0;}#side-sortables .comments-box,#normal-sortables .comments-box{border:0 none;}#side-sortables .comments-box thead th,#normal-sortables .comments-box thead th{background:transparent;padding:0 7px 4px;font-style:italic;}#commentsdiv img.waiting{padding-left:5px;vertical-align:middle;}#post-body .tagsdiv #newtag{margin-right:5px;width:16em;}#side-sortables input#post_password{width:94%;}#side-sortables .tagsdiv #newtag{width:68%;}#post-status-info{border-width:0 1px 1px;border-style:none solid solid;width:100%;-moz-border-radius:0 0 6px 6px;-webkit-border-bottom-left-radius:6px;-webkit-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;}#post-status-info td{font-size:11px;}.autosave-info{padding:2px 15px 2px 2px;text-align:right;}#editorcontent #post-status-info{border:none;}#post-body .wp_themeSkin .mceStatusbar a.mceResize{display:block;background:transparent url(../images/resize.gif) no-repeat scroll right bottom;width:12px;cursor:se-resize;margin:0 2px;position:relative;top:22px;}#linksubmitdiv div.inside,div.inside{padding:0;margin:0;}#comment-status-radio p{margin:3px 0 5px;}#comment-status-radio input{margin:2px 3px 5px 0;vertical-align:middle;}#comment-status-radio label{padding:5px 0;}.tagchecklist{margin-left:14px;font-size:12px;overflow:auto;}.tagchecklist strong{margin-left:-8px;position:absolute;}.tagchecklist span{margin-right:25px;display:block;float:left;font-size:11px;line-height:1.8em;white-space:nowrap;cursor:default;}.tagchecklist span a{margin:6px 0 0 -9px;cursor:pointer;width:10px;height:10px;display:block;float:left;text-indent:-9999px;overflow:hidden;position:absolute;}.howto{font-style:italic;display:block;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}.ac_results{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;display:none;border-width:1px;border-style:solid;}.ac_results li{padding:2px 5px;white-space:nowrap;text-align:left;}.ac_over{cursor:pointer;}.ac_match{text-decoration:underline;}#poststuff h2{margin-top:20px;font-size:1.5em;margin-bottom:15px;padding:0 0 3px;clear:left;}.widget .widget-top,.postbox h3{cursor:move;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;user-select:none;}.postbox .hndle span{padding:6px 0;}.postbox .hndle{cursor:move;}.hndle a{font-size:11px;font-weight:normal;}#dashboard-widgets .meta-box-sortables{margin:0 5px;}.postbox .handlediv{float:right;width:23px;height:26px;}.sortable-placeholder{border-width:1px;border-style:dashed;margin-bottom:20px;}#poststuff h3,.metabox-holder h3{font-size:12px;font-weight:bold;padding:7px 9px;margin:0;line-height:1;}.widget,.postbox,.stuffbox{margin-bottom:20px;border-width:1px;border-style:solid;line-height:1;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}.widget .widget-top,.postbox h3,.postbox h3,.stuffbox h3{-moz-border-radius:6px 6px 0 0;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}.postbox.closed h3{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px;}.postbox table.form-table{margin-bottom:0;}.postbox input[type=&quot;text&quot;],.postbox textarea,.stuffbox input[type=&quot;text&quot;],.stuffbox textarea{border-width:1px;border-style:solid;}#poststuff .inside,#poststuff .inside p{font-size:11px;margin:6px 6px 8px;}#poststuff .inside .submitbox p{margin:1em 0;}#post-visibility-select{line-height:1.5em;margin-top:3px;}#poststuff #submitdiv .inside{margin:0;}#titlediv,#poststuff .postarea{margin-bottom:20px;}#titlediv{position:relative;margin-bottom:20px;}#titlediv label{cursor:text;}#titlediv div.inside{margin:0;}#poststuff #titlewrap{border:0;padding:0;}#titlediv #title{padding:3px 4px;border-width:1px;border-style:solid;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;font-size:1.7em;line-height:100%;width:100%;outline:none;}#titlediv #title-prompt-text{color:#bbb;position:absolute;font-size:1.7em;padding:8px;}#poststuff .inside-submitbox,#side-sortables .inside-submitbox{margin:0 3px;font-size:11px;}input#link_description,input#link_url{width:98%;}#pending{background:0 none;border:0 none;padding:0;font-size:11px;margin-top:-1px;}#edit-slug-box{height:1em;margin-top:8px;padding:0 7px;}#editable-post-name-full{display:none;}#editable-post-name input{width:16em;}.postarea h3 label{float:left;}.postarea #add-media-button{float:right;margin:7px 0 0;position:relative;right:10px;}#poststuff #editor-toolbar{height:30px;}.wp_themeSkin tr.mceFirst td.mceToolbar{border-width:0 0 1px;border-style:none none solid;}#edButtonPreview,#edButtonHTML{height:18px;margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;}.js .theEditor{color:white;}#poststuff #edButtonHTML{margin-right:15px;}#media-buttons{cursor:default;padding:8px 8px 0;}#media-buttons a{cursor:pointer;padding:0 0 5px 10px;}#media-buttons img,#submitpost #ajax-loading{vertical-align:middle;}.submitbox .submit{text-align:left;padding:12px 10px 10px;font-size:11px;}.submitbox .submitdelete{border-bottom-width:1px;border-bottom-style:solid;text-decoration:none;padding:1px 2px;}.inside-submitbox #post_status{margin:2px 0 2px -2px;}.submitbox .submit a:hover{border-bottom-width:1px;border-bottom-style:solid;}.submitbox .submit input{margin-bottom:8px;margin-right:4px;padding:6px;}#post-status-select{line-height:2.5em;margin-top:3px;}.category-adder{margin-left:120px;padding:4px 0;}.category-adder h4{margin:0 0 8px;}#side-sortables .category-adder{margin:0;}#post-body .category-add input,.category-add select{width:30%;}#side-sortables .category-add input{width:94%;}#side-sortables .category-add select{width:100%;}#side-sortables .category-add input.category-add-sumbit,#post-body .category-add input.category-add input.category-add-sumbit{width:auto;}#post-body ul.category-tabs,#post-body ul.add-menu-item-tabs{float:left;width:120px;text-align:right;margin:0 -120px 0 5px;padding:0;}#post-body ul.category-tabs li,#post-body ul.add-menu-item-tabs li{padding:8px;}#post-body ul.category-tabs li.tabs,#post-body ul.add-menu-item-tabs li.tabs{-moz-border-radius:3px 0 0 3px;-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-top-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-top-left-radius:3px;border-bottom-left-radius:3px;}#post-body ul.category-tabs li.tabs a,#post-body ul.add-menu-item-tabs li.tabs a{font-weight:bold;text-decoration:none;}.categorydiv div.tabs-panel,.customlinkdiv div.tabs-panel,.posttypediv div.tabs-panel,.taxonomydiv div.tabs-panel,#linkcategorydiv div.tabs-panel{height:200px;overflow:auto;padding:.5em .9em;border-style:solid;border-width:1px;}.nav-menus-php .customlinkdiv div.tabs-panel,.nav-menus-php .posttypediv div.tabs-panel,.nav-menus-php .taxonomydiv div.tabs-panel{height:auto;max-height:205px;}div.tabs-panel-active{display:block;}div.tabs-panel-inactive{display:none;}#post-body .categorydiv div.tabs-panel,.taxonomy div.tabs-panel,#post-body #linkcategorydiv div.tabs-panel{margin:0 5px 0 125px;}#side-sortables .category-tabs li,#side-sortables .add-menu-item-tabs li{display:inline;}#side-sortables .category-tabs a,#side-sortables .add-menu-item-tabs a{text-decoration:none;}#side-sortables .category-tabs,#side-sortables .add-menu-item-tabs{margin-bottom:3px;}.categorydiv ul,.customlinkdiv ul,.posttypediv ul,.taxonomydiv ul,#linkcategorydiv ul{list-style:none;padding:0;margin:0;}#front-page-warning,#front-static-pages ul,.inline-editor ul.cat-checklist ul,.categorydiv ul.categorychecklist ul,.customlinkdiv ul.categorychecklist ul,.posttypediv ul.categorychecklist ul,.taxonomydiv ul.categorychecklist ul,#linkcategorydiv ul.categorychecklist ul{margin-left:18px;}ul.categorychecklist li{margin:0;padding:0;line-height:19px;word-wrap:break-word;}.category-adder h4{margin-top:4px;margin-bottom:0;}.categorydiv .tabs-panel,.customlinkdiv .tabs-panel,.posttypediv .tabs-panel,.taxonomydiv .tabs-panel{border-width:3px;border-style:solid;}ul.category-tabs,ul.add-menu-item-tabs{margin-top:12px;}ul.category-tabs li.tabs,ul.add-menu-item-tabs li.tabs{border-style:solid solid none;border-width:1px 1px 0;}#post-body .category-tabs li.tabs,#post-body .add-menu-item-tabs li.tabs{border-style:solid none solid solid;border-width:1px 0 1px 1px;margin-right:-1px;}ul.category-tabs li,ul.add-menu-item-tabs li{padding:5px;-moz-border-radius:3px 3px 0 0;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;}form#tags-filter{position:relative;}p.search-box{float:right;margin:-5px 0 0;}.screen-per-page{width:3em;}#posts-filter fieldset{float:left;margin:0 1.5ex 1em 0;padding:0;}#posts-filter fieldset legend{padding:0 0 .2em 1px;}td.post-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;}td.post-title p,td.plugin-title p{margin:6px 0;}td.plugin-title{white-space:nowrap;}.wp-hidden-children .wp-hidden-child,.ui-tabs-hide{display:none;}.commentlist .avatar{vertical-align:text-top;}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle;}body.wp-admin{min-width:785px;}.view-switch{float:right;margin:6px 8px 0;}.view-switch a{text-decoration:none;}.filter{float:left;margin:-5px 0 0 10px;}.filter .subsubsub{margin-left:-10px;margin-top:13px;}#the-comment-list td.comment p.comment-author{margin-top:0;margin-left:0;}#the-comment-list p.comment-author img{float:left;margin-right:8px;}#the-comment-list p.comment-author strong a{border:none;}#the-comment-list td{vertical-align:top;}#the-comment-list td.comment{word-wrap:break-word;}#the-comment-list .check-column{padding-top:8px;}#templateside ul li a{text-decoration:none;}.indicator-hint{padding-top:8px;}#display_name{width:15em;}.tablenav .delete{margin-right:20px;}td.action-links,th.action-links{text-align:right;}table.diff{width:100%;}table.diff col.content{width:50%;}table.diff tr{background-color:transparent;}table.diff td,table.diff th{padding:.5em;font-family:Consolas,Monaco,Courier,monospace;border:none;}table.diff .diff-deletedline del,table.diff .diff-addedline ins{text-decoration:none;}#wp-word-count{display:block;padding:2px 7px;}fieldset{border:0;padding:0;margin:0;}.tool-box{margin:15px 0 35px;}.tool-box .buttons{margin:15px 0;}.tool-box .title{margin:8px 0;font:18px/24px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}.pressthis a{font-size:1.2em;}#wp_editbtns,#wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:999998;}#wp_editimgbtn,#wp_delimgbtn,#wp_editgallery,#wp_delgallery{margin:2px;padding:2px;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.settings-toggle{text-align:right;margin:5px 7px 15px 0;font-size:12px;}.settings-toggle h3{margin:0;}#timestampdiv select{height:20px;line-height:14px;padding:0;vertical-align:top;}#jj,#hh,#mn{width:2em;padding:1px;font-size:12px;}#aa{width:3.4em;padding:1px;font-size:12px;}.curtime #timestamp{background-repeat:no-repeat;background-position:left top;padding-left:18px;}#timestampdiv{padding-top:5px;line-height:23px;}#timestampdiv p{margin:8px 0 6px;}#timestampdiv input{border-width:1px;border-style:solid;}#sidemenu{margin:-30px 15px 0 315px;list-style:none;position:relative;float:right;padding-left:10px;font-size:12px;}#sidemenu a{padding:0 7px;display:block;float:left;line-height:28px;border-top-width:1px;border-top-style:solid;border-bottom-width:1px;border-bottom-style:solid;}#sidemenu li{display:inline;line-height:200%;list-style:none;text-align:center;white-space:nowrap;margin:0;padding:0;}#sidemenu a.current{font-weight:normal;padding-left:6px;padding-right:6px;-moz-border-radius:4px 4px 0 0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-left-radius:4px;-khtml-border-top-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px;border-width:1px;border-style:solid;}#sidemenu{margin:-30px 15px 0 315px;list-style:none;position:relative;float:right;padding-left:10px;font-size:12px;}#sidemenu a{padding:0 7px;display:block;float:left;line-height:28px;border-top-width:1px;border-top-style:solid;border-bottom-width:1px;border-bottom-style:solid;}#sidemenu li a .count-0{display:none;}#replyrow{font-size:11px;}#replyrow input{border-width:1px;border-style:solid;}#replyrow td{padding:2px;}#replyrow #editorcontainer{border:0 none;}#replysubmit{margin:0;padding:3px 7px;}#replysubmit img.waiting,.inline-edit-save img.waiting{padding:4px 10px 0;vertical-align:top;float:right;}#replysubmit .button{margin-right:5px;}#replyrow #editor-toolbar{display:none;}#replyhead{font-size:12px;font-weight:bold;padding:2px 10px 4px;}#edithead .inside{float:left;padding:3px 0 2px 5px;margin:0;text-align:center;font-size:11px;}#edithead .inside input{width:180px;font-size:11px;}#edithead label{padding:2px 0;}#replycontainer{padding:5px;border:0 none;height:120px;overflow:hidden;position:relative;}#replycontent{resize:none;margin:0;width:100%;height:100%;padding:0;line-height:150%;border:0 none;outline:none;font-size:12px;}#replyrow #ed_reply_toolbar{margin:0;padding:2px 3px;}#screen-meta{position:relative;clear:both;}#screen-meta-links{margin:0 18px 0 0;}#screen-meta .screen-reader-text{visibility:hidden;}#screen-options-link-wrap,#contextual-help-link-wrap{float:right;height:22px;padding:0;margin:0 6px 0 0;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;background:#e3e3e3;-moz-border-radius-bottomleft:3px;-moz-border-radius-bottomright:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;}#contextual-help-wrap li{list-style-type:disc;margin-left:18px;}#screen-meta a.show-settings{text-decoration:none;z-index:1;padding:0 16px 0 6px;height:22px;line-height:22px;font-size:10px;display:block;background-repeat:no-repeat;background-position:right bottom;}#screen-meta a.show-settings{background-image:url(../images/screen-options-right.gif?ver=20100531);}#screen-meta a.show-settings:hover{text-decoration:none;}#screen-options-wrap h5,#contextual-help-wrap h5{margin:8px 0;font-size:13px;}#screen-options-wrap,#contextual-help-wrap{border-style:none solid solid;border-top:0 none;border-width:0 1px 1px;margin:0 15px;padding:8px 12px 12px;-moz-border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px;}.metabox-prefs label{padding-right:15px;white-space:nowrap;line-height:30px;}.metabox-prefs label input{margin:0 5px 0 2px;}.metabox-prefs label a{display:none;}tr.inline-edit-row td{padding:0 .5em;}#wpbody-content .inline-edit-row fieldset{font-size:12px;float:left;margin:0;padding:0;width:100%;}#wpbody-content .inline-edit-row fieldset .inline-edit-col{padding:0 .5em;}#wpbody-content .quick-edit-row-page fieldset.inline-edit-col-right .inline-edit-col{border-width:0 0 0 1px;border-style:none none none solid;}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%;}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%;}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%;}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%;}#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right{width:49%;}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%;}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%;}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:right;width:69%;}#wpbody-content .inline-edit-row-page .inline-edit-col-right,#owpbody-content .bulk-edit-row-post .inline-edit-col-right{margin-top:27px;}.inline-edit-row fieldset .inline-edit-group{clear:both;}.inline-edit-row fieldset .inline-edit-group:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden;}.inline-edit-row p.submit{clear:both;padding:.5em;margin:.5em 0 0;}.inline-edit-row span.error{line-height:22px;margin:0 15px;padding:3px 5px;}.inline-edit-row h4{margin:.2em 0;padding:0;line-height:23px;}.inline-edit-row fieldset span.title,.inline-edit-row fieldset span.checkbox-title{margin:0;padding:0;line-height:27px;}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0;}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;}.inline-edit-row fieldset label span.title{display:block;float:left;width:5em;}.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-left:5em;}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-right:.5em;}.inline-edit-row .input-text-wrap input[type=text]{width:100%;}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:text-bottom;}.inline-edit-row fieldset label textarea{width:100%;height:4em;}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%;}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-right:.5em;}.inline-edit-row h4{text-transform:uppercase;}.inline-edit-row fieldset span.title,.inline-edit-row fieldset span.checkbox-title{font-family:Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;font-style:italic;line-height:1.8em;}.inline-edit-row fieldset input[type=&quot;text&quot;],.inline-edit-row fieldset textarea{border-style:solid;border-width:1px;}.inline-edit-row fieldset .inline-edit-date{float:left;}.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=mn]{font-size:12px;width:2.1em;}.inline-edit-row fieldset input[name=aa]{font-size:12px;width:3.5em;}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em;}.inline-edit-row .catshow,.inline-edit-row .cathide{cursor:pointer;}ul.cat-checklist{height:12em;border-style:solid;border-width:1px;overflow-y:scroll;padding:0 5px;margin:0;}#bulk-titles{display:block;height:12em;border-style:solid;border-width:1px;overflow-y:scroll;padding:0 5px;margin:0 0 5px;}.inline-edit-row fieldset ul.cat-checklist li,.inline-edit-row fieldset ul.cat-checklist input{margin:0;}.inline-edit-row fieldset ul.cat-checklist label,.inline-edit-row .catshow,.inline-edit-row .cathide,.inline-edit-row #bulk-titles div{font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;font-style:normal;font-size:11px;}table .inline-edit-row fieldset ul.cat-hover{height:auto;max-height:30em;overflow-y:auto;position:absolute;}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em;}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%;}.quick-edit-row-post fieldset label.inline-edit-status{float:left;}#bulk-titles{line-height:140%;}#bulk-titles div{margin:.2em .3em;}#bulk-titles div a{cursor:pointer;display:block;float:left;height:10px;margin:3px 3px 0 -2px;overflow:hidden;position:relative;text-indent:-9999px;width:10px;}#wpbody-content #media-items .describe{border-collapse:collapse;width:100%;border-top-style:solid;border-top-width:1px;clear:both;cursor:default;padding:5px;}#wpbody-content .describe th{vertical-align:top;text-align:left;padding:10px;width:140px;}#wpbody-content .describe .media-item-info tr{background-color:transparent;}#wpbody-content .describe .media-item-info td{padding:4px 10px 0;}.describe .media-item-info .A1B1{padding:0 0 0 10px;}#wpbody-content .filename{padding:0 10px;}#wpbody-content .media-item .thumbnail{max-height:128px;max-width:128px;}#wpbody-content #async-upload-wrap a{display:none;}.media-upload-form td label{margin-right:6px;margin-left:2px;}.media-upload-form .align .field label{display:inline;padding:0 0 0 22px;margin:0 1em 0 0;font-weight:bold;}.media-upload-form tr.image-size label{margin:0 0 0 3px;font-weight:bold;}.media-upload-form th.label label{font-weight:bold;margin:.5em;font-size:13px;}.media-upload-form th.label label span{padding:0 5px;}abbr.required{border:medium none;text-decoration:none;}#wpbody-content .describe input[type=&quot;text&quot;],#wpbody-content .describe textarea{width:460px;}#wpbody-content .describe p.help{margin:0;padding:0 0 0 5px;}.media-item .error-div a.dismiss,.describe-toggle-on,.describe-toggle-off{display:block;line-height:36px;float:right;margin-right:20px;}.describe-toggle-off{display:none;}#wpbody-content .media-item{border-bottom-style:solid;border-bottom-width:1px;min-height:36px;position:relative;width:100%;}#wpbody-content .media-single .media-item{border-bottom-style:none;border-bottom-width:0;}#wpbody-content #media-items{border-style:solid solid none;border-width:1px;width:670px;}#wpbody-content #media-items .filename{line-height:36px;overflow:hidden;}.media-item .error-div{padding-left:10px;}.media-item .pinkynail{float:left;margin:2px;max-width:40px;max-height:32px;}.media-item .startopen,.media-item .startclosed{display:none;}.media-item .original{position:relative;height:34px;width:503px;}.media-item .percent{font-weight:bold;}.crunching{display:block;line-height:32px;text-align:right;margin-right:5px;}.progress{position:relative;margin-bottom:-36px;height:36px;}.bar{width:0;height:100%;border-right-width:3px;border-right-style:solid;}.upload-php .fixed .column-parent{width:25%;}.find-box{width:500px;height:300px;overflow:hidden;padding:33px 5px 40px;position:absolute;z-index:1000;}.find-box-head{cursor:move;font-weight:bold;height:2em;line-height:2em;padding:1px 12px;position:absolute;top:5px;width:100%;}.find-box-inside{overflow:auto;width:100%;height:100%;}.find-box-search{padding:12px;border-width:1px;border-style:none none solid;}#find-posts-response{margin:8px 0;padding:0 1px;}#find-posts-response table{width:100%;}#find-posts-response .found-radio{padding:5px 0 0 8px;width:15px;}.find-box-buttons{width:480px;margin:8px;}.find-box-search label{padding-right:6px;}.find-box #resize-se{position:absolute;right:1px;bottom:1px;}#favorite-actions{float:right;margin:11px 12px 0;min-width:130px;position:relative;}#favorite-first{-moz-border-radius:12px;-khtml-border-radius:12px;-webkit-border-radius:12px;border-radius:12px;line-height:15px;padding:3px 30px 4px 12px;border-width:1px;border-style:solid;}#favorite-inside{margin:0;padding:2px 1px;border-width:1px;border-style:solid;position:absolute;z-index:11;display:none;-moz-border-radius:0 0 12px 12px;-webkit-border-bottom-right-radius:12px;-webkit-border-bottom-left-radius:12px;-khtml-border-bottom-right-radius:12px;-khtml-border-bottom-left-radius:12px;border-bottom-right-radius:12px;border-bottom-left-radius:12px;}#favorite-actions a{display:block;text-decoration:none;font-size:11px;}#favorite-inside a{padding:3px 5px 3px 10px;}#favorite-toggle{height:22px;position:absolute;right:0;top:1px;width:28px;}#favorite-actions .slide-down{-moz-border-radius:12px 12px 0 0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom:none;}#utc-time,#local-time{padding-left:25px;font-style:italic;font-family:&quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;}ul#dismissed-updates{display:none;}form.upgrade{margin-top:8px;}form.upgrade .hint{font-style:italic;font-size:85%;margin:-0.5em 0 2em 0;}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border-width:1px;border-style:solid;line-height:1.8em;word-spacing:3px;-moz-border-radius:6px;-khtml-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}br.clear{height:2px;line-height:2px;}.swfupload{margin:5px 10px;vertical-align:middle;}table.fixed{table-layout:fixed;}.fixed .column-rating,.fixed .column-visible{width:8%;}.fixed .column-date,.fixed .column-parent,.fixed .column-links{width:10%;}.fixed .column-response,.fixed .column-author,.fixed .column-categories,.fixed .column-tags,.fixed .column-rel,.fixed .column-role{width:15%;}.fixed .column-comments{width:4em;padding-top:8px;text-align:left;}.fixed .column-comments .vers{padding-left:3px;}.fixed .column-comments a{float:left;}.fixed .column-slug{width:25%;}.fixed .column-posts{width:10%;}.fixed .column-icon{width:80px;}#commentsdiv .fixed .column-author,#comments-form .fixed .column-author{width:20%;}.widefat th,.widefat td{overflow:hidden;}.widefat td p{margin:2px 0 .8em;}table .vers,table .column-visible,table .column-rating{text-align:center;}.sorting-indicator{display:none;float:left;width:21px;height:4px;margin-top:5px;}th.sortable a,th.sorted-asc a,th.sorted-desc a{float:left;}th.sorted-asc .sorting-indicator,th.sorted-desc:hover .sorting-indicator,th.sortable:hover .sorting-indicator{display:block;background:url(../images/sort_asc.gif) no-repeat scroll 0 0;}th.sorted-desc .sorting-indicator,th.sorted-asc:hover .sorting-indicator{display:block;background:url(../images/sort_desc.gif) no-repeat scroll 0 0;}.icon32{float:left;height:36px;margin:14px 6px 0 0;width:36px;}.key-labels label{line-height:24px;}.subtitle{font-size:.75em;line-height:1;padding-left:25px;}ol{list-style-type:decimal;margin-left:2em;}.postbox-container{float:left;padding-right:.5%;}.postbox-container .meta-box-sortables{min-height:300px;}.temp-border{border:1px dotted #ccc;}.columns-prefs label{padding:0 5px;}.theme-install-php h4,.plugin-install-php h4{margin:2.5em 0 8px;}p.install-help{margin:8px 0;font-style:italic;}p.popular-tags{-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;border-width:1px;border-style:solid;line-height:2em;padding:8px 12px 12px;text-align:justify;}p.popular-tags a{padding:0 3px;}.stuffbox .editcomment{clear:none;}.ajax-feedback{visibility:hidden;vertical-align:bottom;}.tagsdiv .newtag{width:180px;}.tagsdiv .the-tags{display:block;height:60px;margin:0 auto;overflow:auto;width:260px;}#post-body-content .tagsdiv .the-tags{margin:0 5px;}label,#your-profile label+a{vertical-align:middle;}#misc-publishing-actions label{vertical-align:baseline;}.plugin-update-tr .update-message{margin:5px;padding:3px 5px;border-width:1px;border-style:solid;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.add-new-h2{font-style:normal;margin:0 6px;position:relative;top:-3px;}.describe .image-editor{vertical-align:top;}.imgedit-wrap{position:relative;}.imgedit-settings p{margin:8px 0;}.describe .imgedit-wrap table td{vertical-align:top;padding-top:0;}.imgedit-wrap p,.describe .imgedit-wrap table td{font-size:11px;line-height:18px;}.describe .imgedit-wrap table td.imgedit-settings{padding:0 5px;}td.imgedit-settings input{vertical-align:middle;}.imgedit-wait{position:absolute;top:0;background:#FFF url(../images/wpspin_light.gif) no-repeat scroll 22px 10px;opacity:.7;filter:alpha(opacity=70);width:100%;height:500px;display:none;}.media-disabled,.imgedit-settings .disabled{color:grey;}.imgedit-wait-spin{padding:0 4px 4px;vertical-align:bottom;visibility:hidden;}.imgedit-menu{margin:0 0 12px;min-width:300px;}.imgedit-menu div{float:left;width:32px;height:32px;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;border-width:1px;border-style:solid;}.imgedit-crop-wrap{position:relative;}.imgedit-crop{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -9px -31px;margin:0 8px 0 0;}.imgedit-crop.disabled:hover{background-position:-9px -31px;}.imgedit-crop:hover{background-position:-9px -1px;}.imgedit-rleft{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -46px -31px;margin:0 3px;}.imgedit-rleft.disabled:hover{background-position:-46px -31px;}.imgedit-rleft:hover{background-position:-46px -1px;}.imgedit-rright{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -77px -31px;margin:0 8px 0 3px;}.imgedit-rright.disabled:hover{background-position:-77px -31px;}.imgedit-rright:hover{background-position:-77px -1px;}.imgedit-flipv{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -115px -31px;margin:0 3px;}.imgedit-flipv.disabled:hover{background-position:-115px -31px;}.imgedit-flipv:hover{background-position:-115px -1px;}.imgedit-fliph{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -147px -31px;margin:0 8px 0 3px;}.imgedit-fliph.disabled:hover{background-position:-147px -31px;}.imgedit-fliph:hover{background-position:-147px -1px;}.imgedit-undo{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -184px -31px;margin:0 3px;}.imgedit-undo.disabled:hover{background-position:-184px -31px;}.imgedit-undo:hover{background-position:-184px -1px;}.imgedit-redo{background:transparent url(../images/imgedit-icons.png) no-repeat scroll -215px -31px;margin:0 8px 0 3px;}.imgedit-redo.disabled:hover{background-position:-215px -31px;}.imgedit-redo:hover{background-position:-215px -1px;}.imgedit-applyto img{margin:0 8px 0 0;}.imgedit-group-top{margin:5px 0;}.imgedit-applyto .imgedit-label{padding:2px 0 0;display:block;}.imgedit-help{display:none;font-style:italic;margin-bottom:8px;}.imgedit-help ul li{font-size:11px;}a.imgedit-help-toggle{text-decoration:none;}#wpbody-content .imgedit-response div{width:600px;margin:8px;}.form-table td.imgedit-response{padding:0;}.imgedit-submit{margin:8px 0;}.imgedit-submit-btn{margin-left:20px;}.imgedit-wrap .nowrap{white-space:nowrap;}span.imgedit-scale-warn{color:red;font-size:20px;font-style:normal;visibility:hidden;vertical-align:middle;}.imgedit-group{border-width:1px;border-style:solid;-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;margin-bottom:8px;padding:2px 10px;}#dashboard_recent_comments div.undo{border-top-style:solid;border-top-width:1px;margin:0 -10px;padding:3px 8px;font-size:11px;}.trash-undo-inside,.spam-undo-inside{margin:1px 8px 1px 0;line-height:16px;}.spam-undo-inside .avatar,.trash-undo-inside .avatar{height:20px;width:20px;margin-right:8px;vertical-align:middle;}.taghint{color:#aaa;margin:15px 0 -24px 12px;}#poststuff .tagsdiv .howto{margin:0 0 6px 8px;}.ajaxtag .newtag{background:transparent;position:relative;}#broken-themes{text-align:left;width:50%;border-spacing:3px;padding:3px;}.describe .del-link{padding-left:5px;}.comment-ays{margin-bottom:0;border-style:solid;border-width:1px;}.comment-ays th{border-right-style:solid;border-right-width:1px;}div#custom-background-image{min-height:100px;border:1px solid #dfdfdf;}div#custom-background-image img{max-width:400px;max-height:300px;}#custom-background label{padding-right:15px;}.appearance_page_custom-header #headimg{border:1px solid #DFDFDF;min-height:100px;width:100%;}.appearance_page_custom-header #upload-form p label{font-size:11px;}.appearance_page_custom-header #available-headers .default-header{float:left;margin:0 20px 20px 0;}.appearance_page_custom-header #available-headers label input{margin-right:10px;}.appearance_page_custom-header #available-headers label img{vertical-align:middle;}.nav-tab{border-style:solid;border-color:#ccc #ccc #f9f9f9;border-width:1px 1px 0;color:#c1c1c1;text-shadow:rgba(255,255,255,1) 0 1px 0;font-size:12px;line-height:16px;display:inline-block;padding:4px 14px 6px;text-decoration:none;margin:0 6px -1px 0;-moz-border-radius:5px 5px 0 0;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;-khtml-border-top-left-radius:5px;-khtml-border-top-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;}.nav-tab-active{border-width:1px;color:#464646;}.themes-php .wrap h2,.theme-install-php .wrap h2{border-bottom:1px solid #ccc;padding-bottom:0;}h2 .nav-tab{padding:4px 20px 6px;font:italic normal normal 24px/35px Georgia,&quot;Times New Roman&quot;,&quot;Bitstream Charter&quot;,Times,serif;}body.update-php{height:98%;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincsswpadmindevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin.dev.css (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin.dev.css        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/css/wp-admin.dev.css        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -27,6 +27,8 @@
</span><span class="cx">         padding: 2px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.plugins #name {width: 33%}
+
</ins><span class="cx"> .plugins .name,
</span><span class="cx"> #pass-strength-result.strong,
</span><span class="cx"> #pass-strength-result.short,
</span><span class="lines">@@ -67,12 +69,11 @@
</span><span class="cx">         padding: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.widefat tbody.plugins th.check-column {
</del><ins>+.plugins tbody th.check-column {
</ins><span class="cx">         padding: 7px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.widefat .plugins td,
-.widefat .plugins th {
</del><ins>+.plugins td, .plugins th {
</ins><span class="cx">         border-bottom: 0 none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -115,6 +116,16 @@
</span><span class="cx">         margin: 10px 20px 10px 20px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#loading-items {
+        position: absolute;
+        z-index: 9999;
+        padding: 10px;
+        background-color: #fff;
+        font-weight: bold;
+        text-align: center;
+        opacity: 0.5;
+}
+
</ins><span class="cx"> table#availablethemes {
</span><span class="cx">         border-spacing: 0;
</span><span class="cx">         border-width: 1px 0;
</span><span class="lines">@@ -714,13 +725,19 @@
</span><span class="cx">         padding: 2px 4px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-a.page-numbers {
</del><ins>+.tablenav-pages a {
</ins><span class="cx">         border-bottom-style: solid;
</span><span class="cx">         border-bottom-width: 2px;
</span><span class="cx">         font-weight: bold;
</span><span class="cx">         margin-right: 1px;
</span><span class="cx">         padding: 0 2px;
</span><span class="cx"> }
</span><ins>+.tablenav-pages .current-page {
+        text-align: center;
+}
+.tablenav-pages .next-page {
+        margin-left: 2px;
+}
</ins><span class="cx"> 
</span><span class="cx"> p.pagenav {
</span><span class="cx">         margin: 0;
</span><span class="lines">@@ -1346,12 +1363,12 @@
</span><span class="cx">         width: 99%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.form-table input.regular-text,
</del><ins>+input.regular-text,
</ins><span class="cx"> #adduser .form-field input {
</span><span class="cx">         width: 25em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.form-table input.small-text {
</del><ins>+input.small-text {
</ins><span class="cx">         width: 50px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3240,7 +3257,14 @@
</span><span class="cx"> .fixed .column-comments {
</span><span class="cx">         width: 4em;
</span><span class="cx">         padding-top: 8px;
</span><ins>+        text-align: left;
</ins><span class="cx"> }
</span><ins>+.fixed .column-comments .vers {
+        padding-left: 3px;
+}
+.fixed .column-comments a {
+        float: left;
+}
</ins><span class="cx"> 
</span><span class="cx"> .fixed .column-slug {
</span><span class="cx">         width: 25%;
</span><span class="lines">@@ -3274,6 +3298,25 @@
</span><span class="cx">         text-align: center;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.sorting-indicator {
+        display: none;
+        float: left;
+        width: 21px;
+        height: 4px;
+        margin-top: 5px;
+}
+th.sortable a, th.sorted-asc a, th.sorted-desc a {
+        float: left;
+}
+th.sorted-asc .sorting-indicator, th.sorted-desc:hover .sorting-indicator, th.sortable:hover .sorting-indicator {
+        display: block;
+        background: url(../images/sort_asc.gif) no-repeat scroll 0 0;
+}
+th.sorted-desc .sorting-indicator, th.sorted-asc:hover .sorting-indicator {
+        display: block;
+        background: url(../images/sort_desc.gif) no-repeat scroll 0 0;
+}
+
</ins><span class="cx"> .icon32 {
</span><span class="cx">         float: left;
</span><span class="cx">         height: 36px;
</span></span></pre></div>
<a id="trunkwpadmineditcommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-comments.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-comments.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/edit-comments.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -12,65 +12,60 @@
</span><span class="cx"> if ( !current_user_can('edit_posts') )
</span><span class="cx">         wp_die(__('Cheatin&amp;#8217; uh?'));
</span><span class="cx"> 
</span><del>-wp_enqueue_script('admin-comments');
-enqueue_comment_hotkeys_js();
</del><ins>+if ( isset( $_REQUEST['doaction'] ) ||  isset( $_REQUEST['doaction2'] ) || isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
+        check_admin_referer( 'bulk-comments' );
</ins><span class="cx"> 
</span><del>-$post_id = isset($_REQUEST['p']) ? (int) $_REQUEST['p'] : 0;
-
-if ( isset($_REQUEST['doaction']) ||  isset($_REQUEST['doaction2']) || isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2']) ) {
-        check_admin_referer('bulk-comments');
-
-        if ( (isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2'])) &amp;&amp; !empty($_REQUEST['pagegen_timestamp']) ) {
-                $comment_status = $wpdb-&gt;escape($_REQUEST['comment_status']);
-                $delete_time = $wpdb-&gt;escape($_REQUEST['pagegen_timestamp']);
</del><ins>+        if ( ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) &amp;&amp; !empty( $_REQUEST['pagegen_timestamp'] ) ) {
+                $comment_status = $wpdb-&gt;escape( $_REQUEST['comment_status'] );
+                $delete_time = $wpdb-&gt;escape( $_REQUEST['pagegen_timestamp'] );
</ins><span class="cx">                 $comment_ids = $wpdb-&gt;get_col( &quot;SELECT comment_ID FROM $wpdb-&gt;comments WHERE comment_approved = '$comment_status' AND '$delete_time' &gt; comment_date_gmt&quot; );
</span><span class="cx">                 $doaction = 'delete';
</span><del>-        } elseif ( ($_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1) &amp;&amp; isset($_REQUEST['delete_comments']) ) {
</del><ins>+        } elseif ( ( $_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1 ) &amp;&amp; isset( $_REQUEST['delete_comments'] ) ) {
</ins><span class="cx">                 $comment_ids = $_REQUEST['delete_comments'];
</span><del>-                $doaction = ($_REQUEST['action'] != -1) ? $_REQUEST['action'] : $_REQUEST['action2'];
-        } elseif ( $_REQUEST['doaction'] == 'undo' &amp;&amp; isset($_REQUEST['ids']) ) {
-                $comment_ids = array_map( 'absint', explode(',', $_REQUEST['ids']) );
</del><ins>+                $doaction = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2'];
+        } elseif ( $_REQUEST['doaction'] == 'undo' &amp;&amp; isset( $_REQUEST['ids'] ) ) {
+                $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) );
</ins><span class="cx">                 $doaction = $_REQUEST['action'];
</span><span class="cx">         } else {
</span><span class="cx">                 wp_redirect( wp_get_referer() );
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $approved = $unapproved = $spammed = $unspammed = $trashed = $untrashed = $deleted = 0;
</span><del>-        $redirect_to = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'spammed', 'unspammed', 'approved', 'unapproved', 'ids'), wp_get_referer() );
</del><ins>+        $redirect_to = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'spammed', 'unspammed', 'approved', 'unapproved', 'ids' ), wp_get_referer() );
</ins><span class="cx"> 
</span><del>-        foreach ($comment_ids as $comment_id) { // Check the permissions on each
-                $_post_id = (int) $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT comment_post_ID FROM $wpdb-&gt;comments WHERE comment_ID = %d&quot;, $comment_id) );
</del><ins>+        foreach ( $comment_ids as $comment_id ) { // Check the permissions on each
+                $_post_id = (int) $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT comment_post_ID FROM $wpdb-&gt;comments WHERE comment_ID = %d&quot;, $comment_id ) );
</ins><span class="cx"> 
</span><del>-                if ( !current_user_can('edit_post', $_post_id) )
</del><ins>+                if ( !current_user_can( 'edit_post', $_post_id ) )
</ins><span class="cx">                         continue;
</span><span class="cx"> 
</span><del>-                switch( $doaction ) {
</del><ins>+                switch ( $doaction ) {
</ins><span class="cx">                         case 'approve' :
</span><del>-                                wp_set_comment_status($comment_id, 'approve');
</del><ins>+                                wp_set_comment_status( $comment_id, 'approve' );
</ins><span class="cx">                                 $approved++;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'unapprove' :
</span><del>-                                wp_set_comment_status($comment_id, 'hold');
</del><ins>+                                wp_set_comment_status( $comment_id, 'hold' );
</ins><span class="cx">                                 $unapproved++;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'spam' :
</span><del>-                                wp_spam_comment($comment_id);
</del><ins>+                                wp_spam_comment( $comment_id );
</ins><span class="cx">                                 $spammed++;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'unspam' :
</span><del>-                                wp_unspam_comment($comment_id);
</del><ins>+                                wp_unspam_comment( $comment_id );
</ins><span class="cx">                                 $unspammed++;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'trash' :
</span><del>-                                wp_trash_comment($comment_id);
</del><ins>+                                wp_trash_comment( $comment_id );
</ins><span class="cx">                                 $trashed++;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'untrash' :
</span><del>-                                wp_untrash_comment($comment_id);
</del><ins>+                                wp_untrash_comment( $comment_id );
</ins><span class="cx">                                 $untrashed++;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'delete' :
</span><del>-                                wp_delete_comment($comment_id);
</del><ins>+                                wp_delete_comment( $comment_id );
</ins><span class="cx">                                 $deleted++;
</span><span class="cx">                                 break;
</span><span class="cx">                 }
</span><span class="lines">@@ -91,15 +86,22 @@
</span><span class="cx">         if ( $deleted )
</span><span class="cx">                 $redirect_to = add_query_arg( 'deleted', $deleted, $redirect_to );
</span><span class="cx">         if ( $trashed || $spammed )
</span><del>-                $redirect_to = add_query_arg( 'ids', join(',', $comment_ids), $redirect_to );
</del><ins>+                $redirect_to = add_query_arg( 'ids', join( ',', $comment_ids ), $redirect_to );
</ins><span class="cx"> 
</span><span class="cx">         wp_redirect( $redirect_to );
</span><span class="cx">         exit;
</span><del>-} elseif ( ! empty($_GET['_wp_http_referer']) ) {
-         wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</del><ins>+} elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {
+         wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) );
</ins><span class="cx">          exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+require_once( './includes/default-list-tables.php' );
+
+$table = new WP_Comments_Table;
+
+wp_enqueue_script('admin-comments');
+enqueue_comment_hotkeys_js();
+
</ins><span class="cx"> if ( $post_id )
</span><span class="cx">         $title = sprintf(__('Comments on &amp;#8220;%s&amp;#8221;'), wp_html_excerpt(_draft_or_post_title($post_id), 50));
</span><span class="cx"> else
</span><span class="lines">@@ -118,28 +120,18 @@
</span><span class="cx">         '&lt;p&gt;' . __( '&lt;a href=&quot;http://wordpress.org/support/&quot; target=&quot;_blank&quot;&gt;Support Forums&lt;/a&gt;') . '&lt;/p&gt;'
</span><span class="cx"> );
</span><span class="cx"> require_once('./admin-header.php');
</span><ins>+?&gt;
</ins><span class="cx"> 
</span><del>-$mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
-
-$comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all';
-if ( !in_array($comment_status, array('all', 'moderated', 'approved', 'spam', 'trash')) )
-        $comment_status = 'all';
-
-$comment_type = !empty($_GET['comment_type']) ? esc_attr($_GET['comment_type']) : '';
-
-$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
-$search = esc_attr( $search_dirty ); ?&gt;
-
</del><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title );
</span><del>-if ( isset($_GET['s']) &amp;&amp; $_GET['s'] )
-        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . sprintf( __( 'Search results for &amp;#8220;%s&amp;#8221;' ), wp_html_excerpt( esc_html( stripslashes( $_GET['s'] ) ), 50 ) ) . '&lt;/span&gt;' ); ?&gt;
</del><ins>+if ( isset($_REQUEST['s']) &amp;&amp; $_REQUEST['s'] )
+        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . sprintf( __( 'Search results for &amp;#8220;%s&amp;#8221;' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '&lt;/span&gt;' ); ?&gt;
</ins><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><del>-if ( isset( $_GET['error'] ) ) {
-        $error = (int) $_GET['error'];
</del><ins>+if ( isset( $_REQUEST['error'] ) ) {
+        $error = (int) $_REQUEST['error'];
</ins><span class="cx">         $error_msg = '';
</span><span class="cx">         switch ( $error ) {
</span><span class="cx">                 case 1 :
</span><span class="lines">@@ -153,21 +145,21 @@
</span><span class="cx">                 echo '&lt;div id=&quot;moderated&quot; class=&quot;error&quot;&gt;&lt;p&gt;' . $error_msg . '&lt;/p&gt;&lt;/div&gt;';
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( isset($_GET['approved']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) || isset($_GET['spammed']) || isset($_GET['unspammed']) || isset($_GET['same']) ) {
-        $approved  = isset( $_GET['approved']  ) ? (int) $_GET['approved']  : 0;
-        $deleted   = isset( $_GET['deleted']   ) ? (int) $_GET['deleted']   : 0;
-        $trashed   = isset( $_GET['trashed']   ) ? (int) $_GET['trashed']   : 0;
-        $untrashed = isset( $_GET['untrashed'] ) ? (int) $_GET['untrashed'] : 0;
-        $spammed   = isset( $_GET['spammed']   ) ? (int) $_GET['spammed']   : 0;
-        $unspammed = isset( $_GET['unspammed'] ) ? (int) $_GET['unspammed'] : 0;
-        $same      = isset( $_GET['same'] )      ? (int) $_GET['same']      : 0;
</del><ins>+if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) || isset($_REQUEST['spammed']) || isset($_REQUEST['unspammed']) || isset($_REQUEST['same']) ) {
+        $approved  = isset( $_REQUEST['approved']  ) ? (int) $_REQUEST['approved']  : 0;
+        $deleted   = isset( $_REQUEST['deleted']   ) ? (int) $_REQUEST['deleted']   : 0;
+        $trashed   = isset( $_REQUEST['trashed']   ) ? (int) $_REQUEST['trashed']   : 0;
+        $untrashed = isset( $_REQUEST['untrashed'] ) ? (int) $_REQUEST['untrashed'] : 0;
+        $spammed   = isset( $_REQUEST['spammed']   ) ? (int) $_REQUEST['spammed']   : 0;
+        $unspammed = isset( $_REQUEST['unspammed'] ) ? (int) $_REQUEST['unspammed'] : 0;
+        $same      = isset( $_REQUEST['same'] )      ? (int) $_REQUEST['same']      : 0;
</ins><span class="cx"> 
</span><span class="cx">         if ( $approved &gt; 0 || $deleted &gt; 0 || $trashed &gt; 0 || $untrashed &gt; 0 || $spammed &gt; 0 || $unspammed &gt; 0 || $same &gt; 0 ) {
</span><span class="cx">                 if ( $approved &gt; 0 )
</span><span class="cx">                         $messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
</span><span class="cx"> 
</span><span class="cx">                 if ( $spammed &gt; 0 ) {
</span><del>-                        $ids = isset($_GET['ids']) ? $_GET['ids'] : 0;
</del><ins>+                        $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0;
</ins><span class="cx">                         $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' &lt;a href=&quot;' . esc_url( wp_nonce_url( &quot;edit-comments.php?doaction=undo&amp;action=unspam&amp;ids=$ids&quot;, &quot;bulk-comments&quot; ) ) . '&quot;&gt;' . __('Undo') . '&lt;/a&gt;&lt;br /&gt;';
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -175,7 +167,7 @@
</span><span class="cx">                         $messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed );
</span><span class="cx"> 
</span><span class="cx">                 if ( $trashed &gt; 0 ) {
</span><del>-                        $ids = isset($_GET['ids']) ? $_GET['ids'] : 0;
</del><ins>+                        $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0;
</ins><span class="cx">                         $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' &lt;a href=&quot;' . esc_url( wp_nonce_url( &quot;edit-comments.php?doaction=undo&amp;action=untrash&amp;ids=$ids&quot;, &quot;bulk-comments&quot; ) ) . '&quot;&gt;' . __('Undo') . '&lt;/a&gt;&lt;br /&gt;';
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -204,7 +196,7 @@
</span><span class="cx"> }
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><del>-&lt;form id=&quot;comments-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</del><ins>+&lt;form id=&quot;comments-form&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</ins><span class="cx"> &lt;ul class=&quot;subsubsub&quot;&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> $status_links = array();
</span><span class="lines">@@ -233,11 +225,11 @@
</span><span class="cx">                 $num_comments-&gt;$status = 10;
</span><span class="cx">         $link = add_query_arg( 'comment_status', $status, $link );
</span><span class="cx">         if ( $post_id )
</span><del>-                $link = add_query_arg( 'p', absint( $post_id ), $link );
</del><ins>+                $link = add_query_arg( 'post_ID', absint( $post_id ), $link );
</ins><span class="cx">         /*
</span><span class="cx">         // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
</span><del>-        if ( !empty( $_GET['s'] ) )
-                $link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link );
</del><ins>+        if ( !empty( $_REQUEST['s'] ) )
+                $link = add_query_arg( 's', esc_attr( stripslashes( $_REQUEST['s'] ) ), $link );
</ins><span class="cx">         */
</span><span class="cx">         $status_links[] = &quot;&lt;li class='$status'&gt;&lt;a href='$link'$class&gt;&quot; . sprintf(
</span><span class="cx">                 _n( $label[0], $label[1], $num_comments-&gt;$status ),
</span><span class="lines">@@ -258,200 +250,28 @@
</span><span class="cx">         &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Search Comments' ); ?&gt;&quot; class=&quot;button&quot; /&gt;
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;?php
-$comments_per_page = (int) get_user_option( 'edit_comments_per_page' );
-if ( empty( $comments_per_page ) || $comments_per_page &lt; 1 )
-        $comments_per_page = 20;
-$comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
-
-if ( isset( $_GET['apage'] ) )
-        $page = abs( (int) $_GET['apage'] );
-else
-        $page = 1;
-
-$start = $offset = ( $page - 1 ) * $comments_per_page;
-
-list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 8, $post_id, $comment_type ); // Grab a few extra
-
-$_comment_post_ids = array();
-foreach ( $_comments as $_c ) {
-        $_comment_post_ids[] = $_c-&gt;comment_post_ID;
-}
-
-$_comment_pending_count = get_pending_comments_num($_comment_post_ids);
-
-$comments = array_slice($_comments, 0, $comments_per_page);
-$extra_comments = array_slice($_comments, $comments_per_page);
-
-$page_links = paginate_links( array(
-        'base' =&gt; add_query_arg( 'apage', '%#%' ),
-        'format' =&gt; '',
-        'prev_text' =&gt; __('&amp;laquo;'),
-        'next_text' =&gt; __('&amp;raquo;'),
-        'total' =&gt; ceil($total / $comments_per_page),
-        'current' =&gt; $page
-));
-
-?&gt;
-
</del><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;mode&quot; value=&quot;&lt;?php echo esc_attr($mode); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;?php if ( $post_id ) : ?&gt;
</span><del>-&lt;input type=&quot;hidden&quot; name=&quot;p&quot; value=&quot;&lt;?php echo esc_attr( intval( $post_id ) ); ?&gt;&quot; /&gt;
</del><ins>+&lt;input type=&quot;hidden&quot; name=&quot;post_ID&quot; value=&quot;&lt;?php echo esc_attr( intval( $post_id ) ); ?&gt;&quot; /&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;comment_status&quot; value=&quot;&lt;?php echo esc_attr($comment_status); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;pagegen_timestamp&quot; value=&quot;&lt;?php echo esc_attr(current_time('mysql', 1)); ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;tablenav&quot;&gt;
-
-&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( $start + 1 ),
-        number_format_i18n( min( $page * $comments_per_page, $total ) ),
-        '&lt;span class=&quot;total-type-count&quot;&gt;' . number_format_i18n( $total ) . '&lt;/span&gt;',
-        $page_links
-); echo $page_links_text; ?&gt;&lt;/div&gt;
</del><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;_total&quot; value=&quot;&lt;?php echo esc_attr($total); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;_per_page&quot; value=&quot;&lt;?php echo esc_attr($comments_per_page); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;_page&quot; value=&quot;&lt;?php echo esc_attr($page); ?&gt;&quot; /&gt;
</span><del>-&lt;?php endif; ?&gt;
</del><span class="cx"> 
</span><del>-&lt;?php if ( $comments ) : ?&gt;
-&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;?php if ( 'all' == $comment_status || 'approved' == $comment_status ): ?&gt;
-&lt;option value=&quot;unapprove&quot;&gt;&lt;?php _e('Unapprove'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'all' == $comment_status || 'moderated' == $comment_status || 'spam' == $comment_status ): ?&gt;
-&lt;option value=&quot;approve&quot;&gt;&lt;?php _e('Approve'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?&gt;
-&lt;option value=&quot;spam&quot;&gt;&lt;?php _ex('Mark as Spam', 'comment'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'trash' == $comment_status ): ?&gt;
-&lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
-&lt;?php elseif ( 'spam' == $comment_status ): ?&gt;
-&lt;option value=&quot;unspam&quot;&gt;&lt;?php _ex('Not Spam', 'comment'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'trash' == $comment_status || 'spam' == $comment_status || !EMPTY_TRASH_DAYS ): ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
-&lt;?php else: ?&gt;
-&lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;/select&gt;
-&lt;input type=&quot;submit&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php wp_nonce_field('bulk-comments'); ?&gt;
</del><ins>+&lt;?php if ( isset($_REQUEST['paged']) ) { ?&gt;
+        &lt;input type=&quot;hidden&quot; name=&quot;paged&quot; value=&quot;&lt;?php echo esc_attr( absint( $_REQUEST['paged'] ) ); ?&gt;&quot; /&gt;
+&lt;?php } ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;?php endif; ?&gt;
</del><ins>+&lt;?php if ( $table-&gt;has_items() ) { ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;select name=&quot;comment_type&quot;&gt;
-        &lt;option value=&quot;all&quot;&gt;&lt;?php _e('Show all comment types'); ?&gt;&lt;/option&gt;
-&lt;?php
-        $comment_types = apply_filters( 'admin_comment_types_dropdown', array(
-                'comment' =&gt; __('Comments'),
-                'pings' =&gt; __('Pings'),
-        ) );
</del><ins>+&lt;?php $table-&gt;display_table(); ?&gt;
</ins><span class="cx"> 
</span><del>-        foreach ( $comment_types as $type =&gt; $label ) {
-                echo &quot;        &lt;option value='&quot; . esc_attr($type) . &quot;'&quot;;
-                selected( $comment_type, $type );
-                echo &quot;&gt;$label&lt;/option&gt;\n&quot;;
-        }
-?&gt;
-&lt;/select&gt;
-&lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e('Filter'); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
-
-&lt;?php if ( isset($_GET['apage']) ) { ?&gt;
-        &lt;input type=&quot;hidden&quot; name=&quot;apage&quot; value=&quot;&lt;?php echo esc_attr( absint( $_GET['apage'] ) ); ?&gt;&quot; /&gt;
-&lt;?php }
-
-if ( ( 'spam' == $comment_status || 'trash' == $comment_status) &amp;&amp; current_user_can ('moderate_comments') ) {
-        wp_nonce_field('bulk-destroy', '_destroy_nonce');
-    if ( 'spam' == $comment_status &amp;&amp; current_user_can('moderate_comments') ) { ?&gt;
-                &lt;input type=&quot;submit&quot; name=&quot;delete_all&quot; id=&quot;delete_all&quot; value=&quot;&lt;?php esc_attr_e('Empty Spam'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } elseif ( 'trash' == $comment_status &amp;&amp; current_user_can('moderate_comments') ) { ?&gt;
-                &lt;input type=&quot;submit&quot; name=&quot;delete_all&quot; id=&quot;delete_all&quot; value=&quot;&lt;?php esc_attr_e('Empty Trash'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php }
-} ?&gt;
-&lt;?php do_action('manage_comments_nav', $comment_status); ?&gt;
-&lt;/div&gt;
-
</del><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><del>-
</del><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-&lt;?php if ( $comments ) { ?&gt;
-
-&lt;table class=&quot;widefat comments fixed&quot; cellspacing=&quot;0&quot;&gt;
-&lt;thead&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers('edit-comments'); ?&gt;
-        &lt;/tr&gt;
-&lt;/thead&gt;
-
-&lt;tfoot&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers('edit-comments', false); ?&gt;
-        &lt;/tr&gt;
-&lt;/tfoot&gt;
-
-&lt;tbody id=&quot;the-comment-list&quot; class=&quot;list:comment&quot;&gt;
-&lt;?php
-        foreach ($comments as $comment)
-                _wp_comment_row( $comment-&gt;comment_ID, $mode, $comment_status );
-?&gt;
-&lt;/tbody&gt;
-&lt;tbody id=&quot;the-extra-comment-list&quot; class=&quot;list:comment&quot; style=&quot;display: none;&quot;&gt;
-&lt;?php
-        foreach ($extra_comments as $comment)
-                _wp_comment_row( $comment-&gt;comment_ID, $mode, $comment_status );
-?&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-
-&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;?php if ( 'all' == $comment_status || 'approved' == $comment_status ): ?&gt;
-&lt;option value=&quot;unapprove&quot;&gt;&lt;?php _e('Unapprove'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'all' == $comment_status || 'moderated' == $comment_status || 'spam' == $comment_status ): ?&gt;
-&lt;option value=&quot;approve&quot;&gt;&lt;?php _e('Approve'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?&gt;
-&lt;option value=&quot;spam&quot;&gt;&lt;?php _ex('Mark as Spam', 'comment'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'trash' == $comment_status ): ?&gt;
-&lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;?php if ( 'trash' == $comment_status || 'spam' == $comment_status || !EMPTY_TRASH_DAYS ): ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
-&lt;?php elseif ( 'spam' == $comment_status ): ?&gt;
-&lt;option value=&quot;unspam&quot;&gt;&lt;?php _ex('Not Spam', 'comment'); ?&gt;&lt;/option&gt;
-&lt;?php else: ?&gt;
-&lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
-&lt;?php endif; ?&gt;
-&lt;/select&gt;
-&lt;input type=&quot;submit&quot; name=&quot;doaction2&quot; id=&quot;doaction2&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-
-&lt;?php if ( 'spam' == $comment_status &amp;&amp; current_user_can('moderate_comments') ) { ?&gt;
-&lt;input type=&quot;submit&quot; name=&quot;delete_all2&quot; id=&quot;delete_all2&quot; value=&quot;&lt;?php esc_attr_e('Empty Spam'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } elseif ( 'trash' == $comment_status &amp;&amp; current_user_can('moderate_comments') ) { ?&gt;
-&lt;input type=&quot;submit&quot; name=&quot;delete_all2&quot; id=&quot;delete_all2&quot; value=&quot;&lt;?php esc_attr_e('Empty Trash'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } ?&gt;
-&lt;?php do_action('manage_comments_nav', $comment_status); ?&gt;
-&lt;/div&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
</del><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;get-extra-comments&quot; method=&quot;post&quot; action=&quot;&quot; class=&quot;add:the-extra-comment-list:&quot; style=&quot;display: none;&quot;&gt;
</span><span class="lines">@@ -460,7 +280,7 @@
</span><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;comment_status&quot; value=&quot;&lt;?php echo esc_attr($comment_status); ?&gt;&quot; /&gt;
</span><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;page&quot; value=&quot;&lt;?php echo esc_attr($page); ?&gt;&quot; /&gt;
</span><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;per_page&quot; value=&quot;&lt;?php echo esc_attr($comments_per_page); ?&gt;&quot; /&gt;
</span><del>-        &lt;input type=&quot;hidden&quot; name=&quot;p&quot; value=&quot;&lt;?php echo esc_attr( $post_id ); ?&gt;&quot; /&gt;
</del><ins>+        &lt;input type=&quot;hidden&quot; name=&quot;post_ID&quot; value=&quot;&lt;?php echo esc_attr( $post_id ); ?&gt;&quot; /&gt;
</ins><span class="cx">         &lt;input type=&quot;hidden&quot; name=&quot;comment_type&quot; value=&quot;&lt;?php echo esc_attr( $comment_type ); ?&gt;&quot; /&gt;
</span><span class="cx">         &lt;?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?&gt;
</span><span class="cx"> &lt;/form&gt;
</span></span></pre></div>
<a id="trunkwpadminedittagsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tags.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tags.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/edit-tags.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -9,24 +9,12 @@
</span><span class="cx"> /** WordPress Administration Bootstrap */
</span><span class="cx"> require_once('./admin.php');
</span><span class="cx"> 
</span><del>-wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') );
</del><ins>+require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><del>-if ( empty($taxonomy) )
-        $taxonomy = 'post_tag';
</del><ins>+$table = new WP_Terms_Table;
</ins><span class="cx"> 
</span><del>-if ( !taxonomy_exists($taxonomy) )
-        wp_die(__('Invalid taxonomy'));
-
-$tax = get_taxonomy($taxonomy);
-
-if ( ! current_user_can($tax-&gt;cap-&gt;manage_terms) )
-        wp_die(__('Cheatin&amp;#8217; uh?'));
-
</del><span class="cx"> $title = $tax-&gt;labels-&gt;name;
</span><span class="cx"> 
</span><del>-if ( empty($post_type) || !in_array( $post_type, get_post_types( array('public' =&gt; true) ) ) )
-        $post_type = 'post';
-
</del><span class="cx"> if ( 'post' != $post_type ) {
</span><span class="cx">         $parent_file = &quot;edit.php?post_type=$post_type&quot;;
</span><span class="cx">         $submenu_file = &quot;edit-tags.php?taxonomy=$taxonomy&amp;amp;post_type=$post_type&quot;;
</span><span class="lines">@@ -35,33 +23,33 @@
</span><span class="cx">         $submenu_file = &quot;edit-tags.php?taxonomy=$taxonomy&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( isset( $_GET['action'] ) &amp;&amp; isset($_GET['delete_tags']) &amp;&amp; ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
</del><ins>+if ( isset( $_REQUEST['action'] ) &amp;&amp; isset( $_REQUEST['delete_tags'] ) &amp;&amp; ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) )
</ins><span class="cx">         $action = 'bulk-delete';
</span><span class="cx"> 
</span><del>-switch($action) {
</del><ins>+switch ( $action ) {
</ins><span class="cx"> 
</span><span class="cx"> case 'add-tag':
</span><span class="cx"> 
</span><del>-        check_admin_referer('add-tag');
</del><ins>+        check_admin_referer( 'add-tag' );
</ins><span class="cx"> 
</span><del>-        if ( !current_user_can($tax-&gt;cap-&gt;edit_terms) )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
</del><ins>+        if ( !current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
+                wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
</ins><span class="cx"> 
</span><del>-        $ret = wp_insert_term($_POST['tag-name'], $taxonomy, $_POST);
</del><ins>+        $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST );
</ins><span class="cx">         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
</span><span class="cx">         if ( 'post' != $post_type )
</span><span class="cx">                 $location .= '&amp;post_type=' . $post_type;
</span><span class="cx"> 
</span><span class="cx">         if ( $referer = wp_get_original_referer() ) {
</span><del>-                if ( false !== strpos($referer, 'edit-tags.php') )
</del><ins>+                if ( false !== strpos( $referer, 'edit-tags.php' ) )
</ins><span class="cx">                         $location = $referer;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ( $ret &amp;&amp; !is_wp_error( $ret ) )
</span><del>-                $location = add_query_arg('message', 1, $location);
</del><ins>+                $location = add_query_arg( 'message', 1, $location );
</ins><span class="cx">         else
</span><del>-                $location = add_query_arg('message', 4, $location);
-        wp_redirect($location);
</del><ins>+                $location = add_query_arg( 'message', 4, $location );
+        wp_redirect( $location );
</ins><span class="cx">         exit;
</span><span class="cx"> break;
</span><span class="cx"> 
</span><span class="lines">@@ -70,50 +58,50 @@
</span><span class="cx">         if ( 'post' != $post_type )
</span><span class="cx">                 $location .= '&amp;post_type=' . $post_type;
</span><span class="cx">         if ( $referer = wp_get_referer() ) {
</span><del>-                if ( false !== strpos($referer, 'edit-tags.php') )
</del><ins>+                if ( false !== strpos( $referer, 'edit-tags.php' ) )
</ins><span class="cx">                         $location = $referer;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( !isset( $_GET['tag_ID'] ) ) {
-                wp_redirect($location);
</del><ins>+        if ( !isset( $_REQUEST['tag_ID'] ) ) {
+                wp_redirect( $location );
</ins><span class="cx">                 exit;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $tag_ID = (int) $_GET['tag_ID'];
-        check_admin_referer('delete-tag_' .  $tag_ID);
</del><ins>+        $tag_ID = (int) $_REQUEST['tag_ID'];
+        check_admin_referer( 'delete-tag_' .  $tag_ID );
</ins><span class="cx"> 
</span><del>-        if ( !current_user_can($tax-&gt;cap-&gt;delete_terms) )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
</del><ins>+        if ( !current_user_can( $tax-&gt;cap-&gt;delete_terms ) )
+                wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
</ins><span class="cx"> 
</span><del>-        wp_delete_term( $tag_ID, $taxonomy);
</del><ins>+        wp_delete_term( $tag_ID, $taxonomy );
</ins><span class="cx"> 
</span><del>-        $location = add_query_arg('message', 2, $location);
-        wp_redirect($location);
</del><ins>+        $location = add_query_arg( 'message', 2, $location );
+        wp_redirect( $location );
</ins><span class="cx">         exit;
</span><span class="cx"> 
</span><span class="cx"> break;
</span><span class="cx"> 
</span><span class="cx"> case 'bulk-delete':
</span><del>-        check_admin_referer('bulk-tags');
</del><ins>+        check_admin_referer( 'bulk-tags' );
</ins><span class="cx"> 
</span><del>-        if ( !current_user_can($tax-&gt;cap-&gt;delete_terms) )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
</del><ins>+        if ( !current_user_can( $tax-&gt;cap-&gt;delete_terms ) )
+                wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
</ins><span class="cx"> 
</span><del>-        $tags = (array) $_GET['delete_tags'];
-        foreach( $tags as $tag_ID ) {
-                wp_delete_term( $tag_ID, $taxonomy);
</del><ins>+        $tags = (array) $_REQUEST['delete_tags'];
+        foreach ( $tags as $tag_ID ) {
+                wp_delete_term( $tag_ID, $taxonomy );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
</span><span class="cx">         if ( 'post' != $post_type )
</span><span class="cx">                 $location .= '&amp;post_type=' . $post_type;
</span><span class="cx">         if ( $referer = wp_get_referer() ) {
</span><del>-                if ( false !== strpos($referer, 'edit-tags.php') )
</del><ins>+                if ( false !== strpos( $referer, 'edit-tags.php' ) )
</ins><span class="cx">                         $location = $referer;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $location = add_query_arg('message', 6, $location);
-        wp_redirect($location);
</del><ins>+        $location = add_query_arg( 'message', 6, $location );
+        wp_redirect( $location );
</ins><span class="cx">         exit;
</span><span class="cx"> 
</span><span class="cx"> break;
</span><span class="lines">@@ -121,47 +109,44 @@
</span><span class="cx"> case 'edit':
</span><span class="cx">         $title = $tax-&gt;labels-&gt;edit_item;
</span><span class="cx"> 
</span><del>-        require_once ('admin-header.php');
-        $tag_ID = (int) $_GET['tag_ID'];
</del><ins>+        require_once ( 'admin-header.php' );
+        $tag_ID = (int) $_REQUEST['tag_ID'];
</ins><span class="cx"> 
</span><del>-        if ( !current_user_can($tax-&gt;cap-&gt;edit_terms) )
-                wp_die( __('You are not allowed to edit this item.') );
</del><ins>+        $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' );
+        include( './edit-tag-form.php' );
</ins><span class="cx"> 
</span><del>-        $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
-        include('./edit-tag-form.php');
-
</del><span class="cx"> break;
</span><span class="cx"> 
</span><span class="cx"> case 'editedtag':
</span><span class="cx">         $tag_ID = (int) $_POST['tag_ID'];
</span><del>-        check_admin_referer('update-tag_' . $tag_ID);
</del><ins>+        check_admin_referer( 'update-tag_' . $tag_ID );
</ins><span class="cx"> 
</span><del>-        if ( !current_user_can($tax-&gt;cap-&gt;edit_terms) )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
</del><ins>+        if ( !current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
+                wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
</ins><span class="cx"> 
</span><del>-        $ret = wp_update_term($tag_ID, $taxonomy, $_POST);
</del><ins>+        $ret = wp_update_term( $tag_ID, $taxonomy, $_POST );
</ins><span class="cx"> 
</span><span class="cx">         $location = 'edit-tags.php?taxonomy=' . $taxonomy;
</span><span class="cx">         if ( 'post' != $post_type )
</span><span class="cx">                 $location .= '&amp;post_type=' . $post_type;
</span><span class="cx"> 
</span><span class="cx">         if ( $referer = wp_get_original_referer() ) {
</span><del>-                if ( false !== strpos($referer, 'edit-tags.php') )
</del><ins>+                if ( false !== strpos( $referer, 'edit-tags.php' ) )
</ins><span class="cx">                         $location = $referer;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ( $ret &amp;&amp; !is_wp_error( $ret ) )
</span><del>-                $location = add_query_arg('message', 3, $location);
</del><ins>+                $location = add_query_arg( 'message', 3, $location );
</ins><span class="cx">         else
</span><del>-                $location = add_query_arg('message', 5, $location);
</del><ins>+                $location = add_query_arg( 'message', 5, $location );
</ins><span class="cx"> 
</span><del>-        wp_redirect($location);
</del><ins>+        wp_redirect( $location );
</ins><span class="cx">         exit;
</span><span class="cx"> break;
</span><span class="cx"> 
</span><span class="cx"> default:
</span><span class="cx"> 
</span><del>-if ( ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+if ( ! empty($_REQUEST['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span><span class="lines">@@ -209,6 +194,9 @@
</span><span class="cx"> 
</span><span class="cx"> require_once ('admin-header.php');
</span><span class="cx"> 
</span><ins>+if ( !current_user_can($tax-&gt;cap-&gt;edit_terms) )
+        wp_die( __('You are not allowed to edit this item.') );
+
</ins><span class="cx"> $messages[1] = __('Item added.');
</span><span class="cx"> $messages[2] = __('Item deleted.');
</span><span class="cx"> $messages[3] = __('Item updated.');
</span><span class="lines">@@ -221,11 +209,11 @@
</span><span class="cx"> &lt;div class=&quot;wrap nosubsub&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title );
</span><del>-if ( !empty($_GET['s']) )
-        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( stripslashes($_GET['s']) ) ); ?&gt;
</del><ins>+if ( !empty($_REQUEST['s']) )
+        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( stripslashes($_REQUEST['s']) ) ); ?&gt;
</ins><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( isset($_GET['message']) &amp;&amp; ( $msg = (int) $_GET['message'] ) ) : ?&gt;
</del><ins>+&lt;?php if ( isset($_REQUEST['message']) &amp;&amp; ( $msg = (int) $_REQUEST['message'] ) ) : ?&gt;
</ins><span class="cx"> &lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;&lt;?php echo $messages[$msg]; ?&gt;&lt;/p&gt;&lt;/div&gt;
</span><span class="cx"> &lt;?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
</span><span class="cx"> endif; ?&gt;
</span><span class="lines">@@ -246,93 +234,13 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;col-right&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;col-wrap&quot;&gt;
</span><del>-&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</del><ins>+&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</ins><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;taxonomy&quot; value=&quot;&lt;?php echo esc_attr($taxonomy); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;post_type&quot; value=&quot;&lt;?php echo esc_attr($post_type); ?&gt;&quot; /&gt;
</span><del>-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php
-$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
-if ( empty($pagenum) )
-        $pagenum = 1;
</del><span class="cx"> 
</span><del>-$tags_per_page = (int) get_user_option( 'edit_' .  $taxonomy . '_per_page' );
</del><ins>+&lt;?php $table-&gt;display_table(); ?&gt;
</ins><span class="cx"> 
</span><del>-if ( empty($tags_per_page) || $tags_per_page &lt; 1 )
-        $tags_per_page = 20;
-
-if ( 'post_tag' == $taxonomy ) {
-        $tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
-        $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page ); // Old filter
-} elseif ( 'category' == $taxonomy ) {
-        $tags_per_page = apply_filters( 'edit_categories_per_page', $tags_per_page ); // Old filter
-} else {
-        $tags_per_page = apply_filters( 'edit_' . $taxonomy . '_per_page', $tags_per_page );
-}
-
-$searchterms = !empty($_GET['s']) ? trim(stripslashes($_GET['s'])) : '';
-
-$page_links = paginate_links( array(
-        'base' =&gt; add_query_arg( 'pagenum', '%#%' ),
-        'format' =&gt; '',
-        'prev_text' =&gt; __('&amp;laquo;'),
-        'next_text' =&gt; __('&amp;raquo;'),
-        'total' =&gt; ceil(wp_count_terms($taxonomy, array('search' =&gt; $searchterms)) / $tags_per_page),
-        'current' =&gt; $pagenum
-));
-
-if ( $page_links )
-        echo &quot;&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
-?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action&quot;&gt;
-&lt;option value=&quot;&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;/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-tags'); ?&gt;
-&lt;/div&gt;
-
</del><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><del>-&lt;/div&gt;
-
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-&lt;table class=&quot;widefat tag fixed&quot; cellspacing=&quot;0&quot;&gt;
-        &lt;thead&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers($current_screen); ?&gt;
-        &lt;/tr&gt;
-        &lt;/thead&gt;
-
-        &lt;tfoot&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers($current_screen, false); ?&gt;
-        &lt;/tr&gt;
-        &lt;/tfoot&gt;
-
-        &lt;tbody id=&quot;the-list&quot; class=&quot;list:tag&quot;&gt;
-&lt;?php tag_rows( $pagenum, $tags_per_page, $searchterms, $taxonomy ); ?&gt;
-        &lt;/tbody&gt;
-&lt;/table&gt;
-
-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php
-if ( $page_links )
-        echo &quot;&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
-?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action2&quot;&gt;
-&lt;option value=&quot;&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;/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;
-
-&lt;br class=&quot;clear&quot; /&gt;
</del><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php if ( 'category' == $taxonomy ) : ?&gt;
</span><span class="lines">@@ -358,7 +266,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><del>-if ( !is_taxonomy_hierarchical($taxonomy) ) {
</del><ins>+if ( !is_null( $tax-&gt;labels-&gt;popular_items ) ) {
</ins><span class="cx">         if ( current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
</span><span class="cx">                 $tag_cloud = wp_tag_cloud( array( 'taxonomy' =&gt; $taxonomy, 'echo' =&gt; false, 'link' =&gt; 'edit' ) );
</span><span class="cx">         else
</span><span class="lines">@@ -440,7 +348,7 @@
</span><span class="cx"> &lt;/div&gt;&lt;!-- /col-container --&gt;
</span><span class="cx"> &lt;/div&gt;&lt;!-- /wrap --&gt;
</span><span class="cx"> 
</span><del>-&lt;?php inline_edit_term_row('edit-tags', $taxonomy); ?&gt;
</del><ins>+&lt;?php $table-&gt;inline_edit(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><span class="cx"> break;
</span></span></pre></div>
<a id="trunkwpadmineditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/edit.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -7,65 +7,35 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /** WordPress Administration Bootstrap */
</span><del>-require_once('./admin.php');
</del><ins>+require_once( './admin.php' );
</ins><span class="cx"> 
</span><del>-if ( !isset($_GET['post_type']) )
-        $post_type = 'post';
-elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' =&gt; true ) ) ) )
-        $post_type = $_GET['post_type'];
-else
-        wp_die( __('Invalid post type') );
-$_GET['post_type'] = $post_type;
</del><ins>+require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><del>-$post_type_object = get_post_type_object($post_type);
</del><ins>+$table = new WP_Posts_Table;
</ins><span class="cx"> 
</span><del>-if ( !current_user_can($post_type_object-&gt;cap-&gt;edit_posts) )
-        wp_die(__('Cheatin&amp;#8217; uh?'));
-
</del><span class="cx"> // Back-compat for viewing comments of an entry
</span><del>-if ( $_redirect = intval( max( @$_GET['p'], @$_GET['attachment_id'], @$_GET['page_id'] ) ) ) {
</del><ins>+if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) {
</ins><span class="cx">         wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) );
</span><span class="cx">         exit;
</span><span class="cx"> } else {
</span><span class="cx">         unset( $_redirect );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( 'post' != $post_type ) {
-        $parent_file = &quot;edit.php?post_type=$post_type&quot;;
-        $submenu_file = &quot;edit.php?post_type=$post_type&quot;;
-        $post_new_file = &quot;post-new.php?post_type=$post_type&quot;;
-} else {
-        $parent_file = 'edit.php';
-        $submenu_file = 'edit.php';
-        $post_new_file = 'post-new.php';
-}
-
-$pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
-if ( empty($pagenum) )
-        $pagenum = 1;
-$edit_per_page = 'edit_' . $post_type . '_per_page';
-$per_page = (int) get_user_option( $edit_per_page );
-if ( empty( $per_page ) || $per_page &lt; 1 )
-        $per_page = 20;
-
-$per_page = apply_filters( $edit_per_page, $per_page );
-$per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type );
-
</del><span class="cx"> // Handle bulk actions
</span><del>-if ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) || isset($_GET['bulk_edit']) ) {
</del><ins>+if ( isset($_REQUEST['doaction']) || isset($_REQUEST['doaction2']) || isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2']) || isset($_REQUEST['bulk_edit']) ) {
</ins><span class="cx">         check_admin_referer('bulk-posts');
</span><span class="cx">         $sendback = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), wp_get_referer() );
</span><span class="cx"> 
</span><span class="cx">         if ( strpos($sendback, 'post.php') !== false )
</span><span class="cx">                 $sendback = admin_url($post_new_file);
</span><span class="cx"> 
</span><del>-        if ( isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) {
-                $post_status = preg_replace('/[^a-z0-9_-]+/i', '', $_GET['post_status']);
</del><ins>+        if ( isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2']) ) {
+                $post_status = preg_replace('/[^a-z0-9_-]+/i', '', $_REQUEST['post_status']);
</ins><span class="cx">                 $post_ids = $wpdb-&gt;get_col( $wpdb-&gt;prepare( &quot;SELECT ID FROM $wpdb-&gt;posts WHERE post_type=%s AND post_status = %s&quot;, $post_type, $post_status ) );
</span><span class="cx">                 $doaction = 'delete';
</span><del>-        } elseif ( ( $_GET['action'] != -1 || $_GET['action2'] != -1 ) &amp;&amp; ( isset($_GET['post']) || isset($_GET['ids']) ) ) {
-                $post_ids = isset($_GET['post']) ? array_map( 'intval', (array) $_GET['post'] ) : explode(',', $_GET['ids']);
-                $doaction = ($_GET['action'] != -1) ? $_GET['action'] : $_GET['action2'];
</del><ins>+        } elseif ( ( $_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1 ) &amp;&amp; ( isset($_REQUEST['post']) || isset($_REQUEST['ids']) ) ) {
+                $post_ids = isset($_REQUEST['post']) ? array_map( 'intval', (array) $_REQUEST['post'] ) : explode(',', $_REQUEST['ids']);
+                $doaction = ($_REQUEST['action'] != -1) ? $_REQUEST['action'] : $_REQUEST['action2'];
</ins><span class="cx">         } else {
</span><span class="cx">                 wp_redirect( admin_url(&quot;edit.php?post_type=$post_type&quot;) );
</span><span class="cx">         }
</span><span class="lines">@@ -117,7 +87,7 @@
</span><span class="cx">                         $sendback = add_query_arg('deleted', $deleted, $sendback);
</span><span class="cx">                         break;
</span><span class="cx">                 case 'edit':
</span><del>-                        $done = bulk_edit_posts($_GET);
</del><ins>+                        $done = bulk_edit_posts($_REQUEST);
</ins><span class="cx"> 
</span><span class="cx">                         if ( is_array($done) ) {
</span><span class="cx">                                 $done['updated'] = count( $done['updated'] );
</span><span class="lines">@@ -128,33 +98,28 @@
</span><span class="cx">                         break;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( isset($_GET['action']) )
</del><ins>+        if ( isset($_REQUEST['action']) )
</ins><span class="cx">                 $sendback = remove_query_arg( array('action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status',  'post', 'bulk_edit', 'post_view'), $sendback );
</span><span class="cx"> 
</span><span class="cx">         wp_redirect($sendback);
</span><span class="cx">         exit();
</span><del>-} elseif ( ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+} elseif ( ! empty($_REQUEST['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-wp_enqueue_script('inline-edit-post');
-
-$user_posts = false;
-if ( !current_user_can($post_type_object-&gt;cap-&gt;edit_others_posts) ) {
-        $user_posts_count = $wpdb-&gt;get_var( $wpdb-&gt;prepare(&quot;SELECT COUNT(1) FROM $wpdb-&gt;posts WHERE post_type = '%s' AND post_status NOT IN ('trash', 'auto-draft') AND post_author = %d&quot;, $post_type, $current_user-&gt;ID) );
-        $user_posts = true;
-        if ( $user_posts_count &amp;&amp; empty($_GET['post_status']) &amp;&amp; empty($_GET['all_posts']) &amp;&amp; empty($_GET['author']) )
-                $_GET['author'] = $current_user-&gt;ID;
</del><ins>+if ( 'post' != $post_type ) {
+        $parent_file = &quot;edit.php?post_type=$post_type&quot;;
+        $submenu_file = &quot;edit.php?post_type=$post_type&quot;;
+        $post_new_file = &quot;post-new.php?post_type=$post_type&quot;;
+} else {
+        $parent_file = 'edit.php';
+        $submenu_file = 'edit.php';
+        $post_new_file = 'post-new.php';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-$avail_post_stati = wp_edit_posts_query();
</del><ins>+wp_enqueue_script('inline-edit-post');
</ins><span class="cx"> 
</span><del>-if ( $post_type_object-&gt;hierarchical )
-        $num_pages = ceil($wp_query-&gt;post_count / $per_page);
-else
-        $num_pages = $wp_query-&gt;max_num_pages;
-
</del><span class="cx"> $title = $post_type_object-&gt;labels-&gt;name;
</span><span class="cx"> 
</span><span class="cx"> if ( 'post' == $post_type ) {
</span><span class="lines">@@ -190,55 +155,50 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> require_once('./admin-header.php');
</span><del>-
-if ( empty($_GET['mode']) )
-        $mode = 'list';
-else
-        $mode = esc_attr($_GET['mode']); ?&gt;
-
</del><ins>+?&gt;
</ins><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $post_type_object-&gt;labels-&gt;name ); ?&gt; &lt;a href=&quot;&lt;?php echo $post_new_file ?&gt;&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html($post_type_object-&gt;labels-&gt;add_new); ?&gt;&lt;/a&gt; &lt;?php
</span><del>-if ( isset($_GET['s']) &amp;&amp; $_GET['s'] )
</del><ins>+if ( isset($_REQUEST['s']) &amp;&amp; $_REQUEST['s'] )
</ins><span class="cx">         printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', get_search_query() ); ?&gt;
</span><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><del>-if ( isset($_GET['posted']) &amp;&amp; $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?&gt;
-&lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e('This has been saved.'); ?&gt;&lt;/strong&gt; &lt;a href=&quot;&lt;?php echo get_permalink( $_GET['posted'] ); ?&gt;&quot;&gt;&lt;?php _e('View Post'); ?&gt;&lt;/a&gt; | &lt;a href=&quot;&lt;?php echo get_edit_post_link( $_GET['posted'] ); ?&gt;&quot;&gt;&lt;?php _e('Edit Post'); ?&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</del><ins>+if ( isset($_REQUEST['posted']) &amp;&amp; $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?&gt;
+&lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e('This has been saved.'); ?&gt;&lt;/strong&gt; &lt;a href=&quot;&lt;?php echo get_permalink( $_REQUEST['posted'] ); ?&gt;&quot;&gt;&lt;?php _e('View Post'); ?&gt;&lt;/a&gt; | &lt;a href=&quot;&lt;?php echo get_edit_post_link( $_REQUEST['posted'] ); ?&gt;&quot;&gt;&lt;?php _e('Edit Post'); ?&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
</span><span class="cx"> endif; ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?&gt;
</del><ins>+&lt;?php if ( isset($_REQUEST['locked']) || isset($_REQUEST['skipped']) || isset($_REQUEST['updated']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) ) { ?&gt;
</ins><span class="cx"> &lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;
</span><del>-&lt;?php if ( isset($_GET['updated']) &amp;&amp; (int) $_GET['updated'] ) {
-        printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
-        unset($_GET['updated']);
</del><ins>+&lt;?php if ( isset($_REQUEST['updated']) &amp;&amp; (int) $_REQUEST['updated'] ) {
+        printf( _n( '%s post updated.', '%s posts updated.', $_REQUEST['updated'] ), number_format_i18n( $_REQUEST['updated'] ) );
+        unset($_REQUEST['updated']);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( isset($_GET['skipped']) &amp;&amp; (int) $_GET['skipped'] )
-        unset($_GET['skipped']);
</del><ins>+if ( isset($_REQUEST['skipped']) &amp;&amp; (int) $_REQUEST['skipped'] )
+        unset($_REQUEST['skipped']);
</ins><span class="cx"> 
</span><del>-if ( isset($_GET['locked']) &amp;&amp; (int) $_GET['locked'] ) {
-        printf( _n( '%s item not updated, somebody is editing it.', '%s items not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) );
-        unset($_GET['locked']);
</del><ins>+if ( isset($_REQUEST['locked']) &amp;&amp; (int) $_REQUEST['locked'] ) {
+        printf( _n( '%s item not updated, somebody is editing it.', '%s items not updated, somebody is editing them.', $_REQUEST['locked'] ), number_format_i18n( $_REQUEST['locked'] ) );
+        unset($_REQUEST['locked']);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( isset($_GET['deleted']) &amp;&amp; (int) $_GET['deleted'] ) {
-        printf( _n( 'Item permanently deleted.', '%s items permanently deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) );
-        unset($_GET['deleted']);
</del><ins>+if ( isset($_REQUEST['deleted']) &amp;&amp; (int) $_REQUEST['deleted'] ) {
+        printf( _n( 'Item permanently deleted.', '%s items permanently deleted.', $_REQUEST['deleted'] ), number_format_i18n( $_REQUEST['deleted'] ) );
+        unset($_REQUEST['deleted']);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( isset($_GET['trashed']) &amp;&amp; (int) $_GET['trashed'] ) {
-        printf( _n( 'Item moved to the Trash.', '%s items moved to the Trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) );
-        $ids = isset($_GET['ids']) ? $_GET['ids'] : 0;
</del><ins>+if ( isset($_REQUEST['trashed']) &amp;&amp; (int) $_REQUEST['trashed'] ) {
+        printf( _n( 'Item moved to the Trash.', '%s items moved to the Trash.', $_REQUEST['trashed'] ), number_format_i18n( $_REQUEST['trashed'] ) );
+        $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0;
</ins><span class="cx">         echo ' &lt;a href=&quot;' . esc_url( wp_nonce_url( &quot;edit.php?post_type=$post_type&amp;doaction=undo&amp;action=untrash&amp;ids=$ids&quot;, &quot;bulk-posts&quot; ) ) . '&quot;&gt;' . __('Undo') . '&lt;/a&gt;&lt;br /&gt;';
</span><del>-        unset($_GET['trashed']);
</del><ins>+        unset($_REQUEST['trashed']);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( isset($_GET['untrashed']) &amp;&amp; (int) $_GET['untrashed'] ) {
-        printf( _n( 'Item restored from the Trash.', '%s items restored from the Trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) );
-        unset($_GET['undeleted']);
</del><ins>+if ( isset($_REQUEST['untrashed']) &amp;&amp; (int) $_REQUEST['untrashed'] ) {
+        printf( _n( 'Item restored from the Trash.', '%s items restored from the Trash.', $_REQUEST['untrashed'] ), number_format_i18n( $_REQUEST['untrashed'] ) );
+        unset($_REQUEST['undeleted']);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated', 'deleted', 'trashed', 'untrashed'), $_SERVER['REQUEST_URI'] );
</span><span class="lines">@@ -246,7 +206,7 @@
</span><span class="cx"> &lt;/p&gt;&lt;/div&gt;
</span><span class="cx"> &lt;?php } ?&gt;
</span><span class="cx"> 
</span><del>-&lt;form id=&quot;posts-filter&quot; action=&quot;&lt;?php echo admin_url('edit.php'); ?&gt;&quot; method=&quot;get&quot;&gt;
</del><ins>+&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;ul class=&quot;subsubsub&quot;&gt;
</span><span class="cx"> &lt;?php
</span><span class="lines">@@ -256,8 +216,22 @@
</span><span class="cx"> $class = '';
</span><span class="cx"> $allposts = '';
</span><span class="cx"> 
</span><ins>+$user_posts = false;
+if ( !current_user_can( $post_type_object-&gt;cap-&gt;edit_others_posts ) ) {
+        $user_posts = true;
+
+        $user_posts_count = $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;
+                SELECT COUNT( 1 ) FROM $wpdb-&gt;posts
+                WHERE post_type = '%s' AND post_status NOT IN ( 'trash', 'auto-draft' )
+                AND post_author = %d
+        &quot;, $post_type, get_current_user_id() ) );
+
+        if ( $user_posts_count &amp;&amp; empty( $_REQUEST['post_status'] ) &amp;&amp; empty( $_REQUEST['all_posts'] ) &amp;&amp; empty( $_REQUEST['author'] ) )
+                $_REQUEST['author'] = get_current_user_id();
+}
+
</ins><span class="cx"> if ( $user_posts ) {
</span><del>-        if ( isset( $_GET['author'] ) &amp;&amp; ( $_GET['author'] == $current_user-&gt;ID ) )
</del><ins>+        if ( isset( $_REQUEST['author'] ) &amp;&amp; ( $_REQUEST['author'] == $current_user-&gt;ID ) )
</ins><span class="cx">                 $class = ' class=&quot;current&quot;';
</span><span class="cx">         $status_links[] = &quot;&lt;li&gt;&lt;a href='edit.php?post_type=$post_type&amp;author=$current_user-&gt;ID'$class&gt;&quot; . sprintf( _nx( 'Mine &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Mine &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $user_posts_count, 'posts' ), number_format_i18n( $user_posts_count ) ) . '&lt;/a&gt;';
</span><span class="cx">         $allposts = '&amp;all_posts=1';
</span><span class="lines">@@ -269,7 +243,7 @@
</span><span class="cx"> foreach ( get_post_stati( array('show_in_admin_all_list' =&gt; false) ) as $state )
</span><span class="cx">         $total_posts -= $num_posts-&gt;$state;
</span><span class="cx"> 
</span><del>-$class = empty($class) &amp;&amp; empty($_GET['post_status']) ? ' class=&quot;current&quot;' : '';
</del><ins>+$class = empty($class) &amp;&amp; empty($_REQUEST['post_status']) ? ' class=&quot;current&quot;' : '';
</ins><span class="cx"> $status_links[] = &quot;&lt;li&gt;&lt;a href='edit.php?post_type=$post_type{$allposts}'$class&gt;&quot; . sprintf( _nx( 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '&lt;/a&gt;';
</span><span class="cx"> 
</span><span class="cx"> foreach ( get_post_stati(array('show_in_admin_status_list' =&gt; true), 'objects') as $status ) {
</span><span class="lines">@@ -283,7 +257,7 @@
</span><span class="cx">         if ( empty( $num_posts-&gt;$status_name ) )
</span><span class="cx">                 continue;
</span><span class="cx"> 
</span><del>-        if ( isset($_GET['post_status']) &amp;&amp; $status_name == $_GET['post_status'] )
</del><ins>+        if ( isset($_REQUEST['post_status']) &amp;&amp; $status_name == $_REQUEST['post_status'] )
</ins><span class="cx">                 $class = ' class=&quot;current&quot;';
</span><span class="cx"> 
</span><span class="cx">         $status_links[] = &quot;&lt;li&gt;&lt;a href='edit.php?post_status=$status_name&amp;amp;post_type=$post_type'$class&gt;&quot; . sprintf( _n( $status-&gt;label_count[0], $status-&gt;label_count[1], $num_posts-&gt;$status_name ), number_format_i18n( $num_posts-&gt;$status_name ) ) . '&lt;/a&gt;';
</span><span class="lines">@@ -300,163 +274,14 @@
</span><span class="cx">         &lt;input type=&quot;submit&quot; value=&quot;&lt;?php echo esc_attr( $post_type_object-&gt;labels-&gt;search_items  ); ?&gt;&quot; class=&quot;button&quot; /&gt;
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;input type=&quot;hidden&quot; name=&quot;post_status&quot; class=&quot;post_status_page&quot; value=&quot;&lt;?php echo !empty($_GET['post_status']) ? esc_attr($_GET['post_status']) : 'all'; ?&gt;&quot; /&gt;
</del><ins>+&lt;input type=&quot;hidden&quot; name=&quot;post_status&quot; class=&quot;post_status_page&quot; value=&quot;&lt;?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?&gt;&quot; /&gt;
</ins><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;post_type&quot; class=&quot;post_type_page&quot; value=&quot;&lt;?php echo $post_type; ?&gt;&quot; /&gt;
</span><del>-&lt;input type=&quot;hidden&quot; name=&quot;mode&quot; value=&quot;&lt;?php echo esc_attr($mode); ?&gt;&quot; /&gt;
</del><span class="cx"> 
</span><del>-&lt;?php if ( have_posts() ) { ?&gt;
</del><ins>+&lt;?php $table-&gt;display(); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php
-$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
-));
-
-$is_trash = isset($_GET['post_status']) &amp;&amp; $_GET['post_status'] == 'trash';
-
-?&gt;
-
-&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;?php if ( $is_trash ) { ?&gt;
-&lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;edit&quot;&gt;&lt;?php _e('Edit'); ?&gt;&lt;/option&gt;
-&lt;?php } if ( $is_trash || !EMPTY_TRASH_DAYS ) { ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
-&lt;?php } ?&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-posts'); ?&gt;
-
-&lt;?php // view filters
-if ( !is_singular() ) {
-$arc_query = $wpdb-&gt;prepare(&quot;SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb-&gt;posts WHERE post_type = %s ORDER BY post_date DESC&quot;, $post_type);
-
-$arc_result = $wpdb-&gt;get_results( $arc_query );
-
-$month_count = count($arc_result);
-
-if ( $month_count &amp;&amp; !( 1 == $month_count &amp;&amp; 0 == $arc_result[0]-&gt;mmonth ) ) {
-$m = isset($_GET['m']) ? (int)$_GET['m'] : 0;
-?&gt;
-&lt;select name='m'&gt;
-&lt;option&lt;?php selected( $m, 0 ); ?&gt; value='0'&gt;&lt;?php _e('Show all dates'); ?&gt;&lt;/option&gt;
-&lt;?php
-foreach ($arc_result as $arc_row) {
-        if ( $arc_row-&gt;yyear == 0 )
-                continue;
-        $arc_row-&gt;mmonth = zeroise( $arc_row-&gt;mmonth, 2 );
-
-        if ( $arc_row-&gt;yyear . $arc_row-&gt;mmonth == $m )
-                $default = ' selected=&quot;selected&quot;';
-        else
-                $default = '';
-
-        echo &quot;&lt;option$default value='&quot; . esc_attr(&quot;$arc_row-&gt;yyear$arc_row-&gt;mmonth&quot;) . &quot;'&gt;&quot;;
-        echo $wp_locale-&gt;get_month($arc_row-&gt;mmonth) . &quot; $arc_row-&gt;yyear&quot;;
-        echo &quot;&lt;/option&gt;\n&quot;;
-}
-?&gt;
-&lt;/select&gt;
-&lt;?php } ?&gt;
-
-&lt;?php
-if ( is_object_in_taxonomy($post_type, 'category') ) {
-        $dropdown_options = array('show_option_all' =&gt; __('View all categories'), 'hide_empty' =&gt; 0, 'hierarchical' =&gt; 1,
-                'show_count' =&gt; 0, 'orderby' =&gt; 'name', 'selected' =&gt; $cat);
-        wp_dropdown_categories($dropdown_options);
-}
-do_action('restrict_manage_posts');
-?&gt;
-&lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e('Filter'); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
-&lt;?php }
-
-if ( $is_trash &amp;&amp; current_user_can($post_type_object-&gt;cap-&gt;edit_others_posts) ) { ?&gt;
-&lt;input type=&quot;submit&quot; name=&quot;delete_all&quot; id=&quot;delete_all&quot; value=&quot;&lt;?php esc_attr_e('Empty Trash'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } ?&gt;
-&lt;/div&gt;
-
-&lt;?php if ( $page_links ) { ?&gt;
-&lt;div class=&quot;tablenav-pages&quot;&gt;&lt;?php
-        $count_posts = $post_type_object-&gt;hierarchical ? $wp_query-&gt;post_count : $wp_query-&gt;found_posts;
-        $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, $count_posts ) ),
-                                                number_format_i18n( $count_posts ),
-                                                $page_links
-                                                );
-        echo $page_links_text;
-        ?&gt;&lt;/div&gt;
-&lt;?php
-}
-
-if ( !$post_type_object-&gt;hierarchical ) {
-?&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;
-
-&lt;?php } ?&gt;
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-&lt;/div&gt;
-
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-
-&lt;?php include( './edit-post-rows.php' ); ?&gt;
-
-&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;?php if ( $is_trash ) { ?&gt;
-&lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;edit&quot;&gt;&lt;?php _e('Edit'); ?&gt;&lt;/option&gt;
-&lt;?php } if ( $is_trash || !EMPTY_TRASH_DAYS ) { ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
-&lt;?php } ?&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;?php if ( $is_trash &amp;&amp; current_user_can($post_type_object-&gt;cap-&gt;edit_others_posts) ) { ?&gt;
-&lt;input type=&quot;submit&quot; name=&quot;delete_all2&quot; id=&quot;delete_all2&quot; value=&quot;&lt;?php esc_attr_e('Empty Trash'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } ?&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
-&lt;?php } else { // have_posts() ?&gt;
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-&lt;p&gt;&lt;?php
-if ( isset($_GET['post_status']) &amp;&amp; 'trash' == $_GET['post_status'] )
-        echo $post_type_object-&gt;labels-&gt;not_found_in_trash;
-else
-        echo $post_type_object-&gt;labels-&gt;not_found;
-?&gt;&lt;/p&gt;
-&lt;?php } ?&gt;
-
</del><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;?php inline_edit_row( $current_screen ); ?&gt;
</del><ins>+&lt;?php $table-&gt;inline_edit(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span></span></pre></div>
<a id="trunkwpadminimagessort_ascgif"></a>
<div class="binary"><h4>Added: trunk/wp-admin/images/sort_asc.gif</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<span class="cx">Property changes on: trunk/wp-admin/images/sort_asc.gif
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:mime-type
</span><span class="cx">   + application/octet-stream
</span><a id="trunkwpadminimagessort_descgif"></a>
<div class="binary"><h4>Added: trunk/wp-admin/images/sort_desc.gif</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<span class="cx">Property changes on: trunk/wp-admin/images/sort_desc.gif
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:mime-type
</span><span class="cx">   + application/octet-stream
</span><a id="trunkwpadminincludesdefaultlisttablesphp"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/includes/default-list-tables.php (0 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/default-list-tables.php                                (rev 0)
+++ trunk/wp-admin/includes/default-list-tables.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -0,0 +1,4042 @@
</span><ins>+&lt;?php
+
+require_once('list-table.php');
+
+/**
+ * List table classes
+ *
+ * Each list-type admin screen has a class that handles the rendering of the list table.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+class WP_Posts_Table extends WP_List_Table {
+        
+        /**
+         * Wether the items should be displayed hierarchically or linearly
+         *
+         * @since 3.1.0
+         * @var bool
+         * @access private
+         */
+        var $_hierarchical_display;
+
+        function WP_Posts_Table( $context = 'normal' ) {
+                global $post_type_object, $post_type, $avail_post_stati, $wp_query, $per_page, $mode, $current_screen;
+
+                if ( !isset( $_REQUEST['post_type'] ) )
+                        $post_type = 'post';
+                elseif ( in_array( $_REQUEST['post_type'], get_post_types( array( 'show_ui' =&gt; true ) ) ) )
+                        $post_type = $_REQUEST['post_type'];
+                else
+                        wp_die( __( 'Invalid post type' ) );
+                $_REQUEST['post_type'] = $post_type;
+
+                $post_type_object = get_post_type_object( $post_type );
+
+                if ( !current_user_can( $post_type_object-&gt;cap-&gt;edit_posts ) )
+                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; $current_screen,
+                        'plural' =&gt; 'posts',
+                ) );
+
+                if ( 'normal' != $context )
+                        return;
+
+                $avail_post_stati = wp_edit_posts_query();
+
+                $this-&gt;_hierarchical_display = ( $post_type_object-&gt;hierarchical &amp;&amp; 0 === strpos( get_query_var( 'orderby' ), 'menu_order' ) );
+
+                $total_items = $this-&gt;_hierarchical_display ? $wp_query-&gt;post_count : $wp_query-&gt;found_posts;
+
+                $edit_per_page = 'edit_' . $post_type . '_per_page'; 
+                 $per_page = (int) get_user_option( $edit_per_page );
+                if ( empty( $per_page ) || $per_page &lt; 1 )
+                        $per_page = 20;
+                $per_page = apply_filters( $edit_per_page, $per_page ); 
+                 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); 
+
+                if ( $this-&gt;_hierarchical_display )
+                        $total_pages = ceil( $total_items / $per_page );
+                else
+                        $total_pages = $wp_query-&gt;max_num_pages;
+
+                $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode'];
+
+                $this-&gt;is_trash = isset( $_REQUEST['post_status'] ) &amp;&amp; $_REQUEST['post_status'] == 'trash';
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total_items,
+                        'total_pages' =&gt; $total_pages,
+                        'per_page' =&gt; $per_page
+                ) );
+        }
+
+        function has_items() {
+                return have_posts();
+        }
+
+        function no_items() {
+                global $post_type_object;
+
+                if ( isset( $_REQUEST['post_status'] ) &amp;&amp; 'trash' == $_REQUEST['post_status'] )
+                        echo $post_type_object-&gt;labels-&gt;not_found_in_trash;
+                else
+                        echo $post_type_object-&gt;labels-&gt;not_found;
+        }
+
+        function get_bulk_actions() {
+                $actions = array();
+
+                if ( $this-&gt;is_trash )
+                        $actions['untrash'] = __( 'Restore' );
+                else
+                        $actions['edit'] = __( 'Edit' );
+
+                if ( $this-&gt;is_trash || !EMPTY_TRASH_DAYS )
+                        $actions['delete'] = __( 'Delete Permanently' );
+                else
+                        $actions['trash'] = __( 'Move to Trash' );
+
+                return $actions;
+        }
+
+        function extra_tablenav( $which ) {
+                global $post_type, $post_type_object, $cat;
+
+                if ( 'top' == $which &amp;&amp; !is_singular() ) {
+?&gt;
+                &lt;div class=&quot;alignleft actions&quot;&gt;
+&lt;?php
+                        $this-&gt;months_dropdown( $post_type );
+
+                        if ( is_object_in_taxonomy( $post_type, 'category' ) ) {
+                                $dropdown_options = array(
+                                        'show_option_all' =&gt; __( 'View all categories' ),
+                                        'hide_empty' =&gt; 0,
+                                        'hierarchical' =&gt; 1,
+                                        'show_count' =&gt; 0,
+                                        'orderby' =&gt; 'name',
+                                        'selected' =&gt; $cat
+                                );
+                                wp_dropdown_categories( $dropdown_options );
+                        }
+                        do_action( 'restrict_manage_posts' );
+?&gt;
+                        &lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e( 'Filter' ); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
+                &lt;/div&gt;
+&lt;?php
+                }
+
+                if ( $this-&gt;is_trash &amp;&amp; current_user_can( $post_type_object-&gt;cap-&gt;edit_others_posts ) ) {
+?&gt;
+                &lt;input type=&quot;submit&quot; name=&quot;delete_all&quot; id=&quot;delete_all&quot; value=&quot;&lt;?php esc_attr_e( 'Empty Trash' ); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
+&lt;?php
+                }
+        }
+
+        function pagination( $which ) {
+                global $post_type_object, $mode;
+
+                parent::pagination( $which );
+
+                if ( 'top' == $which &amp;&amp; !$post_type_object-&gt;hierarchical )
+                        $this-&gt;view_switcher( $mode );
+        }
+
+        function get_table_classes() {
+                global $post_type_object;
+
+                return array( 'widefat', 'fixed', $post_type_object-&gt;hierarchical ? 'pages' : 'posts' );
+        }
+
+        function get_columns() {
+                $screen = $this-&gt;_screen;
+
+                if ( empty( $screen ) )
+                        $post_type = 'post';
+                else
+                        $post_type = $screen-&gt;post_type;
+
+                $posts_columns = array();
+                $posts_columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
+                /* translators: manage posts column name */
+                $posts_columns['title'] = _x( 'Title', 'column name' );
+                $posts_columns['author'] = __( 'Author' );
+                if ( empty( $post_type ) || is_object_in_taxonomy( $post_type, 'category' ) )
+                        $posts_columns['categories'] = __( 'Categories' );
+                if ( empty( $post_type ) || is_object_in_taxonomy( $post_type, 'post_tag' ) )
+                        $posts_columns['tags'] = __( 'Tags' );
+                $post_status = !empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all';
+                if ( !in_array( $post_status, array( 'pending', 'draft', 'future' ) ) &amp;&amp; ( empty( $post_type ) || post_type_supports( $post_type, 'comments' ) ) )
+                        $posts_columns['comments'] = '&lt;div class=&quot;vers&quot;&gt;&lt;img alt=&quot;Comments&quot; src=&quot;' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '&quot; /&gt;&lt;/div&gt;';
+                $posts_columns['date'] = __( 'Date' );
+
+                if ( 'page' == $post_type )
+                        $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
+                else
+                        $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
+                $posts_columns = apply_filters( &quot;manage_{$post_type}_posts_columns&quot;, $posts_columns );
+
+                return $posts_columns;
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'title'    =&gt; 'title',
+                        'author'   =&gt; 'author',
+                        'parent'   =&gt; 'parent',
+                        'comments' =&gt; 'comment_count',
+                        'date'     =&gt; 'date',
+                );
+        }
+
+        function display_rows( $posts = array() ) {
+                global $wp_query, $post_type_object, $per_page;
+
+                if ( empty( $posts ) )
+                        $posts = $wp_query-&gt;posts;
+
+                if ( $this-&gt;_hierarchical_display ) {
+                        $this-&gt;_display_rows_hierarchical( $posts, $this-&gt;get_pagenum(), $per_page );
+                } else {
+                        $this-&gt;_display_rows( $posts );
+                }
+        }
+
+        function _display_rows( $posts ) {
+                global $post, $mode;
+
+                add_filter( 'the_title','esc_html' );
+
+                // Create array of post IDs.
+                $post_ids = array();
+
+                foreach ( $posts as $a_post )
+                        $post_ids[] = $a_post-&gt;ID;
+
+                $comment_pending_count = get_pending_comments_num( $post_ids );
+
+                foreach ( $posts as $post ) {
+                        if ( empty( $comment_pending_count[$post-&gt;ID] ) )
+                                $comment_pending_count[$post-&gt;ID] = 0;
+
+                        $this-&gt;_single_row( $post, $comment_pending_count[$post-&gt;ID], $mode );
+                }
+        }
+
+        function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
+                global $wpdb;
+
+                $level = 0;
+
+                if ( ! $pages ) {
+                        $pages = get_pages( array( 'sort_column' =&gt; 'menu_order' ) );
+
+                        if ( ! $pages )
+                                return false;
+                }
+
+                /*
+                 * arrange pages into two parts: top level pages and children_pages
+                 * children_pages is two dimensional array, eg.
+                 * children_pages[10][] contains all sub-pages whose parent is 10.
+                 * It only takes O( N ) to arrange this and it takes O( 1 ) for subsequent lookup operations
+                 * If searching, ignore hierarchy and treat everything as top level
+                 */
+                if ( empty( $_REQUEST['s'] ) ) {
+
+                        $top_level_pages = array();
+                        $children_pages = array();
+
+                        foreach ( $pages as $page ) {
+
+                                // catch and repair bad pages
+                                if ( $page-&gt;post_parent == $page-&gt;ID ) {
+                                        $page-&gt;post_parent = 0;
+                                        $wpdb-&gt;update( $wpdb-&gt;posts, array( 'post_parent' =&gt; 0 ), array( 'ID' =&gt; $page-&gt;ID ) );
+                                        clean_page_cache( $page-&gt;ID );
+                                }
+
+                                if ( 0 == $page-&gt;post_parent )
+                                        $top_level_pages[] = $page;
+                                else
+                                        $children_pages[ $page-&gt;post_parent ][] = $page;
+                        }
+
+                        $pages = &amp;$top_level_pages;
+                }
+
+                $count = 0;
+                $start = ( $pagenum - 1 ) * $per_page;
+                $end = $start + $per_page;
+
+                foreach ( $pages as $page ) {
+                        if ( $count &gt;= $end )
+                                break;
+
+                        if ( $count &gt;= $start )
+                                echo &quot;\t&quot; . $this-&gt;_single_row_hierarchical( $page, $level );
+
+                        $count++;
+
+                        if ( isset( $children_pages ) )
+                                $this-&gt;_page_rows( $children_pages, $count, $page-&gt;ID, $level + 1, $pagenum, $per_page );
+                }
+
+                // if it is the last pagenum and there are orphaned pages, display them with paging as well
+                if ( isset( $children_pages ) &amp;&amp; $count &lt; $end ){
+                        foreach ( $children_pages as $orphans ){
+                                foreach ( $orphans as $op ) {
+                                        if ( $count &gt;= $end )
+                                                break;
+                                        if ( $count &gt;= $start )
+                                                echo &quot;\t&quot; . $this-&gt;_single_row_hierarchical( $op, 0 );
+                                        $count++;
+                                }
+                        }
+                }
+        }
+
+        /**
+         * Given a top level page ID, display the nested hierarchy of sub-pages
+         * together with paging support
+         *
+         * @since unknown
+         *
+         * @param unknown_type $children_pages
+         * @param unknown_type $count
+         * @param unknown_type $parent
+         * @param unknown_type $level
+         * @param unknown_type $pagenum
+         * @param unknown_type $per_page
+         */
+        function _page_rows( &amp;$children_pages, &amp;$count, $parent, $level, $pagenum, $per_page ) {
+
+                if ( ! isset( $children_pages[$parent] ) )
+                        return;
+
+                $start = ( $pagenum - 1 ) * $per_page;
+                $end = $start + $per_page;
+
+                foreach ( $children_pages[$parent] as $page ) {
+
+                        if ( $count &gt;= $end )
+                                break;
+
+                        // If the page starts in a subtree, print the parents.
+                        if ( $count == $start &amp;&amp; $page-&gt;post_parent &gt; 0 ) {
+                                $my_parents = array();
+                                $my_parent = $page-&gt;post_parent;
+                                while ( $my_parent ) {
+                                        $my_parent = get_post( $my_parent );
+                                        $my_parents[] = $my_parent;
+                                        if ( !$my_parent-&gt;post_parent )
+                                                break;
+                                        $my_parent = $my_parent-&gt;post_parent;
+                                }
+                                $num_parents = count( $my_parents );
+                                while ( $my_parent = array_pop( $my_parents ) ) {
+                                        echo &quot;\t&quot; . $this-&gt;_single_row_hierarchical( $my_parent, $level - $num_parents );
+                                        $num_parents--;
+                                }
+                        }
+
+                        if ( $count &gt;= $start )
+                                echo &quot;\t&quot; . $this-&gt;_single_row_hierarchical( $page, $level );
+
+                        $count++;
+
+                        $this-&gt;_page_rows( $children_pages, $count, $page-&gt;ID, $level + 1, $pagenum, $per_page );
+                }
+
+                unset( $children_pages[$parent] ); //required in order to keep track of orphans
+        }
+
+        /**
+         * display one row if the page doesn't have any children
+         * otherwise, display the row and its children in subsequent rows
+         *
+         * @since unknown
+         *
+         * @param unknown_type $page
+         * @param unknown_type $level
+         */
+        function _single_row_hierarchical( $page, $level = 0 ) {
+                global $post, $current_screen;
+                static $rowclass;
+
+                $post = $page;
+                setup_postdata( $page );
+
+                if ( 0 == $level &amp;&amp; (int) $page-&gt;post_parent &gt; 0 ) {
+                        //sent level 0 by accident, by default, or because we don't know the actual level
+                        $find_main_page = (int) $page-&gt;post_parent;
+                        while ( $find_main_page &gt; 0 ) {
+                                $parent = get_page( $find_main_page );
+
+                                if ( is_null( $parent ) )
+                                        break;
+
+                                $level++;
+                                $find_main_page = (int) $parent-&gt;post_parent;
+
+                                if ( !isset( $parent_name ) )
+                                        $parent_name = $parent-&gt;post_title;
+                        }
+                }
+
+                $page-&gt;post_title = esc_html( $page-&gt;post_title );
+                $pad = str_repeat( '&amp;#8212; ', $level );
+                $id = (int) $page-&gt;ID;
+                $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
+                $title = _draft_or_post_title();
+                $post_type = $page-&gt;post_type;
+                $post_type_object = get_post_type_object( $post_type );
+?&gt;
+        &lt;tr id=&quot;post-&lt;?php echo $id; ?&gt;&quot; class=&quot;&lt;?php echo $rowclass; ?&gt; iedit&quot;&gt;
+&lt;?php
+
+        list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+        foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
+
+                $style = '';
+                if ( in_array( $column_name, $hidden ) )
+                        $style = ' style=&quot;display:none;&quot;';
+
+                $attributes = &quot;$class$style&quot;;
+
+                switch ( $column_name ) {
+
+                case 'cb':
+                        ?&gt;
+                        &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID ) ) { ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;post[]&quot; value=&quot;&lt;?php the_ID(); ?&gt;&quot; /&gt;&lt;?php } ?&gt;&lt;/th&gt;
+                        &lt;?php
+                        break;
+                case 'date':
+                        if ( '0000-00-00 00:00:00' == $page-&gt;post_date &amp;&amp; 'date' == $column_name ) {
+                                $t_time = $h_time = __( 'Unpublished' );
+                                $time_diff = 0;
+                        } else {
+                                $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
+                                $m_time = $page-&gt;post_date;
+                                $time = get_post_time( 'G', true );
+
+                                $time_diff = time() - $time;
+
+                                if ( $time_diff &gt; 0 &amp;&amp; $time_diff &lt; 24*60*60 )
+                                        $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
+                                else
+                                        $h_time = mysql2date( __( 'Y/m/d' ), $m_time );
+                        }
+                        echo '&lt;td ' . $attributes . '&gt;';
+                        echo '&lt;abbr title=&quot;' . $t_time . '&quot;&gt;' . apply_filters( 'post_date_column_time', $h_time, $page, $column_name, '' ) . '&lt;/abbr&gt;';
+                        echo '&lt;br /&gt;';
+                        if ( 'publish' == $page-&gt;post_status ) {
+                                _e( 'Published' );
+                        } elseif ( 'future' == $page-&gt;post_status ) {
+                                if ( $time_diff &gt; 0 )
+                                        echo '&lt;strong class=&quot;attention&quot;&gt;' . __( 'Missed schedule' ) . '&lt;/strong&gt;';
+                                else
+                                        _e( 'Scheduled' );
+                        } else {
+                                _e( 'Last Modified' );
+                        }
+                        echo '&lt;/td&gt;';
+                        break;
+                case 'title':
+                        $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
+                        $edit_link = get_edit_post_link( $page-&gt;ID );
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID ) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $title ) ); ?&gt;&quot;&gt;&lt;?php echo $pad; echo $title ?&gt;&lt;/a&gt;&lt;?php } else { echo $pad; echo $title; }; _post_states( $page ); echo isset( $parent_name ) ? ' | ' . $post_type_object-&gt;labels-&gt;parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?&gt;&lt;/strong&gt;
+                        &lt;?php
+                        $actions = array();
+                        if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID ) &amp;&amp; $post-&gt;post_status != 'trash' ) {
+                                $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot; title=&quot;' . esc_attr( __( 'Edit this page' ) ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                                $actions['inline'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __( 'Quick&amp;nbsp;Edit' ) . '&lt;/a&gt;';
+                        }
+                        if ( current_user_can( $post_type_object-&gt;cap-&gt;delete_post, $page-&gt;ID ) ) {
+                                if ( $post-&gt;post_status == 'trash' )
+                                        $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr( __( 'Remove this page from the Trash' ) ) . &quot;' href='&quot; . wp_nonce_url( &quot;post.php?post_type=$post_type&amp;amp;action=untrash&amp;amp;post=$page-&gt;ID&quot;, 'untrash-' . $post-&gt;post_type . '_' . $page-&gt;ID ) . &quot;'&gt;&quot; . __( 'Restore' ) . &quot;&lt;/a&gt;&quot;;
+                                elseif ( EMPTY_TRASH_DAYS )
+                                        $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr( __( 'Move this page to the Trash' ) ) . &quot;' href='&quot; . get_delete_post_link( $page-&gt;ID ) . &quot;'&gt;&quot; . __( 'Trash' ) . &quot;&lt;/a&gt;&quot;;
+                                if ( $post-&gt;post_status == 'trash' || !EMPTY_TRASH_DAYS )
+                                        $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr( __( 'Delete this page permanently' ) ) . &quot;' href='&quot; . wp_nonce_url( &quot;post.php?post_type=$post_type&amp;amp;action=delete&amp;amp;post=$page-&gt;ID&quot;, 'delete-' . $post-&gt;post_type . '_' . $page-&gt;ID ) . &quot;'&gt;&quot; . __( 'Delete Permanently' ) . &quot;&lt;/a&gt;&quot;;
+                        }
+                        if ( in_array( $post-&gt;post_status, array( 'pending', 'draft' ) ) ) {
+                                if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID ) )
+                                        $actions['view'] = '&lt;a href=&quot;' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $page-&gt;ID ) ) ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Preview &amp;#8220;%s&amp;#8221;' ), $title ) ) . '&quot; rel=&quot;permalink&quot;&gt;' . __( 'Preview' ) . '&lt;/a&gt;';
+                        } elseif ( $post-&gt;post_status != 'trash' ) {
+                                $actions['view'] = '&lt;a href=&quot;' . get_permalink( $page-&gt;ID ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'View &amp;#8220;%s&amp;#8221;' ), $title ) ) . '&quot; rel=&quot;permalink&quot;&gt;' . __( 'View' ) . '&lt;/a&gt;';
+                        }
+                        $actions = apply_filters( 'page_row_actions', $actions, $page );
+                        $action_count = count( $actions );
+
+                        $i = 0;
+                        echo '&lt;div class=&quot;row-actions&quot;&gt;';
+                        foreach ( $actions as $action =&gt; $link ) {
+                                ++$i;
+                                ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+                                echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                        }
+                        echo '&lt;/div&gt;';
+
+                        get_inline_data( $post );
+                        echo '&lt;/td&gt;';
+                        break;
+
+                case 'comments':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
+                        &lt;?php
+                        $left = get_pending_comments_num( $page-&gt;ID );
+                        $pending_phrase = sprintf( __( '%s pending' ), number_format( $left ) );
+                        if ( $left )
+                                echo '&lt;strong&gt;';
+                        comments_number(
+                                &quot;&lt;a href='edit-comments.php?post_ID=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                . /* translators: comment count link */ _x( '0', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                                &quot;&lt;a href='edit-comments.php?post_ID=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                . /* translators: comment count link */ _x( '1', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                                &quot;&lt;a href='edit-comments.php?post_ID=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                . /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;'
+                        );
+                        if ( $left )
+                                echo '&lt;/strong&gt;';
+                        ?&gt;
+                        &lt;/div&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                case 'author':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta( 'ID' ); ?&gt;&quot;&gt;&lt;?php the_author() ?&gt;&lt;/a&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                default:
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php do_action( 'manage_pages_custom_column', $column_name, $id ); ?&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+                }
+        }
+?&gt;
+
+        &lt;/tr&gt;
+
+&lt;?php
+        }
+
+        function _single_row( $a_post, $pending_comments, $mode ) {
+                global $post, $current_screen;
+                static $rowclass;
+
+                $global_post = $post;
+                $post = $a_post;
+                setup_postdata( $post );
+
+                $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
+                $post_owner = ( get_current_user_id() == $post-&gt;post_author ? 'self' : 'other' );
+                $edit_link = get_edit_post_link( $post-&gt;ID );
+                $title = _draft_or_post_title();
+                $post_type_object = get_post_type_object( $post-&gt;post_type );
+        ?&gt;
+                &lt;tr id='post-&lt;?php echo $post-&gt;ID; ?&gt;' class='&lt;?php echo trim( $rowclass . ' author-' . $post_owner . ' status-' . $post-&gt;post_status ); ?&gt; iedit' valign=&quot;top&quot;&gt;
+        &lt;?php
+
+                list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                        $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
+
+                        $style = '';
+                        if ( in_array( $column_name, $hidden ) )
+                                $style = ' style=&quot;display:none;&quot;';
+
+                        $attributes = &quot;$class$style&quot;;
+
+                        switch ( $column_name ) {
+
+                        case 'cb':
+                        ?&gt;
+                        &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID ) ) { ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;post[]&quot; value=&quot;&lt;?php the_ID(); ?&gt;&quot; /&gt;&lt;?php } ?&gt;&lt;/th&gt;
+                        &lt;?php
+                        break;
+
+                        case 'date':
+                                if ( '0000-00-00 00:00:00' == $post-&gt;post_date &amp;&amp; 'date' == $column_name ) {
+                                        $t_time = $h_time = __( 'Unpublished' );
+                                        $time_diff = 0;
+                                } else {
+                                        $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
+                                        $m_time = $post-&gt;post_date;
+                                        $time = get_post_time( 'G', true, $post );
+
+                                        $time_diff = time() - $time;
+
+                                        if ( $time_diff &gt; 0 &amp;&amp; $time_diff &lt; 24*60*60 )
+                                                $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
+                                        else
+                                                $h_time = mysql2date( __( 'Y/m/d' ), $m_time );
+                                }
+
+                                echo '&lt;td ' . $attributes . '&gt;';
+                                if ( 'excerpt' == $mode )
+                                        echo apply_filters( 'post_date_column_time', $t_time, $post, $column_name, $mode );
+                                else
+                                        echo '&lt;abbr title=&quot;' . $t_time . '&quot;&gt;' . apply_filters( 'post_date_column_time', $h_time, $post, $column_name, $mode ) . '&lt;/abbr&gt;';
+                                echo '&lt;br /&gt;';
+                                if ( 'publish' == $post-&gt;post_status ) {
+                                        _e( 'Published' );
+                                } elseif ( 'future' == $post-&gt;post_status ) {
+                                        if ( $time_diff &gt; 0 )
+                                                echo '&lt;strong class=&quot;attention&quot;&gt;' . __( 'Missed schedule' ) . '&lt;/strong&gt;';
+                                        else
+                                                _e( 'Scheduled' );
+                                } else {
+                                        _e( 'Last Modified' );
+                                }
+                                echo '&lt;/td&gt;';
+                        break;
+
+                        case 'title':
+                                $attributes = 'class=&quot;post-title column-title&quot;' . $style;
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID ) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $title ) ); ?&gt;&quot;&gt;&lt;?php echo $title ?&gt;&lt;/a&gt;&lt;?php } else { echo $title; }; _post_states( $post ); ?&gt;&lt;/strong&gt;
+                        &lt;?php
+                                if ( 'excerpt' == $mode )
+                                        the_excerpt();
+
+                                $actions = array();
+                                if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID ) &amp;&amp; 'trash' != $post-&gt;post_status ) {
+                                        $actions['edit'] = '&lt;a href=&quot;' . get_edit_post_link( $post-&gt;ID, true ) . '&quot; title=&quot;' . esc_attr( __( 'Edit this item' ) ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                                        $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot; title=&quot;' . esc_attr( __( 'Edit this item inline' ) ) . '&quot;&gt;' . __( 'Quick&amp;nbsp;Edit' ) . '&lt;/a&gt;';
+                                }
+                                if ( current_user_can( $post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID ) ) {
+                                        if ( 'trash' == $post-&gt;post_status )
+                                                $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr( __( 'Restore this item from the Trash' ) ) . &quot;' href='&quot; . wp_nonce_url( admin_url( sprintf( $post_type_object-&gt;_edit_link . '&amp;amp;action=untrash', $post-&gt;ID ) ), 'untrash-' . $post-&gt;post_type . '_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Restore' ) . &quot;&lt;/a&gt;&quot;;
+                                        elseif ( EMPTY_TRASH_DAYS )
+                                                $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr( __( 'Move this item to the Trash' ) ) . &quot;' href='&quot; . get_delete_post_link( $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Trash' ) . &quot;&lt;/a&gt;&quot;;
+                                        if ( 'trash' == $post-&gt;post_status || !EMPTY_TRASH_DAYS )
+                                                $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr( __( 'Delete this item permanently' ) ) . &quot;' href='&quot; . get_delete_post_link( $post-&gt;ID, '', true ) . &quot;'&gt;&quot; . __( 'Delete Permanently' ) . &quot;&lt;/a&gt;&quot;;
+                                }
+                                if ( in_array( $post-&gt;post_status, array( 'pending', 'draft' ) ) ) {
+                                        if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID ) )
+                                                $actions['view'] = '&lt;a href=&quot;' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post-&gt;ID ) ) ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Preview &amp;#8220;%s&amp;#8221;' ), $title ) ) . '&quot; rel=&quot;permalink&quot;&gt;' . __( 'Preview' ) . '&lt;/a&gt;';
+                                } elseif ( 'trash' != $post-&gt;post_status ) {
+                                        $actions['view'] = '&lt;a href=&quot;' . get_permalink( $post-&gt;ID ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'View &amp;#8220;%s&amp;#8221;' ), $title ) ) . '&quot; rel=&quot;permalink&quot;&gt;' . __( 'View' ) . '&lt;/a&gt;';
+                                }
+                                $actions = apply_filters( 'post_row_actions', $actions, $post );
+                                $action_count = count( $actions );
+                                $i = 0;
+                                echo '&lt;div class=&quot;row-actions&quot;&gt;';
+                                foreach ( $actions as $action =&gt; $link ) {
+                                        ++$i;
+                                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+                                        echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                                }
+                                echo '&lt;/div&gt;';
+
+                                get_inline_data( $post );
+                        ?&gt;
+                        &lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'categories':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
+                                $categories = get_the_category();
+                                if ( !empty( $categories ) ) {
+                                        $out = array();
+                                        foreach ( $categories as $c )
+                                                $out[] = &quot;&lt;a href='edit.php?post_type={$post-&gt;post_type}&amp;amp;category_name={$c-&gt;slug}'&gt; &quot; . esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'category', 'display' ) ) . '&lt;/a&gt;';
+                                                echo join( ', ', $out );
+                                } else {
+                                        _e( 'Uncategorized' );
+                                }
+                        ?&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'tags':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
+                                $tags = get_the_tags( $post-&gt;ID );
+                                if ( !empty( $tags ) ) {
+                                        $out = array();
+                                        foreach ( $tags as $c )
+                                                $out[] = &quot;&lt;a href='edit.php?post_type={$post-&gt;post_type}&amp;amp;tag={$c-&gt;slug}'&gt; &quot; . esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'post_tag', 'display' ) ) . '&lt;/a&gt;';
+                                        echo join( ', ', $out );
+                                } else {
+                                        _e( 'No Tags' );
+                                }
+                        ?&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'comments':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
+                        &lt;?php
+                                $pending_phrase = sprintf( __( '%s pending' ), number_format( $pending_comments ) );
+                                if ( $pending_comments )
+                                        echo '&lt;strong&gt;';
+                                comments_number(
+                                        &quot;&lt;a href='edit-comments.php?post_ID=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                        . /* translators: comment count link */ _x( '0', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                                        &quot;&lt;a href='edit-comments.php?post_ID=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                        . /* translators: comment count link */ _x( '1', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                                        &quot;&lt;a href='edit-comments.php?post_ID=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                        . /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;'
+                                );
+                                if ( $pending_comments )
+                                        echo '&lt;/strong&gt;';
+                        ?&gt;
+                        &lt;/div&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'author':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post-&gt;post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta( 'ID' ); ?&gt;&quot;&gt;&lt;?php the_author() ?&gt;&lt;/a&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'control_view':
+                        ?&gt;
+                        &lt;td&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; rel=&quot;permalink&quot; class=&quot;view&quot;&gt;&lt;?php _e( 'View' ); ?&gt;&lt;/a&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'control_edit':
+                        ?&gt;
+                        &lt;td&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID ) ) { echo &quot;&lt;a href='$edit_link' class='edit'&gt;&quot; . __( 'Edit' ) . &quot;&lt;/a&gt;&quot;; } ?&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'control_delete':
+                        ?&gt;
+                        &lt;td&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID ) ) { echo &quot;&lt;a href='&quot; . wp_nonce_url( &quot;post.php?action=delete&amp;amp;post=$id&quot;, 'delete-post_' . $post-&gt;ID ) . &quot;' class='delete'&gt;&quot; . __( 'Delete' ) . &quot;&lt;/a&gt;&quot;; } ?&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        default:
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php do_action( 'manage_posts_custom_column', $column_name, $post-&gt;ID ); ?&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+                }
+        }
+        ?&gt;
+                &lt;/tr&gt;
+        &lt;?php
+                $post = $global_post;
+        }
+
+        /**
+         * Outputs the hidden row displayed when inline editing
+         *
+         * @since 3.1
+         */
+        function inline_edit() {
+                global $mode;
+
+                $screen = $this-&gt;_screen;
+
+                $post = get_default_post_to_edit( $screen-&gt;post_type );
+                $post_type_object = get_post_type_object( $screen-&gt;post_type );
+
+                $taxonomy_names = get_object_taxonomies( $screen-&gt;post_type );
+                $hierarchical_taxonomies = array();
+                $flat_taxonomies = array();
+                foreach ( $taxonomy_names as $taxonomy_name ) {
+                        $taxonomy = get_taxonomy( $taxonomy_name );
+
+                        if ( !$taxonomy-&gt;show_ui )
+                                continue;
+
+                        if ( $taxonomy-&gt;hierarchical )
+                                $hierarchical_taxonomies[] = $taxonomy;
+                        else
+                                $flat_taxonomies[] = $taxonomy;
+                }
+
+                list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                $col_count = count( $columns ) - count( $hidden );
+                $m = ( isset( $mode ) &amp;&amp; 'excerpt' == $mode ) ? 'excerpt' : 'list';
+                $can_publish = current_user_can( $post_type_object-&gt;cap-&gt;publish_posts );
+                $core_columns = array( 'cb' =&gt; true, 'date' =&gt; true, 'title' =&gt; true, 'categories' =&gt; true, 'tags' =&gt; true, 'comments' =&gt; true, 'author' =&gt; true );
+
+        ?&gt;
+
+        &lt;form method=&quot;get&quot; action=&quot;&quot;&gt;&lt;table style=&quot;display: none&quot;&gt;&lt;tbody id=&quot;inlineedit&quot;&gt;
+                &lt;?php
+                $hclass = count( $hierarchical_taxonomies ) ? 'post' : 'page';
+                $bulk = 0;
+                while ( $bulk &lt; 2 ) { ?&gt;
+
+                &lt;tr id=&quot;&lt;?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?&gt;&quot; class=&quot;inline-edit-row inline-edit-row-&lt;?php echo &quot;$hclass inline-edit-$screen-&gt;post_type &quot;;
+                        echo $bulk ? &quot;bulk-edit-row bulk-edit-row-$hclass bulk-edit-$screen-&gt;post_type&quot; : &quot;quick-edit-row quick-edit-row-$hclass inline-edit-$screen-&gt;post_type&quot;;
+                ?&gt;&quot; style=&quot;display: none&quot;&gt;&lt;td colspan=&quot;&lt;?php echo $col_count; ?&gt;&quot;&gt;
+
+                &lt;fieldset class=&quot;inline-edit-col-left&quot;&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
+                        &lt;h4&gt;&lt;?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?&gt;&lt;/h4&gt;
+
+
+        &lt;?php
+
+        if ( post_type_supports( $screen-&gt;post_type, 'title' ) ) :
+                if ( $bulk ) : ?&gt;
+                        &lt;div id=&quot;bulk-title-div&quot;&gt;
+                                &lt;div id=&quot;bulk-titles&quot;&gt;&lt;/div&gt;
+                        &lt;/div&gt;
+
+        &lt;?php else : // $bulk ?&gt;
+
+                        &lt;label&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Title' ); ?&gt;&lt;/span&gt;
+                                &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;post_title&quot; class=&quot;ptitle&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
+                        &lt;/label&gt;
+
+                        &lt;label&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Slug' ); ?&gt;&lt;/span&gt;
+                                &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;post_name&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
+                        &lt;/label&gt;
+
+        &lt;?php endif; // $bulk
+        endif; // post_type_supports title ?&gt;
+
+        &lt;?php if ( !$bulk ) : ?&gt;
+                        &lt;label&gt;&lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Date' ); ?&gt;&lt;/span&gt;&lt;/label&gt;
+                        &lt;div class=&quot;inline-edit-date&quot;&gt;
+                                &lt;?php touch_time( 1, 1, 4, 1 ); ?&gt;
+                        &lt;/div&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+
+        &lt;?php endif; // $bulk
+
+                if ( post_type_supports( $screen-&gt;post_type, 'author' ) ) :
+                        $authors = get_editable_user_ids( get_current_user_id(), true, $screen-&gt;post_type ); // TODO: ROLE SYSTEM
+                        $authors_dropdown = '';
+                        if ( $authors &amp;&amp; count( $authors ) &gt; 1 ) :
+                                $users_opt = array( 'include' =&gt; $authors, 'name' =&gt; 'post_author', 'class'=&gt; 'authors', 'multi' =&gt; 1, 'echo' =&gt; 0 );
+                                if ( $bulk )
+                                        $users_opt['show_option_none'] = __( '&amp;mdash; No Change &amp;mdash;' );
+                                $authors_dropdown  = '&lt;label&gt;';
+                                $authors_dropdown .= '&lt;span class=&quot;title&quot;&gt;' . __( 'Author' ) . '&lt;/span&gt;';
+                                $authors_dropdown .= wp_dropdown_users( $users_opt );
+                                $authors_dropdown .= '&lt;/label&gt;';
+
+                        endif; // authors
+        ?&gt;
+
+        &lt;?php if ( !$bulk ) echo $authors_dropdown;
+        endif; // post_type_supports author
+
+        if ( !$bulk ) :
+        ?&gt;
+
+                        &lt;div class=&quot;inline-edit-group&quot;&gt;
+                                &lt;label class=&quot;alignleft&quot;&gt;
+                                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Password' ); ?&gt;&lt;/span&gt;
+                                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;post_password&quot; class=&quot;inline-edit-password-input&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+
+                                &lt;em style=&quot;margin:5px 10px 0 0&quot; class=&quot;alignleft&quot;&gt;
+                                        &lt;?php
+                                        /* translators: Between password field and private checkbox on post quick edit interface */
+                                        echo __( '&amp;ndash;OR&amp;ndash;' );
+                                        ?&gt;
+                                &lt;/em&gt;
+                                &lt;label class=&quot;alignleft inline-edit-private&quot;&gt;
+                                        &lt;input type=&quot;checkbox&quot; name=&quot;keep_private&quot; value=&quot;private&quot; /&gt;
+                                        &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php echo __( 'Private' ); ?&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+                        &lt;/div&gt;
+
+        &lt;?php endif; ?&gt;
+
+                &lt;/div&gt;&lt;/fieldset&gt;
+
+        &lt;?php if ( count( $hierarchical_taxonomies ) &amp;&amp; !$bulk ) : ?&gt;
+
+                &lt;fieldset class=&quot;inline-edit-col-center inline-edit-categories&quot;&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
+
+        &lt;?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?&gt;
+
+                        &lt;span class=&quot;title inline-edit-categories-label&quot;&gt;&lt;?php echo esc_html( $taxonomy-&gt;labels-&gt;name ) ?&gt;
+                                &lt;span class=&quot;catshow&quot;&gt;&lt;?php _e( '[more]' ); ?&gt;&lt;/span&gt;
+                                &lt;span class=&quot;cathide&quot; style=&quot;display:none;&quot;&gt;&lt;?php _e( '[less]' ); ?&gt;&lt;/span&gt;
+                        &lt;/span&gt;
+                        &lt;input type=&quot;hidden&quot; name=&quot;&lt;?php echo ( $taxonomy-&gt;name == 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy-&gt;name ) . '][]'; ?&gt;&quot; value=&quot;0&quot; /&gt;
+                        &lt;ul class=&quot;cat-checklist &lt;?php echo esc_attr( $taxonomy-&gt;name )?&gt;-checklist&quot;&gt;
+                                &lt;?php wp_terms_checklist( null, array( 'taxonomy' =&gt; $taxonomy-&gt;name ) ) ?&gt;
+                        &lt;/ul&gt;
+
+        &lt;?php endforeach; //$hierarchical_taxonomies as $taxonomy ?&gt;
+
+                &lt;/div&gt;&lt;/fieldset&gt;
+
+        &lt;?php endif; // count( $hierarchical_taxonomies ) &amp;&amp; !$bulk ?&gt;
+
+                &lt;fieldset class=&quot;inline-edit-col-right&quot;&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
+
+        &lt;?php
+                if ( post_type_supports( $screen-&gt;post_type, 'author' ) &amp;&amp; $bulk )
+                        echo $authors_dropdown;
+        ?&gt;
+
+        &lt;?php if ( $post_type_object-&gt;hierarchical ) : ?&gt;
+
+                        &lt;label&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Parent' ); ?&gt;&lt;/span&gt;
+        &lt;?php
+                $dropdown_args = array( 'post_type' =&gt; $post_type_object-&gt;name, 'selected' =&gt; $post-&gt;post_parent, 'name' =&gt; 'post_parent', 'show_option_none' =&gt; __( 'Main Page ( no parent )' ), 'option_none_value' =&gt; 0, 'sort_column'=&gt; 'menu_order, post_title' );
+                if ( $bulk )
+                        $dropdown_args['show_option_no_change'] =  __( '&amp;mdash; No Change &amp;mdash;' );
+                $dropdown_args = apply_filters( 'quick_edit_dropdown_pages_args', $dropdown_args );
+                wp_dropdown_pages( $dropdown_args );
+        ?&gt;
+                        &lt;/label&gt;
+
+        &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'page-attributes' ) ) :
+                        if ( !$bulk ) : ?&gt;
+
+                        &lt;label&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Order' ); ?&gt;&lt;/span&gt;
+                                &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;menu_order&quot; class=&quot;inline-edit-menu-order-input&quot; value=&quot;&lt;?php echo $post-&gt;menu_order ?&gt;&quot; /&gt;&lt;/span&gt;
+                        &lt;/label&gt;
+
+        &lt;?php        endif; // !$bulk ?&gt;
+
+                        &lt;label&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Template' ); ?&gt;&lt;/span&gt;
+                                &lt;select name=&quot;page_template&quot;&gt;
+        &lt;?php        if ( $bulk ) : ?&gt;
+                                        &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( '&amp;mdash; No Change &amp;mdash;' ); ?&gt;&lt;/option&gt;
+        &lt;?php        endif; // $bulk ?&gt;
+                                        &lt;option value=&quot;default&quot;&gt;&lt;?php _e( 'Default Template' ); ?&gt;&lt;/option&gt;
+                                        &lt;?php page_template_dropdown() ?&gt;
+                                &lt;/select&gt;
+                        &lt;/label&gt;
+
+        &lt;?php
+                endif; // post_type_supports page-attributes
+        endif; // $post_type_object-&gt;hierarchical ?&gt;
+
+        &lt;?php if ( count( $flat_taxonomies ) &amp;&amp; !$bulk ) : ?&gt;
+
+        &lt;?php foreach ( $flat_taxonomies as $taxonomy ) : ?&gt;
+
+                        &lt;label class=&quot;inline-edit-tags&quot;&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php echo esc_html( $taxonomy-&gt;labels-&gt;name ) ?&gt;&lt;/span&gt;
+                                &lt;textarea cols=&quot;22&quot; rows=&quot;1&quot; name=&quot;tax_input[&lt;?php echo esc_attr( $taxonomy-&gt;name )?&gt;]&quot; class=&quot;tax_input_&lt;?php echo esc_attr( $taxonomy-&gt;name )?&gt;&quot;&gt;&lt;/textarea&gt;
+                        &lt;/label&gt;
+
+        &lt;?php endforeach; //$flat_taxonomies as $taxonomy ?&gt;
+
+        &lt;?php endif; // count( $flat_taxonomies ) &amp;&amp; !$bulk  ?&gt;
+
+        &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) || post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) :
+                if ( $bulk ) : ?&gt;
+
+                        &lt;div class=&quot;inline-edit-group&quot;&gt;
+                &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) ) : ?&gt;
+                        &lt;label class=&quot;alignleft&quot;&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Comments' ); ?&gt;&lt;/span&gt;
+                                &lt;select name=&quot;comment_status&quot;&gt;
+                                        &lt;option value=&quot;&quot;&gt;&lt;?php _e( '&amp;mdash; No Change &amp;mdash;' ); ?&gt;&lt;/option&gt;
+                                        &lt;option value=&quot;open&quot;&gt;&lt;?php _e( 'Allow' ); ?&gt;&lt;/option&gt;
+                                        &lt;option value=&quot;closed&quot;&gt;&lt;?php _e( 'Do not allow' ); ?&gt;&lt;/option&gt;
+                                &lt;/select&gt;
+                        &lt;/label&gt;
+                &lt;?php endif; if ( post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) : ?&gt;
+                        &lt;label class=&quot;alignright&quot;&gt;
+                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Pings' ); ?&gt;&lt;/span&gt;
+                                &lt;select name=&quot;ping_status&quot;&gt;
+                                        &lt;option value=&quot;&quot;&gt;&lt;?php _e( '&amp;mdash; No Change &amp;mdash;' ); ?&gt;&lt;/option&gt;
+                                        &lt;option value=&quot;open&quot;&gt;&lt;?php _e( 'Allow' ); ?&gt;&lt;/option&gt;
+                                        &lt;option value=&quot;closed&quot;&gt;&lt;?php _e( 'Do not allow' ); ?&gt;&lt;/option&gt;
+                                &lt;/select&gt;
+                        &lt;/label&gt;
+                &lt;?php endif; ?&gt;
+                        &lt;/div&gt;
+
+        &lt;?php else : // $bulk ?&gt;
+
+                        &lt;div class=&quot;inline-edit-group&quot;&gt;
+                        &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) ) : ?&gt;
+                                &lt;label class=&quot;alignleft&quot;&gt;
+                                        &lt;input type=&quot;checkbox&quot; name=&quot;comment_status&quot; value=&quot;open&quot; /&gt;
+                                        &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php _e( 'Allow Comments' ); ?&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+                        &lt;?php endif; if ( post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) : ?&gt;
+                                &lt;label class=&quot;alignleft&quot;&gt;
+                                        &lt;input type=&quot;checkbox&quot; name=&quot;ping_status&quot; value=&quot;open&quot; /&gt;
+                                        &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php _e( 'Allow Pings' ); ?&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+                        &lt;?php endif; ?&gt;
+                        &lt;/div&gt;
+
+        &lt;?php endif; // $bulk
+        endif; // post_type_supports comments or pings ?&gt;
+
+                        &lt;div class=&quot;inline-edit-group&quot;&gt;
+                                &lt;label class=&quot;inline-edit-status alignleft&quot;&gt;
+                                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Status' ); ?&gt;&lt;/span&gt;
+                                        &lt;select name=&quot;_status&quot;&gt;
+        &lt;?php if ( $bulk ) : ?&gt;
+                                                &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( '&amp;mdash; No Change &amp;mdash;' ); ?&gt;&lt;/option&gt;
+        &lt;?php endif; // $bulk ?&gt;
+                                        &lt;?php if ( $can_publish ) : // Contributors only get &quot;Unpublished&quot; and &quot;Pending Review&quot; ?&gt;
+                                                &lt;option value=&quot;publish&quot;&gt;&lt;?php _e( 'Published' ); ?&gt;&lt;/option&gt;
+                                                &lt;option value=&quot;future&quot;&gt;&lt;?php _e( 'Scheduled' ); ?&gt;&lt;/option&gt;
+        &lt;?php if ( $bulk ) : ?&gt;
+                                                &lt;option value=&quot;private&quot;&gt;&lt;?php _e( 'Private' ) ?&gt;&lt;/option&gt;
+        &lt;?php endif; // $bulk ?&gt;
+                                        &lt;?php endif; ?&gt;
+                                                &lt;option value=&quot;pending&quot;&gt;&lt;?php _e( 'Pending Review' ); ?&gt;&lt;/option&gt;
+                                                &lt;option value=&quot;draft&quot;&gt;&lt;?php _e( 'Draft' ); ?&gt;&lt;/option&gt;
+                                        &lt;/select&gt;
+                                &lt;/label&gt;
+
+        &lt;?php if ( 'post' == $screen-&gt;post_type &amp;&amp; $can_publish &amp;&amp; current_user_can( $post_type_object-&gt;cap-&gt;edit_others_posts ) ) : ?&gt;
+
+        &lt;?php        if ( $bulk ) : ?&gt;
+
+                                &lt;label class=&quot;alignright&quot;&gt;
+                                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Sticky' ); ?&gt;&lt;/span&gt;
+                                        &lt;select name=&quot;sticky&quot;&gt;
+                                                &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( '&amp;mdash; No Change &amp;mdash;' ); ?&gt;&lt;/option&gt;
+                                                &lt;option value=&quot;sticky&quot;&gt;&lt;?php _e( 'Sticky' ); ?&gt;&lt;/option&gt;
+                                                &lt;option value=&quot;unsticky&quot;&gt;&lt;?php _e( 'Not Sticky' ); ?&gt;&lt;/option&gt;
+                                        &lt;/select&gt;
+                                &lt;/label&gt;
+
+        &lt;?php        else : // $bulk ?&gt;
+
+                                &lt;label class=&quot;alignleft&quot;&gt;
+                                        &lt;input type=&quot;checkbox&quot; name=&quot;sticky&quot; value=&quot;sticky&quot; /&gt;
+                                        &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php _e( 'Make this post sticky' ); ?&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+
+        &lt;?php        endif; // $bulk ?&gt;
+
+        &lt;?php endif; // !$is_page &amp;&amp; $can_publish &amp;&amp; current_user_can( 'edit_others_cap' ) ?&gt;
+
+                        &lt;/div&gt;
+
+                &lt;/div&gt;&lt;/fieldset&gt;
+
+        &lt;?php
+                foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                        if ( isset( $core_columns[$column_name] ) )
+                                continue;
+                        do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $screen-&gt;post_type );
+                }
+        ?&gt;
+                &lt;p class=&quot;submit inline-edit-save&quot;&gt;
+                        &lt;a accesskey=&quot;c&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php _e( 'Cancel' ); ?&gt;&quot; class=&quot;button-secondary cancel alignleft&quot;&gt;&lt;?php _e( 'Cancel' ); ?&gt;&lt;/a&gt;
+                        &lt;?php if ( ! $bulk ) {
+                                wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
+                                $update_text = __( 'Update' );
+                                ?&gt;
+                                &lt;a accesskey=&quot;s&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php _e( 'Update' ); ?&gt;&quot; class=&quot;button-primary save alignright&quot;&gt;&lt;?php echo esc_attr( $update_text ); ?&gt;&lt;/a&gt;
+                                &lt;img class=&quot;waiting&quot; style=&quot;display:none;&quot; src=&quot;&lt;?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?&gt;&quot; alt=&quot;&quot; /&gt;
+                        &lt;?php } else {
+                                $update_text = __( 'Update' );
+                        ?&gt;
+                                &lt;input accesskey=&quot;s&quot; class=&quot;button-primary alignright&quot; type=&quot;submit&quot; name=&quot;bulk_edit&quot; value=&quot;&lt;?php echo esc_attr( $update_text ); ?&gt;&quot; /&gt;
+                        &lt;?php } ?&gt;
+                        &lt;input type=&quot;hidden&quot; name=&quot;post_view&quot; value=&quot;&lt;?php echo esc_attr( $m ); ?&gt;&quot; /&gt;
+                        &lt;input type=&quot;hidden&quot; name=&quot;screen&quot; value=&quot;&lt;?php echo esc_attr( $screen-&gt;id ); ?&gt;&quot; /&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/p&gt;
+                &lt;/td&gt;&lt;/tr&gt;
+        &lt;?php
+                $bulk++;
+                }
+?&gt;
+                &lt;/tbody&gt;&lt;/table&gt;&lt;/form&gt;
+&lt;?php
+        }
+}
+
+class WP_Media_Table extends WP_List_Table {
+
+        function WP_Media_Table( $context = 'normal' ) {
+                global $wpdb, $wp_query, $detached, $post_mime_types, $avail_post_mime_types;
+
+                if ( isset( $_REQUEST['find_detached'] ) ) {
+                        if ( !current_user_can( 'edit_posts' ) )
+                                wp_die( __( 'You are not allowed to scan for lost attachments.' ) );
+
+                        $lost = $wpdb-&gt;get_col( &quot;
+                                SELECT ID FROM $wpdb-&gt;posts
+                                WHERE post_type = 'attachment' AND post_parent &gt; '0'
+                                AND post_parent NOT IN (
+                                        SELECT ID FROM $wpdb-&gt;posts
+                                        WHERE post_type NOT IN ( 'attachment', '&quot; . join( &quot;', '&quot;, get_post_types( array( 'public' =&gt; false ) ) ) . &quot;' )
+                                )
+                        &quot; );
+
+                        $_REQUEST['detached'] = 1;
+                }
+
+                $detached = isset( $_REQUEST['detached'] );
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; $detached ? 'upload-detached' : 'upload',
+                        'plural' =&gt; 'media'
+                ) );
+
+                if ( 'normal' != $context )
+                        return;
+
+                $q = $_REQUEST;
+
+                if ( !empty( $lost ) )
+                        $q['post__in'] = implode( ',', $lost );
+
+                list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $q );
+
+                 $this-&gt;is_trash = isset( $_REQUEST['status'] ) &amp;&amp; 'trash' == $_REQUEST['status'];
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $wp_query-&gt;found_posts,
+                        'total_pages' =&gt; $wp_query-&gt;max_num_pages,
+                        'per_page' =&gt; $wp_query-&gt;query_vars['posts_per_page'],
+                ) );
+        }
+
+        function get_bulk_actions() {
+                global $detached;
+
+                $actions = array();
+                $actions['delete'] = __( 'Delete Permanently' );
+                if ( $detached )
+                        $actions['attach'] = __( 'Attach to a post' );
+
+                return $actions;
+        }
+
+        function extra_tablenav( $which ) {
+                global $post_type, $detached;
+?&gt;
+                &lt;div class=&quot;alignleft actions&quot;&gt;
+&lt;?php
+                if ( 'top' == $which &amp;&amp; !is_singular() &amp;&amp; !$detached &amp;&amp; !$this-&gt;is_trash ) {
+                        $this-&gt;months_dropdown( $post_type );
+
+                        do_action( 'restrict_manage_posts' );
+?&gt;
+                        &lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e( 'Filter' ); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
+&lt;?php
+                }
+
+                if ( $detached ) { ?&gt;
+                        &lt;input type=&quot;submit&quot; id=&quot;find_detached&quot; name=&quot;find_detached&quot; value=&quot;&lt;?php esc_attr_e( 'Scan for lost attachments' ); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
+                &lt;?php } elseif ( $this-&gt;is_trash &amp;&amp; current_user_can( 'edit_others_posts' ) ) { ?&gt;
+                        &lt;input type=&quot;submit&quot; id=&quot;delete_all&quot; name=&quot;delete_all&quot; value=&quot;&lt;?php esc_attr_e( 'Empty Trash' ); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
+                &lt;?php } ?&gt;
+                &lt;/div&gt;
+&lt;?php
+        }
+
+        function has_items() {
+                return have_posts();
+        }
+
+        function no_items() {
+                _e( 'No media attachments found.' );
+        }
+
+        function get_columns() {
+                $posts_columns = array();
+                $posts_columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
+                $posts_columns['icon'] = '';
+                /* translators: column name */
+                $posts_columns['title'] = _x( 'File', 'column name' );
+                $posts_columns['author'] = __( 'Author' );
+                //$posts_columns['tags'] = _x( 'Tags', 'column name' );
+                /* translators: column name */
+                if ( 'upload' == $this-&gt;_screen-&gt;id ) {
+                        $posts_columns['parent'] = _x( 'Attached to', 'column name' );
+                        $posts_columns['comments'] = '&lt;div class=&quot;vers&quot;&gt;&lt;img alt=&quot;Comments&quot; src=&quot;' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '&quot; /&gt;&lt;/div&gt;';
+                }
+                /* translators: column name */
+                $posts_columns['date'] = _x( 'Date', 'column name' );
+                $posts_columns = apply_filters( 'manage_media_columns', $posts_columns, 'upload' != $this-&gt;_screen-&gt;id );
+
+                return $posts_columns;
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'title'    =&gt; 'title',
+                        'author'   =&gt; 'author',
+                        'parent'   =&gt; 'parent',
+                        'comments' =&gt; 'comment_count',
+                        'date'     =&gt; 'date',
+                );
+        }
+
+        function display_rows() {
+                global $detached, $post, $id;
+
+                if ( $detached ) {
+                        $this-&gt;display_orphans();
+                        return;
+                }
+
+                add_filter( 'the_title','esc_html' );
+                $alt = '';
+
+                while ( have_posts() ) : the_post();
+
+                        if ( $this-&gt;is_trash &amp;&amp; $post-&gt;post_status != 'trash'
+                        ||  !$this-&gt;is_trash &amp;&amp; $post-&gt;post_status == 'trash' )
+                                continue;
+
+                        $alt = ( 'alternate' == $alt ) ? '' : 'alternate';
+                        $post_owner = ( get_current_user_id() == $post-&gt;post_author ) ? 'self' : 'other';
+                        $att_title = _draft_or_post_title();
+?&gt;
+        &lt;tr id='post-&lt;?php echo $id; ?&gt;' class='&lt;?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post-&gt;post_status ); ?&gt;' valign=&quot;top&quot;&gt;
+&lt;?php
+
+list( $columns, $hidden ) = $this-&gt;get_column_headers();
+foreach ( $columns as $column_name =&gt; $column_display_name ) {
+        $class = &quot;class='$column_name column-$column_name'&quot;;
+
+        $style = '';
+        if ( in_array( $column_name, $hidden ) )
+                $style = ' style=&quot;display:none;&quot;';
+
+        $attributes = $class . $style;
+
+        switch ( $column_name ) {
+
+        case 'cb':
+?&gt;
+                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;?php if ( current_user_can( 'edit_post', $post-&gt;ID ) ) { ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;media[]&quot; value=&quot;&lt;?php the_ID(); ?&gt;&quot; /&gt;&lt;?php } ?&gt;&lt;/th&gt;
+&lt;?php
+                break;
+
+        case 'icon':
+                $attributes = 'class=&quot;column-icon media-icon&quot;' . $style;
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
+                        if ( $thumb = wp_get_attachment_image( $post-&gt;ID, array( 80, 60 ), true ) ) {
+                                if ( $this-&gt;is_trash ) {
+                                        echo $thumb;
+                                } else {
+?&gt;
+                                &lt;a href=&quot;&lt;?php echo get_edit_post_link( $post-&gt;ID, true ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $att_title ) ); ?&gt;&quot;&gt;
+                                        &lt;?php echo $thumb; ?&gt;
+                                &lt;/a&gt;
+
+&lt;?php                        }
+                        }
+?&gt;
+                &lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'title':
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( $this-&gt;is_trash ) echo $att_title; else { ?&gt;&lt;a href=&quot;&lt;?php echo get_edit_post_link( $post-&gt;ID, true ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $att_title ) ); ?&gt;&quot;&gt;&lt;?php echo $att_title; ?&gt;&lt;/a&gt;&lt;?php } ?&gt;&lt;/strong&gt;
+                        &lt;p&gt;
+&lt;?php
+                        if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post-&gt;ID ), $matches ) )
+                                echo esc_html( strtoupper( $matches[1] ) );
+                        else
+                                echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
+?&gt;
+                        &lt;/p&gt;
+&lt;?php
+                $actions = array();
+                if ( current_user_can( 'edit_post', $post-&gt;ID ) &amp;&amp; !$this-&gt;is_trash )
+                        $actions['edit'] = '&lt;a href=&quot;' . get_edit_post_link( $post-&gt;ID, true ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                if ( current_user_can( 'delete_post', $post-&gt;ID ) ) {
+                        if ( $this-&gt;is_trash )
+                                $actions['untrash'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url( &quot;post.php?action=untrash&amp;amp;post=$post-&gt;ID&quot;, 'untrash-attachment_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Restore' ) . &quot;&lt;/a&gt;&quot;;
+                        elseif ( EMPTY_TRASH_DAYS &amp;&amp; MEDIA_TRASH )
+                                $actions['trash'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url( &quot;post.php?action=trash&amp;amp;post=$post-&gt;ID&quot;, 'trash-attachment_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Trash' ) . &quot;&lt;/a&gt;&quot;;
+                        if ( $this-&gt;is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
+                                $delete_ays = ( !$this-&gt;is_trash &amp;&amp; !MEDIA_TRASH ) ? &quot; onclick='return showNotice.warn();'&quot; : '';
+                                $actions['delete'] = &quot;&lt;a class='submitdelete'$delete_ays href='&quot; . wp_nonce_url( &quot;post.php?action=delete&amp;amp;post=$post-&gt;ID&quot;, 'delete-attachment_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Delete Permanently' ) . &quot;&lt;/a&gt;&quot;;
+                        }
+                }
+                if ( !$this-&gt;is_trash ) {
+                        $title =_draft_or_post_title( $post-&gt;post_parent );
+                        $actions['view'] = '&lt;a href=&quot;' . get_permalink( $post-&gt;ID ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'View &amp;#8220;%s&amp;#8221;' ), $title ) ) . '&quot; rel=&quot;permalink&quot;&gt;' . __( 'View' ) . '&lt;/a&gt;';
+                }
+                $actions = apply_filters( 'media_row_actions', $actions, $post );
+                $action_count = count( $actions );
+                $i = 0;
+                echo '&lt;div class=&quot;row-actions&quot;&gt;';
+                foreach ( $actions as $action =&gt; $link ) {
+                        $sep = ( ++$i == $action_count ) ? '' : ' | ';
+                        echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                }
+                echo '&lt;/div&gt;';
+?&gt;
+                &lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'author':
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php the_author() ?&gt;&lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'tags':
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
+                $tags = get_the_tags();
+                if ( !empty( $tags ) ) {
+                        $out = array();
+                        foreach ( $tags as $c )
+                                $out[] = &quot;&lt;a href='edit.php?tag=$c-&gt;slug'&gt; &quot; . esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'post_tag', 'display' ) ) . &quot;&lt;/a&gt;&quot;;
+                        echo join( ', ', $out );
+                } else {
+                        _e( 'No Tags' );
+                }
+?&gt;
+                &lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'desc':
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo has_excerpt() ? $post-&gt;post_excerpt : ''; ?&gt;&lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'date':
+                if ( '0000-00-00 00:00:00' == $post-&gt;post_date &amp;&amp; 'date' == $column_name ) {
+                        $t_time = $h_time = __( 'Unpublished' );
+                } else {
+                        $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
+                        $m_time = $post-&gt;post_date;
+                        $time = get_post_time( 'G', true, $post, false );
+                        if ( ( abs( $t_diff = time() - $time ) ) &lt; 86400 ) {
+                                if ( $t_diff &lt; 0 )
+                                        $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) );
+                                else
+                                        $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
+                        } else {
+                                $h_time = mysql2date( __( 'Y/m/d' ), $m_time );
+                        }
+                }
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo $h_time ?&gt;&lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'parent':
+                if ( $post-&gt;post_parent &gt; 0 ) {
+                        if ( get_post( $post-&gt;post_parent ) ) {
+                                $title =_draft_or_post_title( $post-&gt;post_parent );
+                        }
+?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;
+                                &lt;strong&gt;&lt;a href=&quot;&lt;?php echo get_edit_post_link( $post-&gt;post_parent ); ?&gt;&quot;&gt;&lt;?php echo $title ?&gt;&lt;/a&gt;&lt;/strong&gt;,
+                                &lt;?php echo get_the_time( __( 'Y/m/d' ) ); ?&gt;
+                        &lt;/td&gt;
+&lt;?php
+                } else {
+?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php _e( '( Unattached )' ); ?&gt;&lt;br /&gt;
+                        &lt;a class=&quot;hide-if-no-js&quot; onclick=&quot;findPosts.open( 'media[]','&lt;?php echo $post-&gt;ID ?&gt;' );return false;&quot; href=&quot;#the-list&quot;&gt;&lt;?php _e( 'Attach' ); ?&gt;&lt;/a&gt;&lt;/td&gt;
+&lt;?php
+                }
+                break;
+
+        case 'comments':
+                $attributes = 'class=&quot;comments column-comments num&quot;' . $style;
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;
+                        &lt;div class=&quot;post-com-count-wrapper&quot;&gt;
+&lt;?php
+                $left = get_pending_comments_num( $post-&gt;ID );
+                $pending_phrase = sprintf( __( '%s pending' ), number_format( $left ) );
+                if ( $left )
+                        echo '&lt;strong&gt;';
+                comments_number(
+                        &quot;&lt;a href='edit-comments.php?post_ID=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                        . /* translators: comment count link */ _x( '0', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                        &quot;&lt;a href='edit-comments.php?post_ID=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                        . /* translators: comment count link */ _x( '1', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                        &quot;&lt;a href='edit-comments.php?post_ID=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                        . /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;'
+                );
+                if ( $left )
+                        echo '&lt;/strong&gt;';
+                ?&gt;
+                        &lt;/div&gt;
+                &lt;/td&gt;
+&lt;?php
+                break;
+
+        case 'actions':
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;
+                        &lt;a href=&quot;media.php?action=edit&amp;amp;attachment_id=&lt;?php the_ID(); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $att_title ) ); ?&gt;&quot;&gt;&lt;?php _e( 'Edit' ); ?&gt;&lt;/a&gt; |
+                        &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php _e( 'Get permalink' ); ?&gt;&lt;/a&gt;
+                &lt;/td&gt;
+                &lt;?php
+                break;
+
+        default:
+?&gt;
+                &lt;td &lt;?php echo $attributes ?&gt;&gt;
+                        &lt;?php do_action( 'manage_media_custom_column', $column_name, $id ); ?&gt;
+                &lt;/td&gt;
+&lt;?php
+                break;
+        }
+}
+?&gt;
+        &lt;/tr&gt;
+&lt;?php endwhile;
+        }
+
+        function display_orphans() {
+                global $post;
+
+                $class = '';
+
+                while ( have_posts() ) : the_post();
+
+                        $class = ( 'alternate' == $class ) ? '' : 'alternate';
+                        $att_title = esc_html( _draft_or_post_title( $post-&gt;ID ) );
+
+                        $edit_link = '&lt;a href=&quot;' . get_edit_post_link( $post-&gt;ID ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $att_title ) ) . '&quot;&gt;%s&lt;/a&gt;';
+?&gt;
+        &lt;tr id='post-&lt;?php echo $post-&gt;ID; ?&gt;' class='&lt;?php echo $class; ?&gt;' valign=&quot;top&quot;&gt;
+                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;
+                &lt;?php if ( current_user_can( 'edit_post', $post-&gt;ID ) ) { ?&gt;
+                        &lt;input type=&quot;checkbox&quot; name=&quot;media[]&quot; value=&quot;&lt;?php echo esc_attr( $post-&gt;ID ); ?&gt;&quot; /&gt;
+                &lt;?php } ?&gt;
+                &lt;/th&gt;
+
+                &lt;td class=&quot;media-icon&quot;&gt;
+                &lt;?php if ( $thumb = wp_get_attachment_image( $post-&gt;ID, array( 80, 60 ), true ) ) {
+                        printf( $edit_link, $thumb );
+                } ?&gt;
+                &lt;/td&gt;
+
+                &lt;td class=&quot;media column-media&quot;&gt;
+                        &lt;strong&gt;&lt;?php printf( $edit_link, $att_title ); ?&gt;&lt;/strong&gt;&lt;br /&gt;
+&lt;?php
+                        if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post-&gt;ID ), $matches ) )
+                                echo esc_html( strtoupper( $matches[1] ) );
+                        else
+                                echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
+?&gt;
+                        &lt;div class=&quot;row-actions&quot;&gt;
+&lt;?php
+                        $actions = array();
+                        if ( current_user_can( 'edit_post', $post-&gt;ID ) )
+                                $actions['edit'] = '&lt;a href=&quot;' . get_edit_post_link( $post-&gt;ID, true ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                        if ( current_user_can( 'delete_post', $post-&gt;ID ) )
+                                if ( EMPTY_TRASH_DAYS &amp;&amp; MEDIA_TRASH ) {
+                                        $actions['trash'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url( &quot;post.php?action=trash&amp;amp;post=$post-&gt;ID&quot;, 'trash-attachment_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Trash' ) . &quot;&lt;/a&gt;&quot;;
+                                } else {
+                                        $delete_ays = !MEDIA_TRASH ? &quot; onclick='return showNotice.warn();'&quot; : '';
+                                        $actions['delete'] = &quot;&lt;a class='submitdelete'$delete_ays href='&quot; . wp_nonce_url( &quot;post.php?action=delete&amp;amp;post=$post-&gt;ID&quot;, 'delete-attachment_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __( 'Delete Permanently' ) . &quot;&lt;/a&gt;&quot;;
+                                }
+                        $actions['view'] = '&lt;a href=&quot;' . get_permalink( $post-&gt;ID ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'View &amp;#8220;%s&amp;#8221;' ), $att_title ) ) . '&quot; rel=&quot;permalink&quot;&gt;' . __( 'View' ) . '&lt;/a&gt;';
+                        if ( current_user_can( 'edit_post', $post-&gt;ID ) )
+                                $actions['attach'] = '&lt;a href=&quot;#the-list&quot; onclick=&quot;findPosts.open( \'media[]\',\''.$post-&gt;ID.'\' );return false;&quot; class=&quot;hide-if-no-js&quot;&gt;'.__( 'Attach' ).'&lt;/a&gt;';
+                        $actions = apply_filters( 'media_row_actions', $actions, $post );
+
+                        $action_count = count( $actions );
+                        $i = 0;
+                        foreach ( $actions as $action =&gt; $link ) {
+                                $sep = ( ++$i == $action_count ) ? '' : ' | ';
+                                echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                        }
+?&gt;
+                        &lt;/div&gt;
+                &lt;/td&gt;
+                &lt;td class=&quot;author column-author&quot;&gt;
+                        &lt;?php $author = get_userdata( $post-&gt;post_author ); echo $author-&gt;display_name; ?&gt;
+                &lt;/td&gt;
+&lt;?php
+                if ( '0000-00-00 00:00:00' == $post-&gt;post_date &amp;&amp; 'date' == $column_name ) {
+                        $t_time = $h_time = __( 'Unpublished' );
+                } else {
+                        $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
+                        $m_time = $post-&gt;post_date;
+                        $time = get_post_time( 'G', true );
+                        if ( ( abs( $t_diff = time() - $time ) ) &lt; 86400 ) {
+                                if ( $t_diff &lt; 0 )
+                                        $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) );
+                                else
+                                        $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
+                        } else {
+                                $h_time = mysql2date( __( 'Y/m/d' ), $m_time );
+                        }
+                }
+?&gt;
+                &lt;td class=&quot;date column-date&quot;&gt;&lt;?php echo $h_time ?&gt;&lt;/td&gt;
+        &lt;/tr&gt;
+&lt;?php
+                endwhile;
+        }
+}
+
+class WP_Terms_Table extends WP_List_Table {
+
+        var $callback_args;
+
+        function WP_Terms_Table( $context = 'normal' ) {
+                global $post_type, $taxonomy, $tax, $current_screen;
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; $current_screen,
+                        'plural' =&gt; 'tags',
+                        'singular' =&gt; 'tag',
+                ) );
+
+                if ( 'normal' != $context )
+                        return;
+
+                wp_reset_vars( array( 'action', 'tag', 'taxonomy', 'post_type' ) );
+
+                if ( empty( $taxonomy ) )
+                        $taxonomy = 'post_tag';
+
+                if ( !taxonomy_exists( $taxonomy ) )
+                        wp_die( __( 'Invalid taxonomy' ) );
+
+                $tax = get_taxonomy( $taxonomy );
+
+                if ( ! current_user_can( $tax-&gt;cap-&gt;manage_terms ) )
+                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+
+                if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'public' =&gt; true ) ) ) )
+                        $post_type = 'post';
+
+                $tags_per_page = (int) get_user_option( 'edit_' .  $taxonomy . '_per_page' );
+
+                if ( empty( $tags_per_page ) || $tags_per_page &lt; 1 )
+                        $tags_per_page = 20;
+
+                if ( 'post_tag' == $taxonomy ) {
+                        $tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
+                        $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page ); // Old filter
+                } elseif ( 'category' == $taxonomy ) {
+                        $tags_per_page = apply_filters( 'edit_categories_per_page', $tags_per_page ); // Old filter
+                } else {
+                        $tags_per_page = apply_filters( 'edit_' . $taxonomy . '_per_page', $tags_per_page );
+                }
+
+                $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : '';
+
+                $args = array(
+                        'search' =&gt; $search,
+                        'page' =&gt; $this-&gt;get_pagenum(),
+                        'number' =&gt; $tags_per_page,
+                );
+
+                if ( !empty( $_REQUEST['orderby'] ) )
+                        $args['orderby'] = trim( stripslashes( $_REQUEST['orderby'] ) );
+
+                if ( !empty( $_REQUEST['order'] ) )
+                        $args['order'] = trim( stripslashes( $_REQUEST['order'] ) );
+
+                $this-&gt;callback_args = $args;
+                
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; wp_count_terms( $taxonomy, compact( 'search' ) ),
+                        'per_page' =&gt; $tags_per_page,                
+                ) );
+        }
+
+        function get_bulk_actions() {
+                $actions = array();
+                $actions['delete'] = __( 'Delete' );
+
+                return $actions;
+        }
+
+        function get_columns() {
+                global $taxonomy;
+
+                $columns = array(
+                        'cb'          =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'name'        =&gt; __( 'Name' ),
+                        'description' =&gt; __( 'Description' ),
+                        'slug'        =&gt; __( 'Slug' ),
+                );
+
+                if ( 'link_category' == $taxonomy )
+                        $columns['links'] = __( 'Links' );
+                else
+                        $columns['posts'] = __( 'Posts' );
+
+                return $columns;
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'name'        =&gt; 'name',
+                        'description' =&gt; 'description',
+                        'slug'        =&gt; 'slug',
+                        'posts'       =&gt; 'count',
+                        'links'       =&gt; 'count'
+                );
+        }
+
+        function display_rows() {
+                global $taxonomy;
+
+                $args = wp_parse_args( $this-&gt;callback_args, array(
+                        'page' =&gt; 1,
+                        'number' =&gt; 20,
+                        'search' =&gt; '',
+                        'hide_empty' =&gt; 0
+                ) );
+
+                extract( $args, EXTR_SKIP );
+
+                $args['offset'] = $offset = ( $page - 1 ) * $number;
+
+                // convert it to table rows
+                $out = '';
+                $count = 0;
+                if ( is_taxonomy_hierarchical( $taxonomy ) &amp;&amp; !isset( $orderby ) ) {
+                        // We'll need the full set of terms then.
+                        $args['number'] = $args['offset'] = 0;
+
+                        $terms = get_terms( $taxonomy, $args );
+                        if ( !empty( $search ) ) // Ignore children on searches.
+                                $children = array();
+                        else
+                                $children = _get_term_hierarchy( $taxonomy );
+
+                        // Some funky recursion to get the job done( Paging &amp; parents mainly ) is contained within, Skip it for non-hierarchical taxonomies for performance sake
+                        $out .= $this-&gt;_rows( $taxonomy, $terms, $children, $offset, $number, $count );
+                } else {
+                        $terms = get_terms( $taxonomy, $args );
+                        foreach ( $terms as $term )
+                                $out .= $this-&gt;single_row( $term, 0, $taxonomy );
+                        $count = $number; // Only displaying a single page.
+                }
+
+                echo $out;
+        }
+
+        function _rows( $taxonomy, $terms, &amp;$children, $start = 0, $per_page = 20, &amp;$count, $parent = 0, $level = 0 ) {
+
+                $end = $start + $per_page;
+
+                $output = '';
+                foreach ( $terms as $key =&gt; $term ) {
+
+                        if ( $count &gt;= $end )
+                                break;
+
+                        if ( $term-&gt;parent != $parent &amp;&amp; empty( $_REQUEST['s'] ) )
+                                continue;
+
+                        // If the page starts in a subtree, print the parents.
+                        if ( $count == $start &amp;&amp; $term-&gt;parent &gt; 0 &amp;&amp; empty( $_REQUEST['s'] ) ) {
+                                $my_parents = $parent_ids = array();
+                                $p = $term-&gt;parent;
+                                while ( $p ) {
+                                        $my_parent = get_term( $p, $taxonomy );
+                                        $my_parents[] = $my_parent;
+                                        $p = $my_parent-&gt;parent;
+                                        if ( in_array( $p, $parent_ids ) ) // Prevent parent loops.
+                                                break;
+                                        $parent_ids[] = $p;
+                                }
+                                unset( $parent_ids );
+
+                                $num_parents = count( $my_parents );
+                                while ( $my_parent = array_pop( $my_parents ) ) {
+                                        $output .=  &quot;\t&quot; . $this-&gt;single_row( $my_parent, $level - $num_parents, $taxonomy );
+                                        $num_parents--;
+                                }
+                        }
+
+                        if ( $count &gt;= $start )
+                                $output .= &quot;\t&quot; . $this-&gt;single_row( $term, $level, $taxonomy );
+
+                        ++$count;
+
+                        unset( $terms[$key] );
+
+                        if ( isset( $children[$term-&gt;term_id] ) &amp;&amp; empty( $_REQUEST['s'] ) )
+                                $output .= $this-&gt;_rows( $taxonomy, $terms, $children, $start, $per_page, $count, $term-&gt;term_id, $level + 1 );
+                }
+
+                return $output;
+        }
+
+        function single_row( $tag, $level, $taxonomy = 'post_tag' ) {
+                global $post_type, $current_screen;
+                static $row_class = '';
+                $row_class = ( $row_class == '' ? ' class=&quot;alternate&quot;' : '' );
+
+                $count = number_format_i18n( $tag-&gt;count );
+                $tax = get_taxonomy( $taxonomy );
+
+                if ( 'post_tag' == $taxonomy ) {
+                        $tagsel = 'tag';
+                } elseif ( 'category' == $taxonomy ) {
+                        $tagsel = 'category_name';
+                } elseif ( ! empty( $tax-&gt;query_var ) ) {
+                        $tagsel = $tax-&gt;query_var;
+                } else {
+                        $tagsel = $taxonomy;
+                }
+
+                $pad = str_repeat( '&amp;#8212; ', max( 0, $level ) );
+                $name = apply_filters( 'term_name', $pad . ' ' . $tag-&gt;name, $tag );
+                $qe_data = get_term( $tag-&gt;term_id, $taxonomy, object, 'edit' );
+                $edit_link = &quot;edit-tags.php?action=edit&amp;amp;taxonomy=$taxonomy&amp;amp;post_type=$post_type&amp;amp;tag_ID=$tag-&gt;term_id&quot;;
+
+                $out = '';
+                $out .= '&lt;tr id=&quot;tag-' . $tag-&gt;term_id . '&quot;' . $row_class . '&gt;';
+
+                $default_term = get_option( 'default_' . $taxonomy );
+
+                list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                        $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
+
+                        $style = '';
+                        if ( in_array( $column_name, $hidden ) )
+                                $style = ' style=&quot;display:none;&quot;';
+
+                        $attributes = &quot;$class$style&quot;;
+
+                        switch ( $column_name ) {
+                                case 'cb':
+                                        if ( current_user_can( $tax-&gt;cap-&gt;delete_terms ) &amp;&amp; $tag-&gt;term_id != $default_term )
+                                                $out .= '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt; &lt;input type=&quot;checkbox&quot; name=&quot;delete_tags[]&quot; value=&quot;' . $tag-&gt;term_id . '&quot; /&gt;&lt;/th&gt;';
+                                        else
+                                                $out .= '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&amp;nbsp;&lt;/th&gt;';
+                                        break;
+                                case 'name':
+                                        $out .= '&lt;td ' . $attributes . '&gt;&lt;strong&gt;&lt;a class=&quot;row-title&quot; href=&quot;' . $edit_link . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $name ) ) . '&quot;&gt;' . $name . '&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;';
+                                        $actions = array();
+                                        if ( current_user_can( $tax-&gt;cap-&gt;edit_terms ) ) {
+                                                $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                                                $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __( 'Quick&amp;nbsp;Edit' ) . '&lt;/a&gt;';
+                                        }
+                                        if ( current_user_can( $tax-&gt;cap-&gt;delete_terms ) &amp;&amp; $tag-&gt;term_id != $default_term )
+                                                $actions['delete'] = &quot;&lt;a class='delete-tag' href='&quot; . wp_nonce_url( &quot;edit-tags.php?action=delete&amp;amp;taxonomy=$taxonomy&amp;amp;tag_ID=$tag-&gt;term_id&quot;, 'delete-tag_' . $tag-&gt;term_id ) . &quot;'&gt;&quot; . __( 'Delete' ) . &quot;&lt;/a&gt;&quot;;
+
+                                        $actions = apply_filters( 'tag_row_actions', $actions, $tag );
+                                        $actions = apply_filters( &quot;${taxonomy}_row_actions&quot;, $actions, $tag );
+
+                                        $action_count = count( $actions );
+                                        $i = 0;
+                                        $out .= '&lt;div class=&quot;row-actions&quot;&gt;';
+                                        foreach ( $actions as $action =&gt; $link ) {
+                                                ++$i;
+                                                ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+                                                $out .= &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                                        }
+                                        $out .= '&lt;/div&gt;';
+                                        $out .= '&lt;div class=&quot;hidden&quot; id=&quot;inline_' . $qe_data-&gt;term_id . '&quot;&gt;';
+                                        $out .= '&lt;div class=&quot;name&quot;&gt;' . $qe_data-&gt;name . '&lt;/div&gt;';
+                                        $out .= '&lt;div class=&quot;slug&quot;&gt;' . apply_filters( 'editable_slug', $qe_data-&gt;slug ) . '&lt;/div&gt;';
+                                        $out .= '&lt;div class=&quot;parent&quot;&gt;' . $qe_data-&gt;parent . '&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;';
+                                        break;
+                                case 'description':
+                                        $out .= &quot;&lt;td $attributes&gt;$tag-&gt;description&lt;/td&gt;&quot;;
+                                        break;
+                                case 'slug':
+                                        $out .= &quot;&lt;td $attributes&gt;&quot; . apply_filters( 'editable_slug', $tag-&gt;slug ) . &quot;&lt;/td&gt;&quot;;
+                                        break;
+                                case 'posts':
+                                        $attributes = 'class=&quot;posts column-posts num&quot;' . $style;
+                                        $out .= &quot;&lt;td $attributes&gt;&lt;a href='edit.php?$tagsel=$tag-&gt;slug&amp;amp;post_type=$post_type'&gt;$count&lt;/a&gt;&lt;/td&gt;&quot;;
+                                        break;
+                                case 'links':
+                                        $attributes = 'class=&quot;links column-links num&quot;' . $style;
+                                        $out .= &quot;&lt;td $attributes&gt;$count&lt;/td&gt;&quot;;
+                                        break;
+                                default:
+                                        $out .= &quot;&lt;td $attributes&gt;&quot;;
+                                        $out .= apply_filters( &quot;manage_${taxonomy}_custom_column&quot;, '', $column_name, $tag-&gt;term_id );
+                                        $out .= &quot;&lt;/td&gt;&quot;;
+                        }
+                }
+
+                $out .= &quot;&lt;/tr&gt;\n&quot;;
+
+                return $out;
+        }
+
+        /**
+         * Outputs the hidden row displayed when inline editing
+         *
+         * @since 3.1
+         */
+        function inline_edit() {
+                global $tax;
+
+                if ( ! current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
+                        return;
+
+                list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                $col_count = count( $columns ) - count( $hidden );
+                ?&gt;
+
+        &lt;form method=&quot;get&quot; action=&quot;&quot;&gt;&lt;table style=&quot;display: none&quot;&gt;&lt;tbody id=&quot;inlineedit&quot;&gt;
+                &lt;tr id=&quot;inline-edit&quot; class=&quot;inline-edit-row&quot; style=&quot;display: none&quot;&gt;&lt;td colspan=&quot;&lt;?php echo $col_count; ?&gt;&quot;&gt;
+
+                        &lt;fieldset&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
+                                &lt;h4&gt;&lt;?php _e( 'Quick Edit' ); ?&gt;&lt;/h4&gt;
+
+                                &lt;label&gt;
+                                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Name' ); ?&gt;&lt;/span&gt;
+                                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; class=&quot;ptitle&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+        &lt;?php if ( !is_multisite() ) { ?&gt;
+                                &lt;label&gt;
+                                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Slug' ); ?&gt;&lt;/span&gt;
+                                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;slug&quot; class=&quot;ptitle&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+        &lt;?php } ?&gt;
+
+                        &lt;/div&gt;&lt;/fieldset&gt;
+        &lt;?php
+
+                $core_columns = array( 'cb' =&gt; true, 'description' =&gt; true, 'name' =&gt; true, 'slug' =&gt; true, 'posts' =&gt; true );
+
+                foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                        if ( isset( $core_columns[$column_name] ) )
+                                continue;
+                        do_action( 'quick_edit_custom_box', $column_name, $type, $tax-&gt;taxonomy );
+                }
+
+        ?&gt;
+
+                &lt;p class=&quot;inline-edit-save submit&quot;&gt;
+                        &lt;a accesskey=&quot;c&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php _e( 'Cancel' ); ?&gt;&quot; class=&quot;cancel button-secondary alignleft&quot;&gt;&lt;?php _e( 'Cancel' ); ?&gt;&lt;/a&gt;
+                        &lt;?php $update_text = $tax-&gt;labels-&gt;update_item; ?&gt;
+                        &lt;a accesskey=&quot;s&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php echo esc_attr( $update_text ); ?&gt;&quot; class=&quot;save button-primary alignright&quot;&gt;&lt;?php echo $update_text; ?&gt;&lt;/a&gt;
+                        &lt;img class=&quot;waiting&quot; style=&quot;display:none;&quot; src=&quot;&lt;?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?&gt;&quot; alt=&quot;&quot; /&gt;
+                        &lt;span class=&quot;error&quot; style=&quot;display:none;&quot;&gt;&lt;/span&gt;
+                        &lt;?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?&gt;
+                        &lt;input type=&quot;hidden&quot; name=&quot;taxonomy&quot; value=&quot;&lt;?php echo esc_attr( $tax-&gt;name ); ?&gt;&quot; /&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/p&gt;
+                &lt;/td&gt;&lt;/tr&gt;
+                &lt;/tbody&gt;&lt;/table&gt;&lt;/form&gt;
+        &lt;?php
+        }
+}
+
+class WP_Users_Table extends WP_List_Table {
+
+        function WP_Users_Table( $context = 'normal' ) {
+                global $role, $usersearch;
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'users',
+                        'plural' =&gt; 'users'
+                ) );
+
+                if ( 'normal' != $context )
+                        return;
+
+                $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
+
+                $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';
+
+                $users_per_page = (int) get_user_option( 'users_per_page' );
+                if ( empty( $users_per_page ) || $users_per_page &lt; 1 )
+                        $users_per_page = 20;
+                $users_per_page = apply_filters( 'users_per_page', $users_per_page );
+
+                $paged = $this-&gt;get_pagenum();
+
+                $args = array(
+                        'number' =&gt; $users_per_page,
+                        'offset' =&gt; ( $paged-1 ) * $users_per_page,
+                        'role' =&gt; $role,
+                        'search' =&gt; $usersearch
+                );
+
+                if ( isset( $_REQUEST['orderby'] ) )
+                        $args['orderby'] = $_REQUEST['orderby'];
+
+                if ( isset( $_REQUEST['order'] ) )
+                        $args['order'] = $_REQUEST['order'];
+
+                // Query the user IDs for this page
+                $wp_user_search = new WP_User_Query( $args );
+
+                $this-&gt;items = $wp_user_search-&gt;get_results();
+                
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $wp_user_search-&gt;get_total(),
+                        'per_page' =&gt; $users_per_page,                
+                ) );
+        }
+
+        function no_items() {
+                _e( 'No matching users were found.' );
+        }
+
+        function get_bulk_actions() {
+                $actions = array();
+
+                if ( !is_multisite() &amp;&amp; current_user_can( 'delete_users' ) )
+                        $actions['delete'] = __( 'Delete' );
+                else
+                        $actions['remove'] = __( 'Remove' );
+
+                return $actions;
+        }
+
+        function extra_tablenav( $which ) {
+                if ( 'top' != $which )
+                        return;
+?&gt;
+        &lt;div class=&quot;alignleft actions&quot;&gt;
+                &lt;label class=&quot;screen-reader-text&quot; for=&quot;new_role&quot;&gt;&lt;?php _e( 'Change role to&amp;hellip;' ) ?&gt;&lt;/label&gt;
+                &lt;select name=&quot;new_role&quot; id=&quot;new_role&quot;&gt;
+                        &lt;option value=''&gt;&lt;?php _e( 'Change role to&amp;hellip;' ) ?&gt;&lt;/option&gt;
+                        &lt;?php wp_dropdown_roles(); ?&gt;
+                &lt;/select&gt;
+                &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Change' ); ?&gt;&quot; name=&quot;changeit&quot; class=&quot;button-secondary&quot; /&gt;
+        &lt;/div&gt;
+&lt;?php
+        }
+
+        function get_columns() {
+                return array(
+                        'cb'       =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'username' =&gt; __( 'Login' ),
+                        'name'     =&gt; __( 'Name' ),
+                        'email'    =&gt; __( 'E-mail' ),
+                        'role'     =&gt; __( 'Role' ),
+                        'posts'    =&gt; __( 'Posts' )
+                );
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'username' =&gt; 'login',
+                        'name'     =&gt; 'name',
+                        'email'    =&gt; 'email',
+                        'posts'    =&gt; 'post_count',
+                );
+        }
+
+        function display_rows() {
+                // Query the post counts for this page
+                $post_counts = count_many_users_posts( array_keys( $this-&gt;items ) );
+
+                $style = '';
+                foreach ( $this-&gt;items as $userid =&gt; $user_object ) {
+                        $roles = $user_object-&gt;roles;
+                        $role = array_shift( $roles );
+
+                        if ( is_multisite() &amp;&amp; empty( $role ) )
+                                continue;
+
+                        $style = ( ' class=&quot;alternate&quot;' == $style ) ? '' : ' class=&quot;alternate&quot;';
+                        echo &quot;\n\t&quot;, $this-&gt;single_row( $user_object, $style, $role, $post_counts[ $userid ] );
+                }
+        }
+
+        /**
+         * Generate HTML for a single row on the users.php admin panel.
+         *
+         * @since 2.1.0
+         *
+         * @param object $user_object
+         * @param string $style Optional. Attributes added to the TR element.  Must be sanitized.
+         * @param string $role Key for the $wp_roles array.
+         * @param int $numposts Optional. Post count to display for this user.  Defaults to zero, as in, a new user has made zero posts.
+         * @return string
+         */
+        function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
+                global $wp_roles;
+
+                if ( !( is_object( $user_object ) &amp;&amp; is_a( $user_object, 'WP_User' ) ) )
+                        $user_object = new WP_User( (int) $user_object );
+                $user_object = sanitize_user_object( $user_object, 'display' );
+                $email = $user_object-&gt;user_email;
+                $url = $user_object-&gt;user_url;
+                $short_url = str_replace( 'http://', '', $url );
+                $short_url = str_replace( 'www.', '', $short_url );
+                if ( '/' == substr( $short_url, -1 ) )
+                        $short_url = substr( $short_url, 0, -1 );
+                if ( strlen( $short_url ) &gt; 35 )
+                        $short_url = substr( $short_url, 0, 32 ).'...';
+                $checkbox = '';
+                // Check if the user for this row is editable
+                if ( current_user_can( 'list_users' ) ) {
+                        // Set up the user editing link
+                        // TODO: make profile/user-edit determination a separate function
+                        if ( get_current_user_id() == $user_object-&gt;ID ) {
+                                $edit_link = 'profile.php';
+                        } else {
+                                $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), &quot;user-edit.php?user_id=$user_object-&gt;ID&quot; ) );
+                        }
+                        $edit = &quot;&lt;strong&gt;&lt;a href=\&quot;$edit_link\&quot;&gt;$user_object-&gt;user_login&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
+
+                        // Set up the hover actions for this user
+                        $actions = array();
+
+                        if ( current_user_can( 'edit_user',  $user_object-&gt;ID ) ) {
+                                $edit = &quot;&lt;strong&gt;&lt;a href=\&quot;$edit_link\&quot;&gt;$user_object-&gt;user_login&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
+                                $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                        } else {
+                                $edit = &quot;&lt;strong&gt;$user_object-&gt;user_login&lt;/strong&gt;&lt;br /&gt;&quot;;
+                        }
+
+                        if ( !is_multisite() &amp;&amp; get_current_user_id() != $user_object-&gt;ID &amp;&amp; current_user_can( 'delete_user', $user_object-&gt;ID ) )
+                                $actions['delete'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url( &quot;users.php?action=delete&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users' ) . &quot;'&gt;&quot; . __( 'Delete' ) . &quot;&lt;/a&gt;&quot;;
+                        if ( is_multisite() &amp;&amp; get_current_user_id() != $user_object-&gt;ID &amp;&amp; current_user_can( 'remove_user', $user_object-&gt;ID ) )
+                                $actions['remove'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url( &quot;users.php?action=remove&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users' ) . &quot;'&gt;&quot; . __( 'Remove' ) . &quot;&lt;/a&gt;&quot;;
+                        $actions = apply_filters( 'user_row_actions', $actions, $user_object );
+                        $action_count = count( $actions );
+                        $i = 0;
+                        $edit .= '&lt;div class=&quot;row-actions&quot;&gt;';
+                        foreach ( $actions as $action =&gt; $link ) {
+                                ++$i;
+                                ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+                                $edit .= &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                        }
+                        $edit .= '&lt;/div&gt;';
+
+                        // Set up the checkbox ( because the user is editable, otherwise its empty )
+                        $checkbox = &quot;&lt;input type='checkbox' name='users[]' id='user_{$user_object-&gt;ID}' class='$role' value='{$user_object-&gt;ID}' /&gt;&quot;;
+
+                } else {
+                        $edit = '&lt;strong&gt;' . $user_object-&gt;user_login . '&lt;/strong&gt;';
+                }
+                $role_name = isset( $wp_roles-&gt;role_names[$role] ) ? translate_user_role( $wp_roles-&gt;role_names[$role] ) : __( 'None' );
+                $r = &quot;&lt;tr id='user-$user_object-&gt;ID'$style&gt;&quot;;
+                $avatar = get_avatar( $user_object-&gt;ID, 32 );
+
+                list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                        $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
+
+                        $style = '';
+                        if ( in_array( $column_name, $hidden ) )
+                                $style = ' style=&quot;display:none;&quot;';
+
+                        $attributes = &quot;$class$style&quot;;
+
+                        switch ( $column_name ) {
+                                case 'cb':
+                                        $r .= &quot;&lt;th scope='row' class='check-column'&gt;$checkbox&lt;/th&gt;&quot;;
+                                        break;
+                                case 'username':
+                                        $r .= &quot;&lt;td $attributes&gt;$avatar $edit&lt;/td&gt;&quot;;
+                                        break;
+                                case 'name':
+                                        $r .= &quot;&lt;td $attributes&gt;$user_object-&gt;first_name $user_object-&gt;last_name&lt;/td&gt;&quot;;
+                                        break;
+                                case 'email':
+                                        $r .= &quot;&lt;td $attributes&gt;&lt;a href='mailto:$email' title='&quot; . sprintf( __( 'E-mail: %s' ), $email ) . &quot;'&gt;$email&lt;/a&gt;&lt;/td&gt;&quot;;
+                                        break;
+                                case 'role':
+                                        $r .= &quot;&lt;td $attributes&gt;$role_name&lt;/td&gt;&quot;;
+                                        break;
+                                case 'posts':
+                                        $attributes = 'class=&quot;posts column-posts num&quot;' . $style;
+                                        $r .= &quot;&lt;td $attributes&gt;&quot;;
+                                        if ( $numposts &gt; 0 ) {
+                                                $r .= &quot;&lt;a href='edit.php?author=$user_object-&gt;ID' title='&quot; . __( 'View posts by this author' ) . &quot;' class='edit'&gt;&quot;;
+                                                $r .= $numposts;
+                                                $r .= '&lt;/a&gt;';
+                                        } else {
+                                                $r .= 0;
+                                        }
+                                        $r .= &quot;&lt;/td&gt;&quot;;
+                                        break;
+                                default:
+                                        $r .= &quot;&lt;td $attributes&gt;&quot;;
+                                        $r .= apply_filters( 'manage_users_custom_column', '', $column_name, $user_object-&gt;ID );
+                                        $r .= &quot;&lt;/td&gt;&quot;;
+                        }
+                }
+                $r .= '&lt;/tr&gt;';
+
+                return $r;
+        }
+}
+
+class WP_Comments_Table extends WP_List_Table {
+
+        function WP_Comments_Table( $context = 'normal' ) {
+                global $comments, $extra_comments, $total_comments, $post_id, $comment_status, $mode;
+
+                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'edit-comments',
+                        'plural' =&gt; 'comments'
+                ) );
+
+                if ( 'normal' != $context )
+                        return;
+
+                $post_id = isset( $_REQUEST['post_ID'] ) ? absint( $_REQUEST['post_ID'] ) : 0;
+
+                $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
+                if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) )
+                        $comment_status = 'all';
+
+                $comment_type = !empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';
+
+                $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
+
+                if ( isset( $_POST['num'] ) )
+                        $comments_per_page = $_POST['num'];
+                else
+                        $comments_per_page = (int) get_user_option( 'edit_comments_per_page' );
+
+                if ( empty( $comments_per_page ) || $comments_per_page &lt; 1 )
+                        $comments_per_page = 20;
+                $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
+
+                $page = $this-&gt;get_pagenum();
+
+                $start = $offset = ( $page - 1 ) * $comments_per_page;
+
+                $args = array(
+                        'status' =&gt; ( 'moderated' == $comment_status ) ? 'hold' : $comment_status, // TODO: replace all instances of 'moderated' with 'hold'
+                        'search' =&gt; $search,
+                        'offset' =&gt; $start,
+                        'number' =&gt; $comments_per_page + 8, // Grab a few extra
+                        'post_id' =&gt; $post_id,
+                        'plural' =&gt; $comment_type,
+                        'orderby' =&gt; @$_REQUEST['orderby'],
+                        'order' =&gt; @$_REQUEST['order'],
+                );
+
+                $_comments = get_comments( $args );
+
+                update_comment_cache( $_comments );
+
+                $args['count'] = true;
+                $args['offset'] = 0;
+                $args['number'] = 0;
+                $total_comments = get_comments( $args );
+
+                $_comment_post_ids = array();
+                foreach ( $_comments as $_c ) {
+                        $_comment_post_ids[] = $_c-&gt;comment_post_ID;
+                }
+
+                $_comment_pending_count = get_pending_comments_num( $_comment_post_ids );
+
+                $this-&gt;items = array_slice( $_comments, 0, $comments_per_page );
+                $this-&gt;extra_items = array_slice( $_comments, $comments_per_page );
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total_comments,
+                        'per_page' =&gt; $comments_per_page,
+                ) );
+        }
+
+        function get_bulk_actions() {
+                global $comment_status;
+
+                $actions = array();
+                if ( in_array( $comment_status, array( 'all', 'approved' ) ) )
+                        $actions['unapprove'] = __( 'Unapprove' );
+                if ( in_array( $comment_status, array( 'all', 'moderated', 'spam' ) ) )
+                        $actions['approve'] = __( 'Approve' );
+                if ( in_array( $comment_status, array( 'all', 'moderated', 'approved' ) ) )
+                        $actions['spam'] = _x( 'Mark as Spam', 'comment' );
+
+                if ( 'trash' == $comment_status )
+                        $actions['untrash'] = __( 'Restore' );
+                elseif ( 'spam' == $comment_status )
+                        $actions['unspam'] = _x( 'Not Spam', 'comment' );
+
+                if ( in_array( $comment_status, array( 'trash', 'spam' ) ) || !EMPTY_TRASH_DAYS )
+                        $actions['delete'] = __( 'Delete Permanently' );
+                else
+                        $actions['trash'] = __( 'Move to Trash' );
+
+                return $actions;
+        }
+
+        function extra_tablenav( $which ) {
+                global $comment_status, $comment_type;
+?&gt;
+                &lt;div class=&quot;alignleft actions&quot;&gt;
+&lt;?php
+                if ( 'top' == $which ) {
+?&gt;
+                        &lt;select name=&quot;comment_type&quot;&gt;
+                                &lt;option value=&quot;all&quot;&gt;&lt;?php _e( 'Show all comment types' ); ?&gt;&lt;/option&gt;
+&lt;?php
+                                $comment_types = apply_filters( 'admin_comment_types_dropdown', array(
+                                        'comment' =&gt; __( 'Comments' ),
+                                        'pings' =&gt; __( 'Pings' ),
+                                ) );
+
+                                foreach ( $comment_types as $type =&gt; $label )
+                                        echo &quot;\t&lt;option value='&quot; . esc_attr( $type ) . &quot;'&quot; . selected( $comment_type, $type, false ) . &quot;&gt;$label&lt;/option&gt;\n&quot;;
+                        ?&gt;
+                        &lt;/select&gt;
+                        &lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e( 'Filter' ); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
+&lt;?php
+                }
+
+                if ( ( 'spam' == $comment_status || 'trash' == $comment_status ) &amp;&amp; current_user_can( 'moderate_comments' ) ) {
+                        wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
+                        $title = ( 'spam' == $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' );
+?&gt;
+                        &lt;input type=&quot;submit&quot; name=&quot;delete_all&quot; id=&quot;delete_all&quot; value=&quot;&lt;?php echo $title ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
+&lt;?php
+                }
+?&gt;
+                &lt;/div&gt;
+&lt;?php
+                do_action( 'manage_comments_nav', $comment_status );
+        }
+
+        function get_columns() {
+                return array(
+                        'cb'       =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'author'   =&gt; __( 'Author' ),
+                        /* translators: column name */
+                        'comment'  =&gt; _x( 'Comment', 'column name' ),
+                        'response' =&gt; __( 'In Response To' )
+                );
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'author'   =&gt; 'comment_author',
+                        'comment'  =&gt; 'comment_content',
+                        'response' =&gt; 'comment_post_ID'
+                );
+        }
+
+        function display_table() {
+                extract( $this-&gt;_args );
+
+                $this-&gt;display_tablenav( 'top' );
+
+?&gt;
+&lt;table class=&quot;&lt;?php echo implode( ' ', $this-&gt;get_table_classes() ); ?&gt;&quot; cellspacing=&quot;0&quot;&gt;
+        &lt;thead&gt;
+        &lt;tr&gt;
+                &lt;?php $this-&gt;print_column_headers(); ?&gt;
+        &lt;/tr&gt;
+        &lt;/thead&gt;
+
+        &lt;tfoot&gt;
+        &lt;tr&gt;
+                &lt;?php $this-&gt;print_column_headers( false ); ?&gt;
+        &lt;/tr&gt;
+        &lt;/tfoot&gt;
+
+        &lt;tbody id=&quot;the-comment-list&quot; class=&quot;list:comment&quot;&gt;
+                &lt;?php $this-&gt;display_rows( $this-&gt;items ); ?&gt;
+        &lt;/tbody&gt;
+
+        &lt;tbody id=&quot;the-extra-comment-list&quot; class=&quot;list:comment&quot; style=&quot;display: none;&quot;&gt;
+                &lt;?php $this-&gt;display_rows( $this-&gt;extra_items ); ?&gt;
+        &lt;/tbody&gt;
+&lt;/table&gt;
+&lt;?php
+
+                $this-&gt;display_tablenav( 'bottom' );
+        }
+
+        function display_rows( $items = array() ) {
+                global $mode, $comment_status;
+
+                if ( empty( $items ) )
+                        $items = $this-&gt;items;
+
+                foreach ( $items as $comment )
+                        $this-&gt;single_row( $comment-&gt;comment_ID, $mode, $comment_status );
+        }
+
+        function single_row( $comment_id, $mode, $comment_status, $checkbox = true, $from_ajax = false ) {
+                global $comment, $post, $_comment_pending_count;
+                $comment = get_comment( $comment_id );
+                $post = get_post( $comment-&gt;comment_post_ID );
+                $the_comment_status = wp_get_comment_status( $comment-&gt;comment_ID );
+                $post_type_object = get_post_type_object( $post-&gt;post_type );
+                $user_can = current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID );
+
+                $comment_url = esc_url( get_comment_link( $comment-&gt;comment_ID ) );
+                $author_url = get_comment_author_url();
+                if ( 'http://' == $author_url )
+                        $author_url = '';
+                $author_url_display = preg_replace( '|http://(www\.)?|i', '', $author_url );
+                if ( strlen( $author_url_display ) &gt; 50 )
+                        $author_url_display = substr( $author_url_display, 0, 49 ) . '...';
+
+                $ptime = date( 'G', strtotime( $comment-&gt;comment_date ) );
+                if ( ( abs( time() - $ptime ) ) &lt; 86400 )
+                        $ptime = sprintf( __( '%s ago' ), human_time_diff( $ptime ) );
+                else
+                        $ptime = mysql2date( __( 'Y/m/d \a\t g:i A' ), $comment-&gt;comment_date );
+
+                if ( $user_can ) {
+                        $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( &quot;delete-comment_$comment-&gt;comment_ID&quot; ) );
+                        $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( &quot;approve-comment_$comment-&gt;comment_ID&quot; ) );
+
+                        $url = &quot;comment.php?post_ID=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&quot;;
+
+                        $approve_url = esc_url( $url . &quot;&amp;action=approvecomment&amp;$approve_nonce&quot; );
+                        $unapprove_url = esc_url( $url . &quot;&amp;action=unapprovecomment&amp;$approve_nonce&quot; );
+                        $spam_url = esc_url( $url . &quot;&amp;action=spamcomment&amp;$del_nonce&quot; );
+                        $unspam_url = esc_url( $url . &quot;&amp;action=unspamcomment&amp;$del_nonce&quot; );
+                        $trash_url = esc_url( $url . &quot;&amp;action=trashcomment&amp;$del_nonce&quot; );
+                        $untrash_url = esc_url( $url . &quot;&amp;action=untrashcomment&amp;$del_nonce&quot; );
+                        $delete_url = esc_url( $url . &quot;&amp;action=deletecomment&amp;$del_nonce&quot; );
+                }
+
+                echo &quot;&lt;tr id='comment-$comment-&gt;comment_ID' class='$the_comment_status'&gt;&quot;;
+
+                list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                        $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
+
+                        $style = '';
+                        if ( in_array( $column_name, $hidden ) )
+                                $style = ' style=&quot;display:none;&quot;';
+
+                        $attributes = &quot;$class$style&quot;;
+
+                        switch ( $column_name ) {
+                                case 'cb':
+                                        if ( !$checkbox ) break;
+                                        echo '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;';
+                                        if ( $user_can ) echo &quot;&lt;input type='checkbox' name='delete_comments[]' value='$comment-&gt;comment_ID' /&gt;&quot;;
+                                        echo '&lt;/th&gt;';
+                                        break;
+                                case 'comment':
+                                        echo &quot;&lt;td $attributes&gt;&quot;;
+                                        echo '&lt;div id=&quot;submitted-on&quot;&gt;';
+                                        /* translators: 2: comment date, 3: comment time */
+                                        printf( __( '&lt;a href=&quot;%1$s&quot;&gt;%2$s at %3$s&lt;/a&gt;' ), $comment_url,
+                                                /* translators: comment date format. See http://php.net/date */ get_comment_date( __( 'Y/m/d' ) ),
+                                                /* translators: comment time format. See http://php.net/date */ get_comment_date( get_option( 'time_format' ) ) );
+
+                                        if ( $comment-&gt;comment_parent ) {
+                                                $parent = get_comment( $comment-&gt;comment_parent );
+                                                $parent_link = esc_url( get_comment_link( $comment-&gt;comment_parent ) );
+                                                $name = get_comment_author( $parent-&gt;comment_ID );
+                                                printf( ' | '.__( 'In reply to &lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;/a&gt;.' ), $parent_link, $name );
+                                        }
+
+                                        echo '&lt;/div&gt;';
+                                        comment_text();
+                                        if ( $user_can ) { ?&gt;
+                                        &lt;div id=&quot;inline-&lt;?php echo $comment-&gt;comment_ID; ?&gt;&quot; class=&quot;hidden&quot;&gt;
+                                        &lt;textarea class=&quot;comment&quot; rows=&quot;1&quot; cols=&quot;1&quot;&gt;&lt;?php echo esc_html( apply_filters( 'comment_edit_pre', $comment-&gt;comment_content ) ); ?&gt;&lt;/textarea&gt;
+                                        &lt;div class=&quot;author-email&quot;&gt;&lt;?php echo esc_attr( $comment-&gt;comment_author_email ); ?&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;author&quot;&gt;&lt;?php echo esc_attr( $comment-&gt;comment_author ); ?&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;author-url&quot;&gt;&lt;?php echo esc_attr( $comment-&gt;comment_author_url ); ?&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;comment_status&quot;&gt;&lt;?php echo $comment-&gt;comment_approved; ?&gt;&lt;/div&gt;
+                                        &lt;/div&gt;
+                                        &lt;?php
+                                        }
+
+                                        if ( $user_can ) {
+                                                // preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash
+                                                $actions = array(
+                                                        'approve' =&gt; '', 'unapprove' =&gt; '',
+                                                        'reply' =&gt; '',
+                                                        'quickedit' =&gt; '',
+                                                        'edit' =&gt; '',
+                                                        'spam' =&gt; '', 'unspam' =&gt; '',
+                                                        'trash' =&gt; '', 'untrash' =&gt; '', 'delete' =&gt; ''
+                                                );
+
+                                                if ( $comment_status &amp;&amp; 'all' != $comment_status ) { // not looking at all comments
+                                                        if ( 'approved' == $the_comment_status )
+                                                                $actions['unapprove'] = &quot;&lt;a href='$unapprove_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:e7e7d3:action=dim-comment&amp;amp;new=unapproved vim-u vim-destructive' title='&quot; . esc_attr__( 'Unapprove this comment' ) . &quot;'&gt;&quot; . __( 'Unapprove' ) . '&lt;/a&gt;';
+                                                        else if ( 'unapproved' == $the_comment_status )
+                                                                $actions['approve'] = &quot;&lt;a href='$approve_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:e7e7d3:action=dim-comment&amp;amp;new=approved vim-a vim-destructive' title='&quot; . esc_attr__( 'Approve this comment' ) . &quot;'&gt;&quot; . __( 'Approve' ) . '&lt;/a&gt;';
+                                                } else {
+                                                        $actions['approve'] = &quot;&lt;a href='$approve_url' class='dim:the-comment-list:comment-$comment-&gt;comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='&quot; . esc_attr__( 'Approve this comment' ) . &quot;'&gt;&quot; . __( 'Approve' ) . '&lt;/a&gt;';
+                                                        $actions['unapprove'] = &quot;&lt;a href='$unapprove_url' class='dim:the-comment-list:comment-$comment-&gt;comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='&quot; . esc_attr__( 'Unapprove this comment' ) . &quot;'&gt;&quot; . __( 'Unapprove' ) . '&lt;/a&gt;';
+                                                }
+
+                                                if ( 'spam' != $the_comment_status &amp;&amp; 'trash' != $the_comment_status ) {
+                                                        $actions['spam'] = &quot;&lt;a href='$spam_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID::spam=1 vim-s vim-destructive' title='&quot; . esc_attr__( 'Mark this comment as spam' ) . &quot;'&gt;&quot; . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '&lt;/a&gt;';
+                                                } elseif ( 'spam' == $the_comment_status ) {
+                                                        $actions['unspam'] = &quot;&lt;a href='$unspam_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:66cc66:unspam=1 vim-z vim-destructive'&gt;&quot; . _x( 'Not Spam', 'comment' ) . '&lt;/a&gt;';
+                                                } elseif ( 'trash' == $the_comment_status ) {
+                                                        $actions['untrash'] = &quot;&lt;a href='$untrash_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:66cc66:untrash=1 vim-z vim-destructive'&gt;&quot; . __( 'Restore' ) . '&lt;/a&gt;';
+                                                }
+
+                                                if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) {
+                                                        $actions['delete'] = &quot;&lt;a href='$delete_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID::delete=1 delete vim-d vim-destructive'&gt;&quot; . __( 'Delete Permanently' ) . '&lt;/a&gt;';
+                                                } else {
+                                                        $actions['trash'] = &quot;&lt;a href='$trash_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID::trash=1 delete vim-d vim-destructive' title='&quot; . esc_attr__( 'Move this comment to the trash' ) . &quot;'&gt;&quot; . _x( 'Trash', 'verb' ) . '&lt;/a&gt;';
+                                                }
+
+                                                if ( 'trash' != $the_comment_status ) {
+                                                        $actions['edit'] = &quot;&lt;a href='comment.php?action=editcomment&amp;amp;c={$comment-&gt;comment_ID}' title='&quot; . esc_attr__( 'Edit comment' ) . &quot;'&gt;&quot;. __( 'Edit' ) . '&lt;/a&gt;';
+                                                        $actions['quickedit'] = '&lt;a onclick=&quot;commentReply.open( \''.$comment-&gt;comment_ID.'\',\''.$post-&gt;ID.'\',\'edit\' );return false;&quot; class=&quot;vim-q&quot; title=&quot;'.esc_attr__( 'Quick Edit' ).'&quot; href=&quot;#&quot;&gt;' . __( 'Quick&amp;nbsp;Edit' ) . '&lt;/a&gt;';
+                                                        if ( 'spam' != $the_comment_status )
+                                                                $actions['reply'] = '&lt;a onclick=&quot;commentReply.open( \''.$comment-&gt;comment_ID.'\',\''.$post-&gt;ID.'\' );return false;&quot; class=&quot;vim-r&quot; title=&quot;'.esc_attr__( 'Reply to this comment' ).'&quot; href=&quot;#&quot;&gt;' . __( 'Reply' ) . '&lt;/a&gt;';
+                                                }
+
+                                                $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
+
+                                                $i = 0;
+                                                echo '&lt;div class=&quot;row-actions&quot;&gt;';
+                                                foreach ( $actions as $action =&gt; $link ) {
+                                                        ++$i;
+                                                        ( ( ( 'approve' == $action || 'unapprove' == $action ) &amp;&amp; 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
+
+                                                        // Reply and quickedit need a hide-if-no-js span when not added with ajax
+                                                        if ( ( 'reply' == $action || 'quickedit' == $action ) &amp;&amp; ! $from_ajax )
+                                                                $action .= ' hide-if-no-js';
+                                                        elseif ( ( $action == 'untrash' &amp;&amp; $the_comment_status == 'trash' ) || ( $action == 'unspam' &amp;&amp; $the_comment_status == 'spam' ) ) {
+                                                                if ( '1' == get_comment_meta( $comment_id, '_wp_trash_meta_status', true ) )
+                                                                        $action .= ' approve';
+                                                                else
+                                                                        $action .= ' unapprove';
+                                                        }
+
+                                                        echo &quot;&lt;span class='$action'&gt;$sep$link&lt;/span&gt;&quot;;
+                                                }
+                                                echo '&lt;/div&gt;';
+                                        }
+
+                                        echo '&lt;/td&gt;';
+                                        break;
+                                case 'author':
+                                        echo &quot;&lt;td $attributes&gt;&lt;strong&gt;&quot;; comment_author(); echo '&lt;/strong&gt;&lt;br /&gt;';
+                                        if ( !empty( $author_url ) )
+                                                echo &quot;&lt;a title='$author_url' href='$author_url'&gt;$author_url_display&lt;/a&gt;&lt;br /&gt;&quot;;
+                                        if ( $user_can ) {
+                                                if ( !empty( $comment-&gt;comment_author_email ) ) {
+                                                        comment_author_email_link();
+                                                        echo '&lt;br /&gt;';
+                                                }
+                                                echo '&lt;a href=&quot;edit-comments.php?s=';
+                                                comment_author_IP();
+                                                echo '&amp;amp;mode=detail';
+                                                if ( 'spam' == $comment_status )
+                                                        echo '&amp;amp;comment_status=spam';
+                                                echo '&quot;&gt;';
+                                                comment_author_IP();
+                                                echo '&lt;/a&gt;';
+                                        } //current_user_can
+                                        echo '&lt;/td&gt;';
+                                        break;
+                                case 'date':
+                                        echo &quot;&lt;td $attributes&gt;&quot; . get_comment_date( __( 'Y/m/d \a\t g:ia' ) ) . '&lt;/td&gt;';
+                                        break;
+                                case 'response':
+                                        if ( 'single' !== $mode ) {
+                                                if ( isset( $_comment_pending_count[$post-&gt;ID] ) ) {
+                                                        $pending_comments = $_comment_pending_count[$post-&gt;ID];
+                                                } else {
+                                                        $_comment_pending_count_temp = get_pending_comments_num( array( $post-&gt;ID ) );
+                                                        $pending_comments = $_comment_pending_count[$post-&gt;ID] = $_comment_pending_count_temp[$post-&gt;ID];
+                                                }
+                                                if ( $user_can ) {
+                                                        $post_link = &quot;&lt;a href='&quot; . get_edit_post_link( $post-&gt;ID ) . &quot;'&gt;&quot;;
+                                                        $post_link .= get_the_title( $post-&gt;ID ) . '&lt;/a&gt;';
+                                                } else {
+                                                        $post_link = get_the_title( $post-&gt;ID );
+                                                }
+                                                echo &quot;&lt;td $attributes&gt;\n&quot;;
+                                                echo '&lt;div class=&quot;response-links&quot;&gt;&lt;span class=&quot;post-com-count-wrapper&quot;&gt;';
+                                                echo $post_link . '&lt;br /&gt;';
+                                                $pending_phrase = esc_attr( sprintf( __( '%s pending' ), number_format( $pending_comments ) ) );
+                                                if ( $pending_comments )
+                                                        echo '&lt;strong&gt;';
+                                                comments_number(
+                                                        &quot;&lt;a href='edit-comments.php?post_ID=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                                        . /* translators: comment count link */ _x( '0', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                                                        &quot;&lt;a href='edit-comments.php?post_ID=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                                        . /* translators: comment count link */ _x( '1', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;',
+                                                        &quot;&lt;a href='edit-comments.php?post_ID=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot;
+                                                        . /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) . '&lt;/span&gt;&lt;/a&gt;'
+                                                );
+                                                if ( $pending_comments )
+                                                        echo '&lt;/strong&gt;';
+                                                echo '&lt;/span&gt; ';
+                                                echo &quot;&lt;a href='&quot; . get_permalink( $post-&gt;ID ) . &quot;'&gt;#&lt;/a&gt;&quot;;
+                                                echo '&lt;/div&gt;';
+                                                if ( 'attachment' == $post-&gt;post_type &amp;&amp; ( $thumb = wp_get_attachment_image( $post-&gt;ID, array( 80, 60 ), true ) ) )
+                                                        echo $thumb;
+                                                echo '&lt;/td&gt;';
+                                        }
+                                        break;
+                                default:
+                                        echo &quot;&lt;td $attributes&gt;\n&quot;;
+                                        do_action( 'manage_comments_custom_column', $column_name, $comment-&gt;comment_ID );
+                                        echo &quot;&lt;/td&gt;\n&quot;;
+                                        break;
+                        }
+                }
+                echo &quot;&lt;/tr&gt;\n&quot;;
+        }
+}
+
+class WP_Links_Table extends WP_List_Table {
+
+        function WP_Links_Table() {
+                global $cat_id, $s, $orderby, $order;
+
+                wp_reset_vars( array( 'action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'orderby', 'order', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]', 's' ) );
+
+                $args = array( 'hide_invisible' =&gt; 0, 'hide_empty' =&gt; 0 );
+
+                if ( 'all' != $cat_id )
+                        $args['category'] = $cat_id;
+                if ( !empty( $s ) )
+                        $args['search'] = $s;
+                if ( !empty( $orderby ) )
+                        $args['orderby'] = $orderby;
+                if ( !empty( $order ) )
+                        $args['order'] = $order;
+
+                $this-&gt;items = get_bookmarks( $args );
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'link-manager',
+                        'plural' =&gt; 'bookmarks',
+                ) );
+        }
+
+        function no_items() {
+                _e( 'No links found.' );
+        }
+
+        function get_bulk_actions() {
+                $actions = array();
+                $actions['delete'] = __( 'Delete' );
+
+                return $actions;
+        }
+
+        function extra_tablenav( $which ) {
+                global $cat_id;
+
+                if ( 'top' != $which )
+                        return;
+?&gt;
+                &lt;div class=&quot;alignleft actions&quot;&gt;
+&lt;?php
+                        $dropdown_options = array(
+                                'selected' =&gt; $cat_id,
+                                'name' =&gt; 'cat_id',
+                                'taxonomy' =&gt; 'link_category',
+                                'show_option_all' =&gt; __( 'View all categories' ),
+                                'hide_empty' =&gt; true,
+                                'hierarchical' =&gt; 1,
+                                'show_count' =&gt; 0,
+                                'orderby' =&gt; 'name',
+                        );
+                        wp_dropdown_categories( $dropdown_options );
+?&gt;
+                        &lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e( 'Filter' ); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
+                &lt;/div&gt;
+&lt;?php
+        }
+
+        function get_columns() {
+                return array(
+                        'cb'         =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'name'       =&gt; __( 'Name' ),
+                        'url'        =&gt; __( 'URL' ),
+                        'categories' =&gt; __( 'Categories' ),
+                        'rel'        =&gt; __( 'Relationship' ),
+                        'visible'    =&gt; __( 'Visible' ),
+                        'rating'     =&gt; __( 'Rating' )
+                );
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'name'    =&gt; 'name',
+                        'url'     =&gt; 'url',
+                        'visible' =&gt; 'visible',
+                        'rating'  =&gt; 'rating'
+                );
+        }
+
+        function display_rows() {
+                global $cat_id;
+
+                $alt = 0;
+
+                foreach ( $this-&gt;items as $link ) {
+                        $link = sanitize_bookmark( $link );
+                        $link-&gt;link_name = esc_attr( $link-&gt;link_name );
+                        $link-&gt;link_category = wp_get_link_cats( $link-&gt;link_id );
+
+                        $short_url = str_replace( 'http://', '', $link-&gt;link_url );
+                        $short_url = preg_replace( '/^www\./i', '', $short_url );
+                        if ( '/' == substr( $short_url, -1 ) )
+                                $short_url = substr( $short_url, 0, -1 );
+                        if ( strlen( $short_url ) &gt; 35 )
+                                $short_url = substr( $short_url, 0, 32 ).'...';
+
+                        $visible = ( $link-&gt;link_visible == 'Y' ) ? __( 'Yes' ) : __( 'No' );
+                        $rating  = $link-&gt;link_rating;
+                        $style = ( $alt++ % 2 ) ? '' : ' class=&quot;alternate&quot;';
+
+                        $edit_link = get_edit_bookmark_link( $link );
+?&gt;
+                &lt;tr id=&quot;link-&lt;?php echo $link-&gt;link_id; ?&gt;&quot; valign=&quot;middle&quot; &lt;?php echo $style; ?&gt;&gt;
+&lt;?php
+
+                        list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                        foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                                $class = &quot;class='column-$column_name'&quot;;
+
+                                $style = '';
+                                if ( in_array( $column_name, $hidden ) )
+                                        $style = ' style=&quot;display:none;&quot;';
+
+                                $attributes = $class . $style;
+
+                                switch ( $column_name ) {
+                                        case 'cb':
+                                                echo '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;linkcheck[]&quot; value=&quot;'. esc_attr( $link-&gt;link_id ) .'&quot; /&gt;&lt;/th&gt;';
+                                                break;
+
+                                        case 'name':
+                                                echo &quot;&lt;td $attributes&gt;&lt;strong&gt;&lt;a class='row-title' href='$edit_link' title='&quot; . esc_attr( sprintf( __( 'Edit &amp;#8220;%s&amp;#8221;' ), $link-&gt;link_name ) ) . &quot;'&gt;$link-&gt;link_name&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
+                                                $actions = array();
+                                                $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+                                                $actions['delete'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url( &quot;link.php?action=delete&amp;amp;link_id=$link-&gt;link_id&quot;, 'delete-bookmark_' . $link-&gt;link_id ) . &quot;' onclick=\&quot;if ( confirm( '&quot; . esc_js( sprintf( __( &quot;You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete.&quot; ), $link-&gt;link_name ) ) . &quot;' ) ) { return true;}return false;\&quot;&gt;&quot; . __( 'Delete' ) . &quot;&lt;/a&gt;&quot;;
+                                                $action_count = count( $actions );
+                                                $i = 0;
+                                                echo '&lt;div class=&quot;row-actions&quot;&gt;';
+                                                foreach ( $actions as $action =&gt; $linkaction ) {
+                                                        ++$i;
+                                                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+                                                        echo &quot;&lt;span class='$action'&gt;$linkaction$sep&lt;/span&gt;&quot;;
+                                                }
+                                                echo '&lt;/div&gt;';
+                                                echo '&lt;/td&gt;';
+                                                break;
+                                        case 'url':
+                                                echo &quot;&lt;td $attributes&gt;&lt;a href='$link-&gt;link_url' title='&quot;.sprintf( __( 'Visit %s' ), $link-&gt;link_name ).&quot;'&gt;$short_url&lt;/a&gt;&lt;/td&gt;&quot;;
+                                                break;
+                                        case 'categories':
+                                                ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
+                                                $cat_names = array();
+                                                foreach ( $link-&gt;link_category as $category ) {
+                                                        $cat = get_term( $category, 'link_category', OBJECT, 'display' );
+                                                        if ( is_wp_error( $cat ) )
+                                                                echo $cat-&gt;get_error_message();
+                                                        $cat_name = $cat-&gt;name;
+                                                        if ( $cat_id != $category )
+                                                                $cat_name = &quot;&lt;a href='link-manager.php?cat_id=$category'&gt;$cat_name&lt;/a&gt;&quot;;
+                                                        $cat_names[] = $cat_name;
+                                                }
+                                                echo implode( ', ', $cat_names );
+                                                ?&gt;&lt;/td&gt;&lt;?php
+                                                break;
+                                        case 'rel':
+                                                ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo empty( $link-&gt;link_rel ) ? '&lt;br /&gt;' : $link-&gt;link_rel; ?&gt;&lt;/td&gt;&lt;?php
+                                                break;
+                                        case 'visible':
+                                                ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo $visible; ?&gt;&lt;/td&gt;&lt;?php
+                                                break;
+                                        case 'rating':
+                                                 ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo $rating; ?&gt;&lt;/td&gt;&lt;?php
+                                                break;
+                                        default:
+                                                ?&gt;
+                                                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php do_action( 'manage_link_custom_column', $column_name, $link-&gt;link_id ); ?&gt;&lt;/td&gt;
+                                                &lt;?php
+                                                break;
+                                }
+                        }
+?&gt;
+                &lt;/tr&gt;
+&lt;?php
+                }
+        }
+}
+
+class WP_Sites_Table extends WP_List_Table {
+
+        function WP_Sites_Table() {
+                global $s, $mode, $wpdb;
+
+                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'list' : $_REQUEST['mode'];
+
+                parent::WP_List_Table( array(
+                        'callback' =&gt; 'site_rows',
+                        'screen' =&gt; 'ms-sites',
+                ) );
+
+                $pagenum = $this-&gt;get_pagenum();
+
+                $per_page = (int) get_user_option( 'ms_sites_per_page' );
+                if ( empty( $per_page ) || $per_page &lt; 1 )
+                        $per_page = 20;
+
+                $per_page = apply_filters( 'ms_sites_per_page', $per_page );
+
+                $s = isset( $_REQUEST['s'] ) ? stripslashes( trim( $_REQUEST[ 's' ] ) ) : '';
+                $like_s = esc_sql( like_escape( $s ) );
+
+                $query = &quot;SELECT * FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;;
+
+                if ( isset( $_REQUEST['searchaction'] ) ) {
+                        if ( 'name' == $_REQUEST['searchaction'] ) {
+                                $query .= &quot; AND ( {$wpdb-&gt;blogs}.domain LIKE '%{$like_s}%' OR {$wpdb-&gt;blogs}.path LIKE '%{$like_s}%' ) &quot;;
+                        } elseif ( 'id' == $_REQUEST['searchaction'] ) {
+                                $query .= &quot; AND {$wpdb-&gt;blogs}.blog_id = '{$like_s}' &quot;;
+                        } elseif ( 'ip' == $_REQUEST['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;;
+                        }
+                }
+
+                $order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : 'id';
+                if ( $order_by == 'registered' ) {
+                        $query .= ' ORDER BY registered ';
+                } elseif ( $order_by == 'lastupdated' ) {
+                        $query .= ' ORDER BY last_updated ';
+                } elseif ( $order_by == 'blogname' ) {
+                        $query .= ' ORDER BY domain ';
+                } else {
+                        $order_by = 'id';
+                        $query .= &quot; ORDER BY {$wpdb-&gt;blogs}.blog_id &quot;;
+                }
+
+                $order = ( isset( $_REQUEST['order'] ) &amp;&amp; 'DESC' == strtoupper( $_REQUEST['order'] ) ) ? &quot;DESC&quot; : &quot;ASC&quot;;
+                $query .= $order;
+
+                $total = $wpdb-&gt;get_var( str_replace( 'SELECT *', 'SELECT COUNT( blog_id )', $query ) );
+
+                $query .= &quot; LIMIT &quot; . intval( ( $pagenum - 1 ) * $per_page ) . &quot;, &quot; . intval( $per_page );
+                $this-&gt;items = $wpdb-&gt;get_results( $query, ARRAY_A );
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total,
+                        'per_page' =&gt; $per_page,
+                ) );
+        }
+
+        function no_items() {
+                _e( 'No sites found.' );
+        }
+
+        function get_bulk_actions() {
+                $actions = array();
+                $actions['delete'] = __( 'Delete' );
+                $actions['spam'] = _x( 'Mark as Spam', 'site' );
+                $actions['notspam'] = _x( 'Not Spam', 'site' );
+
+                return $actions;
+        }
+
+        function pagination( $which ) {
+                global $mode;
+
+                parent::pagination( $which );
+
+                if ( 'top' == $which )
+                        $this-&gt;view_switcher( $mode );
+        }
+
+        function get_columns() {
+                $blogname_columns = ( is_subdomain_install() ) ? __( 'Domain' ) : __( 'Path' );
+                $sites_columns = array(
+                        'cb'          =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'blogname'    =&gt; $blogname_columns,
+                        'lastupdated' =&gt; __( 'Last Updated' ),
+                        'registered'  =&gt; _x( 'Registered', 'site' ),
+                        'users'       =&gt; __( 'Users' )
+                );
+
+                if ( has_filter( 'wpmublogsaction' ) )
+                        $sites_columns['plugins'] = __( 'Actions' );
+
+                $sites_columns = apply_filters( 'wpmu_blogs_columns', $sites_columns );
+
+                return $sites_columns;
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'id'          =&gt; 'id',
+                        'blogname'    =&gt; 'blogname',
+                        'lastupdated' =&gt; 'lastupdated',
+                        'registered'  =&gt; 'registered',
+                );
+        }
+
+        function display_rows() {
+                global $current_site, $mode;
+
+                $status_list = array(
+                        'archived' =&gt; array( 'site-archived', __( 'Archived' ) ),
+                        'spam'     =&gt; array( 'site-spammed', _x( 'Spam', 'site' ) ),
+                        'deleted'  =&gt; array( 'site-deleted', __( 'Deleted' ) ),
+                        'mature'   =&gt; array( 'site-mature', __( 'Mature' ) )
+                );
+
+                $class = '';
+                foreach ( $this-&gt;items as $blog ) {
+                        $class = ( 'alternate' == $class ) ? '' : 'alternate';
+                        reset( $status_list );
+
+                        $blog_states = array();
+                        foreach ( $status_list as $status =&gt; $col ) {
+                                if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) {
+                                        $class = $col[0];
+                                        $blog_states[] = $col[1];
+                                }
+                        }
+                        $blog_state = '';
+                        if ( ! empty( $blog_states ) ) {
+                                $state_count = count( $blog_states );
+                                $i = 0;
+                                $blog_state .= ' - ';
+                                foreach ( $blog_states as $state ) {
+                                        ++$i;
+                                        ( $i == $state_count ) ? $sep = '' : $sep = ', ';
+                                        $blog_state .= &quot;&lt;span class='post-state'&gt;$state$sep&lt;/span&gt;&quot;;
+                                }
+                        }
+                        echo &quot;&lt;tr class='$class'&gt;&quot;;
+
+                        $blogname = ( is_subdomain_install() ) ? str_replace( '.'.$current_site-&gt;domain, '', $blog['domain'] ) : $blog['path'];
+
+                        list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                        foreach ( $columns as $column_name =&gt; $column_display_name ) {
+                                switch ( $column_name ) {
+                                        case 'cb': ?&gt;
+                                                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;
+                                                        &lt;input type=&quot;checkbox&quot; id=&quot;blog_&lt;?php echo $blog['blog_id'] ?&gt;&quot; name=&quot;allblogs[]&quot; value=&quot;&lt;?php echo esc_attr( $blog['blog_id'] ) ?&gt;&quot; /&gt;
+                                                &lt;/th&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'id': ?&gt;
+                                                &lt;th valign=&quot;top&quot; scope=&quot;row&quot;&gt;
+                                                        &lt;?php echo $blog['blog_id'] ?&gt;
+                                                &lt;/th&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'blogname': ?&gt;
+                                                &lt;td class=&quot;column-title&quot;&gt;
+                                                        &lt;a href=&quot;&lt;?php echo esc_url( admin_url( 'ms-sites.php?action=editblog&amp;amp;id=' . $blog['blog_id'] ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo $blogname . $blog_state; ?&gt;&lt;/a&gt;
+                                                        &lt;?php
+                                                        if ( 'list' != $mode )
+                                                                echo '&lt;p&gt;' . sprintf( _x( '%1$s &amp;#8211; &lt;em&gt;%2$s&lt;/em&gt;', '%1$s: site name. %2$s: site tagline.' ), get_blog_option( $blog['blog_id'], 'blogname' ), get_blog_option( $blog['blog_id'], 'blogdescription ' ) ) . '&lt;/p&gt;';
+
+                                                        // 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;';
+                                                        if ( $current_site-&gt;blog_id != $blog['blog_id'] ) {
+                                                                if ( get_blog_status( $blog['blog_id'], 'deleted' ) == '1' )
+                                                                        $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( __( 'You are about to activate the site %s' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Activate' ) . '&lt;/a&gt;&lt;/span&gt;';
+                                                                else
+                                                                        $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( __( 'You are about to deactivate the site %s' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Deactivate' ) . '&lt;/a&gt;&lt;/span&gt;';
+
+                                                                if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
+                                                                        $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( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Unarchive' ) . '&lt;/a&gt;&lt;/span&gt;';
+                                                                else
+                                                                        $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( __( 'You are about to archive the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . _x( 'Archive', 'verb; site' ) . '&lt;/a&gt;&lt;/span&gt;';
+
+                                                                if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' )
+                                                                        $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( __( 'You are about to unspam the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . _x( 'Not Spam', 'site' ) . '&lt;/a&gt;&lt;/span&gt;';
+                                                                else
+                                                                        $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( __( 'You are about to mark the site %s as spam.' ), $blogname ) ) ) ) . '&quot;&gt;' . _x( 'Spam', 'site' ) . '&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( __( 'You are about to delete the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;&lt;/span&gt;';
+                                                        }
+
+                                                        $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;&lt;/span&gt;';
+                                                        $actions = array_filter( $actions );
+                                                        if ( count( $actions ) ) : ?&gt;
+                                                        &lt;div class=&quot;row-actions&quot;&gt;
+                                                                &lt;?php echo implode( ' | ', $actions ); ?&gt;
+                                                        &lt;/div&gt;
+                                                        &lt;?php endif; ?&gt;
+                                                &lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'lastupdated': ?&gt;
+                                                &lt;td valign=&quot;top&quot;&gt;
+                                                        &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' ) ? __( 'Never' ) : mysql2date( __( $date ), $blog['last_updated'] ); ?&gt;
+                                                &lt;/td&gt;
+                                        &lt;?php
+                                        break;
+                                case 'registered': ?&gt;
+                                                &lt;td valign=&quot;top&quot;&gt;
+                                                &lt;?php
+                                                if ( $blog['registered'] == '0000-00-00 00:00:00' )
+                                                        echo '&amp;#x2014;';
+                                                else
+                                                        echo mysql2date( __( $date ), $blog['registered'] );
+                                                ?&gt;
+                                                &lt;/td&gt;
+                                &lt;?php
+                                break;
+                                        case 'users': ?&gt;
+                                                &lt;td valign=&quot;top&quot;&gt;
+                                                        &lt;?php
+                                                        $blogusers = get_users_of_blog( $blog['blog_id'] );
+                                                        if ( is_array( $blogusers ) ) {
+                                                                $blogusers_warning = '';
+                                                                if ( count( $blogusers ) &gt; 5 ) {
+                                                                        $blogusers = array_slice( $blogusers, 0, 5 );
+                                                                        $blogusers_warning = __( 'Only showing first 5 users.' ) . ' &lt;a href=&quot;' . esc_url( get_admin_url( $blog['blog_id'], 'users.php' ) ) . '&quot;&gt;' . __( 'More' ) . '&lt;/a&gt;';
+                                                                }
+                                                                foreach ( $blogusers as $key =&gt; $val ) {
+                                                                        echo '&lt;a href=&quot;' . esc_url( admin_url( 'user-edit.php?user_id=' . $val-&gt;user_id ) ) . '&quot;&gt;' . esc_html( $val-&gt;user_login ) . '&lt;/a&gt; ';
+                                                                        if ( 'list' != $mode )
+                                                                                echo '( ' . $val-&gt;user_email . ' )';
+                                                                        echo '&lt;br /&gt;';
+                                                                }
+                                                                if ( $blogusers_warning != '' )
+                                                                        echo '&lt;strong&gt;' . $blogusers_warning . '&lt;/strong&gt;&lt;br /&gt;';
+                                                        }
+                                                        ?&gt;
+                                                &lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'plugins': ?&gt;
+                                                &lt;?php if ( has_filter( 'wpmublogsaction' ) ) { ?&gt;
+                                                &lt;td valign=&quot;top&quot;&gt;
+                                                        &lt;?php do_action( 'wpmublogsaction', $blog['blog_id'] ); ?&gt;
+                                                &lt;/td&gt;
+                                                &lt;?php } ?&gt;
+                                        &lt;?php break;
+
+                                        default: ?&gt;
+                                                &lt;?php if ( has_filter( 'manage_blogs_custom_column' ) ) { ?&gt;
+                                                &lt;td valign=&quot;top&quot;&gt;
+                                                        &lt;?php do_action( 'manage_blogs_custom_column', $column_name, $blog['blog_id'] ); ?&gt;
+                                                &lt;/td&gt;
+                                                &lt;?php } ?&gt;
+                                        &lt;?php break;
+                                }
+                        }
+                        ?&gt;
+                        &lt;/tr&gt;
+                        &lt;?php
+                }
+        }
+}
+
+class WP_MS_Users_Table extends WP_List_Table {
+
+        function WP_MS_Users_Table() {
+                global $s, $mode, $wpdb;
+
+                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'list' : $_REQUEST['mode'];
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'ms-users',
+                ) );
+
+                $pagenum = $this-&gt;get_pagenum();
+
+                $per_page = (int) get_user_option( 'ms_users_per_page' );
+                if ( empty( $per_page ) || $per_page &lt; 1 )
+                        $per_page = 20;
+
+                $per_page = apply_filters( 'ms_users_per_page', $per_page );
+
+                $s = isset( $_REQUEST['s'] ) ? stripslashes( trim( $_REQUEST[ 's' ] ) ) : '';
+                $like_s = esc_sql( like_escape( $s ) );
+
+                $query = &quot;SELECT * FROM {$wpdb-&gt;users}&quot;;
+
+                if ( !empty( $like_s ) ) {
+                        $query .= &quot; WHERE user_login LIKE '%$like_s%' OR user_email LIKE '%$like_s%'&quot;;
+                }
+
+                $order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : 'id';
+                if ( $order_by == 'email' ) {
+                        $query .= ' ORDER BY user_email ';
+                } elseif ( $order_by == 'login' ) {
+                        $query .= ' ORDER BY user_login ';
+                } elseif ( $order_by == 'name' ) {
+                        $query .= ' ORDER BY display_name ';
+                } elseif ( $order_by == 'registered' ) {
+                        $query .= ' ORDER BY user_registered ';
+                } else {
+                        $order_by = 'id';
+                        $query .= ' ORDER BY ID ';
+                }
+
+                $order = ( isset( $_REQUEST['order'] ) &amp;&amp; 'DESC' == strtoupper( $_REQUEST['order'] ) ) ? 'DESC' : 'ASC';
+                $query .= $order;
+
+                $total = $wpdb-&gt;get_var( str_replace( 'SELECT *', 'SELECT COUNT( ID )', $query ) );
+
+                $query .= &quot; LIMIT &quot; . intval( ( $pagenum - 1 ) * $per_page ) . &quot;, &quot; . intval( $per_page );
+
+                $this-&gt;items = $wpdb-&gt;get_results( $query, ARRAY_A );
+
+                $num_pages = ceil( $total / $per_page );
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total,
+                        'per_page' =&gt; $per_page,
+                ) );
+        }
+
+        function get_bulk_actions() {
+                $actions = array();
+                $actions['delete'] = __( 'Delete' );
+                $actions['spam'] = _x( 'Mark as Spam', 'user' );
+                $actions['notspam'] = _x( 'Not Spam', 'user' );
+
+                return $actions;
+        }
+
+        function no_items() {
+                _e( 'No users found.' );
+        }
+
+        function pagination( $which ) {
+                global $mode;
+
+                parent::pagination ( $which );
+
+                if ( 'top' == $which )
+                        $this-&gt;view_switcher( $mode );
+        }
+
+        function get_columns() {
+                $users_columns = array(
+                        'cb'         =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'login'      =&gt; __( 'Login' ),
+                        'name'       =&gt; __( 'Name' ),
+                        'email'      =&gt; __( 'E-mail' ),
+                        'registered' =&gt; _x( 'Registered', 'user' ),
+                        'blogs'      =&gt; __( 'Sites' )
+                );
+                $users_columns = apply_filters( 'wpmu_users_columns', $users_columns );
+
+                return $users_columns;
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'id'         =&gt; 'id',
+                        'login'      =&gt; 'login',
+                        'name'       =&gt; 'name',
+                        'email'      =&gt; 'email',
+                        'registered' =&gt; 'registered',
+                );
+        }
+
+        function display_rows() {
+                global $current_site, $mode;
+
+                $class = '';
+                $super_admins = get_super_admins();
+                foreach ( $this-&gt;items as $user ) {
+                        $class = ( 'alternate' == $class ) ? '' : 'alternate';
+
+                        $status_list = array( 'spam' =&gt; 'site-spammed', 'deleted' =&gt; 'site-deleted' );
+
+                        foreach ( $status_list as $status =&gt; $col ) {
+                                if ( $user[$status] )
+                                        $class = $col;
+                        }
+
+                        ?&gt;
+                        &lt;tr class=&quot;&lt;?php echo $class; ?&gt;&quot;&gt;
+                        &lt;?php
+
+                        list( $columns, $hidden ) = $this-&gt;get_column_headers();
+
+                        foreach ( $columns as $column_name =&gt; $column_display_name ) :
+                                switch ( $column_name ) {
+                                        case 'cb': ?&gt;
+                                                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;
+                                                        &lt;input type=&quot;checkbox&quot; id=&quot;blog_&lt;?php echo $user['ID'] ?&gt;&quot; name=&quot;allusers[]&quot; value=&quot;&lt;?php echo esc_attr( $user['ID'] ) ?&gt;&quot; /&gt;
+                                                &lt;/th&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'id': ?&gt;
+                                                &lt;th valign=&quot;top&quot; scope=&quot;row&quot;&gt;
+                                                        &lt;?php echo $user['ID'] ?&gt;
+                                                &lt;/th&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'login':
+                                                $avatar        = get_avatar( $user['user_email'], 32 );
+                                                $edit_link = ( get_current_user_id() == $user['ID'] ) ? 'profile.php' : 'user-edit.php?user_id=' . $user['ID'];
+                                                ?&gt;
+                                                &lt;td class=&quot;username column-username&quot;&gt;
+                                                        &lt;?php echo $avatar; ?&gt;&lt;strong&gt;&lt;a href=&quot;&lt;?php echo esc_url( admin_url( $edit_link ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo stripslashes( $user['user_login'] ); ?&gt;&lt;/a&gt;&lt;?php
+                                                        if ( in_array( $user['user_login'], $super_admins ) )
+                                                                echo ' - ' . __( 'Super admin' );
+                                                        ?&gt;&lt;/strong&gt;
+                                                        &lt;br/&gt;
+                                                        &lt;div class=&quot;row-actions&quot;&gt;
+                                                                &lt;span class=&quot;edit&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url( admin_url( $edit_link ) ); ?&gt;&quot;&gt;&lt;?php _e( 'Edit' ); ?&gt;&lt;/a&gt;&lt;/span&gt;
+                                                                &lt;?php if ( ! in_array( $user['user_login'], $super_admins ) ) { ?&gt;
+                                                                | &lt;span class=&quot;delete&quot;&gt;&lt;a href=&quot;&lt;?php echo $delete        = esc_url( admin_url( add_query_arg( '_wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'ms-edit.php', 'deleteuser' ) . '&amp;amp;action=deleteuser&amp;amp;id=' . $user['ID'] ) ) ); ?&gt;&quot; class=&quot;delete&quot;&gt;&lt;?php _e( 'Delete' ); ?&gt;&lt;/a&gt;&lt;/span&gt;
+                                                                &lt;?php } ?&gt;
+                                                        &lt;/div&gt;
+                                                &lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'name': ?&gt;
+                                                &lt;td class=&quot;name column-name&quot;&gt;&lt;?php echo $user['display_name'] ?&gt;&lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'email': ?&gt;
+                                                &lt;td class=&quot;email column-email&quot;&gt;&lt;a href=&quot;mailto:&lt;?php echo $user['user_email'] ?&gt;&quot;&gt;&lt;?php echo $user['user_email'] ?&gt;&lt;/a&gt;&lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'registered':
+                                                if ( 'list' == $mode )
+                                                        $date = 'Y/m/d';
+                                                else
+                                                        $date = 'Y/m/d \&lt;\b\r \/\&gt; g:i:s a';
+                                        ?&gt;
+                                                &lt;td&gt;&lt;?php echo mysql2date( __( $date ), $user['user_registered'] ); ?&gt;&lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'blogs':
+                                                $blogs = get_blogs_of_user( $user['ID'], true );
+                                                ?&gt;
+                                                &lt;td&gt;
+                                                        &lt;?php
+                                                        if ( is_array( $blogs ) ) {
+                                                                foreach ( (array) $blogs as $key =&gt; $val ) {
+                                                                        $path        = ( $val-&gt;path == '/' ) ? '' : $val-&gt;path;
+                                                                        echo '&lt;a href=&quot;'. esc_url( admin_url( 'ms-sites.php?action=editblog&amp;amp;id=' . $val-&gt;userblog_id ) ) .'&quot;&gt;' . str_replace( '.' . $current_site-&gt;domain, '', $val-&gt;domain . $path ) . '&lt;/a&gt;';
+                                                                        echo ' &lt;small class=&quot;row-actions&quot;&gt;';
+
+                                                                        // Edit
+                                                                        echo '&lt;a href=&quot;'. esc_url( admin_url( 'ms-sites.php?action=editblog&amp;amp;id=' . $val-&gt;userblog_id ) ) .'&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt; | ';
+
+                                                                        // View
+                                                                        echo '&lt;a ';
+                                                                        if ( get_blog_status( $val-&gt;userblog_id, 'spam' ) == 1 )
+                                                                                echo 'style=&quot;background-color: #faa&quot; ';
+                                                                        echo 'href=&quot;' .  esc_url( get_home_url( $val-&gt;userblog_id ) )  . '&quot;&gt;' . __( 'View' ) . '&lt;/a&gt;';
+
+                                                                        echo '&lt;/small&gt;&lt;br /&gt;';
+                                                                }
+                                                        }
+                                                        ?&gt;
+                                                &lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        default: ?&gt;
+                                                &lt;td&gt;&lt;?php do_action( 'manage_users_custom_column', $column_name, $user['ID'] ); ?&gt;&lt;/td&gt;
+                                        &lt;?php
+                                        break;
+                                }
+                        endforeach
+                        ?&gt;
+                        &lt;/tr&gt;
+                        &lt;?php
+                }
+        }
+}
+
+class WP_Plugins_Table extends WP_List_Table {
+
+        function WP_Plugins_Table() {
+                global $status, $plugins, $totals, $page, $orderby, $order, $s;
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'plugins',
+                        'plural' =&gt; 'plugins',
+                ) );
+
+                wp_reset_vars( array( 'orderby', 'order', 's' ) );
+
+                $default_status = get_user_option( 'plugins_last_view' );
+                if ( empty( $default_status ) )
+                        $default_status = 'all';
+                $status = isset( $_REQUEST['plugin_status'] ) ? $_REQUEST['plugin_status'] : $default_status;
+                if ( !in_array( $status, array( 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) )
+                        $status = 'all';
+                if ( $status != $default_status &amp;&amp; 'search' != $status )
+                        update_user_meta( get_current_user_id(), 'plugins_last_view', $status );
+
+                $page = $this-&gt;get_pagenum();
+
+                $plugins = array(
+                        'all' =&gt; apply_filters( 'all_plugins', get_plugins() ),
+                        'search' =&gt; array(),
+                        'active' =&gt; array(),
+                        'inactive' =&gt; array(),
+                        'recent' =&gt; array(),
+                        'recently_activated' =&gt; get_option( 'recently_activated', array() ),
+                        'upgrade' =&gt; array(),
+                        'mustuse' =&gt; array(),
+                        'dropins' =&gt; array()
+                );
+
+                if ( ! is_multisite() || ( is_network_admin() &amp;&amp; current_user_can('manage_network_plugins') ) ) {
+                        if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) )
+                                $plugins['mustuse'] = get_mu_plugins();
+                        if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) )
+                                $plugins['dropins'] = get_dropins();
+                }
+
+                set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), 86400 );
+
+                // Clean out any plugins which were deactivated over a week ago.
+                foreach ( $plugins['recently_activated'] as $key =&gt; $time )
+                        if ( $time + ( 7*24*60*60 ) &lt; time() ) //1 week
+                                unset( $plugins['recently_activated'][$key] );
+                update_option( 'recently_activated', $plugins['recently_activated'] );
+                $current = get_site_transient( 'update_plugins' );
+
+                foreach ( array( 'all', 'mustuse', 'dropins' ) as $type ) {
+                        foreach ( (array) $plugins[$type] as $plugin_file =&gt; $plugin_data ) {
+                                // Translate, Apply Markup, Sanitize HTML
+                                $plugins[$type][$plugin_file] = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, false, true );
+                        }
+                }
+
+                foreach ( (array) $plugins['all'] as $plugin_file =&gt; $plugin_data ) {
+                        // Filter into individual sections
+                        if ( is_plugin_active_for_network($plugin_file) &amp;&amp; !is_network_admin() ) {
+                                unset( $plugins['all'][ $plugin_file ] );
+                                continue;
+                        } elseif ( is_multisite() &amp;&amp; is_network_only_plugin( $plugin_file ) &amp;&amp; !current_user_can( 'manage_network_plugins' ) ) {
+                                $plugins['network'][ $plugin_file ] = $plugin_data;
+                        } elseif ( is_plugin_active( $plugin_file ) ) {
+                                $plugins['active'][ $plugin_file ] = $plugin_data;
+                        } else {
+                                if ( !is_network_admin() &amp;&amp; isset( $recently_activated[ $plugin_file ] ) ) // Was the plugin recently activated?
+                                        $plugins['recent'][ $plugin_file ] = $plugin_data;
+                                $plugins['inactive'][ $plugin_file ] = $plugin_data;
+                        }
+
+                        if ( isset( $current-&gt;response[ $plugin_file ] ) )
+                                $plugins['upgrade'][ $plugin_file ] = $plugin_data;
+                }
+
+                if ( !current_user_can( 'update_plugins' ) )
+                        $plugins['upgrade'] = array();
+
+                if ( $s ) {
+                        function _search_plugins_filter_callback( $plugin ) {
+                                static $term;
+                                if ( is_null( $term ) )
+                                        $term = stripslashes( $_REQUEST['s'] );
+
+                                foreach ( $plugin as $value )
+                                        if ( stripos( $value, $term ) !== false )
+                                                return true;
+
+                                return false;
+                        }
+                        $status = 'search';
+                        $plugins['search'] = array_filter( $plugins['all'], '_search_plugins_filter_callback' );
+                }
+
+                $totals = array();
+                foreach ( $plugins as $type =&gt; $list )
+                        $totals[ $type ] = count( $list );
+
+                if ( empty( $plugins[ $status ] ) &amp;&amp; !in_array( $status, array( 'all', 'search' ) ) )
+                        $status = 'all';
+
+                $this-&gt;items = $plugins[ $status ];
+                $total_this_page = $totals[ $status ];
+
+                if ( $orderby ) {
+                        $orderby = ucfirst( $orderby );
+                        $order = strtoupper( $order );
+
+                        function _order_plugins_callback( $plugin_a, $plugin_b ) {
+                                global $orderby, $order;
+
+                                $a = $plugin_a[$orderby];
+                                $b = $plugin_b[$orderby];
+
+                                if ( $a == $b )
+                                        return 0;
+
+                                if ( 'DESC' == $order )
+                                        return ( $a &lt; $b ) ? 1 : -1;
+                                else
+                                        return ( $a &lt; $b ) ? -1 : 1;
+                        }
+                        uasort( $this-&gt;items, '_order_plugins_callback' );
+                }
+
+                $plugins_per_page = (int) get_user_option( 'plugins_per_page' );
+                if ( empty( $plugins_per_page ) || $plugins_per_page &lt; 1 )
+                        $plugins_per_page = 999;
+                $plugins_per_page = apply_filters( 'plugins_per_page', $plugins_per_page );
+
+                $start = ( $page - 1 ) * $plugins_per_page;
+
+                if ( $total_this_page &gt; $plugins_per_page )
+                        $this-&gt;items = array_slice( $this-&gt;items, $start, $plugins_per_page );
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total_this_page,
+                        'per_page' =&gt; $plugins_per_page,
+                ) );
+        }
+
+        function no_items() {
+                global $plugins;
+
+                if ( !empty( $plugins['all'] ) )
+                        _e( 'No plugins found.' );
+                else
+                        _e( 'You do not appear to have any plugins available at this time.' );
+        }
+
+        function get_columns() {
+                global $status;
+
+                return array(
+                        'cb'          =&gt; !in_array( $status, array( 'mustuse', 'dropins' ) ) ? '&lt;input type=&quot;checkbox&quot; /&gt;' : '',
+                        'name'        =&gt; __( 'Plugin' ),
+                        'description' =&gt; __( 'Description' ),
+                );
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'name'         =&gt; 'name',
+                        'description'  =&gt; 'description',
+                );
+        }
+
+        function display_tablenav( $which ) {
+                global $status;
+
+                if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )
+                        parent::display_tablenav( $which );
+        }
+
+        function get_bulk_actions() {
+                global $status;
+
+                $actions = array();
+                if ( 'active' != $status )
+                        $actions['activate-selected'] = __( 'Activate' );
+                if ( is_multisite() &amp;&amp; 'network' != $status )
+                        $actions['network-activate-selected'] = __( 'Network Activate' );
+                if ( 'inactive' != $status &amp;&amp; 'recent' != $status )
+                        $actions['deactivate-selected'] = __( 'Deactivate' );
+                if ( current_user_can( 'update_plugins' ) )
+                        $actions['update-selected'] = __( 'Update' );
+                if ( current_user_can( 'delete_plugins' ) &amp;&amp; ( 'active' != $status ) )
+                        $actions['delete-selected'] = __( 'Delete' );
+
+                return $actions;
+        }
+
+        function bulk_actions( $which ) {
+                global $status;
+
+                if ( in_array( $status, array( 'mustuse', 'dropins' ) ) )
+                        return;
+
+                parent::bulk_actions( $which );
+        }
+
+        function extra_tablenav( $which ) {
+                global $status;
+
+                if ( 'recently_activated' == $status ) { ?&gt;
+                        &lt;div class=&quot;alignleft actions&quot;&gt;
+                                &lt;input type=&quot;submit&quot; name=&quot;clear-recent-list&quot; value=&quot;&lt;?php esc_attr_e( 'Clear List' ) ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
+                        &lt;/div&gt;
+                &lt;?php }
+        }
+
+        function display_rows() {
+                global $status, $page;
+
+                $context = $status;
+
+                foreach ( $this-&gt;items as $plugin_file =&gt; $plugin_data ) {
+                        // preorder
+                        $actions = array(
+                                'network_deactivate' =&gt; '', 'deactivate' =&gt; '',
+                                'network_only' =&gt; '', 'activate' =&gt; '',
+                                'network_activate' =&gt; '',
+                                'edit' =&gt; '',
+                                'delete' =&gt; '',
+                        );
+
+                        if ( 'mustuse' == $context ) {
+                                if ( is_multisite() &amp;&amp; !is_network_admin() )
+                                        continue;
+                                $is_active = true;
+                        } elseif ( 'dropins' == $context ) {
+                                if ( is_multisite() &amp;&amp; !is_network_admin() )
+                                        continue;
+                                $dropins = _get_dropins();
+                                $plugin_name = $plugin_file;
+                                if ( $plugin_file != $plugin_data['Name'] )
+                                        $plugin_name .= '&lt;br/&gt;' . $plugin_data['Name'];
+                                if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant
+                                        $is_active = true;
+                                        $description = '&lt;p&gt;&lt;strong&gt;' . $dropins[ $plugin_file ][0] . '&lt;/strong&gt;&lt;/p&gt;';
+                                } elseif ( constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true
+                                        $is_active = true;
+                                        $description = '&lt;p&gt;&lt;strong&gt;' . $dropins[ $plugin_file ][0] . '&lt;/strong&gt;&lt;/p&gt;';
+                                } else {
+                                        $is_active = false;
+                                        $description = '&lt;p&gt;&lt;strong&gt;' . $dropins[ $plugin_file ][0] . ' &lt;span class=&quot;attention&quot;&gt;' . __('Inactive:') . '&lt;/span&gt;&lt;/strong&gt; ' . sprintf( __( 'Requires &lt;code&gt;%s&lt;/code&gt; in &lt;code&gt;wp-config.php&lt;/code&gt;.' ), &quot;define('&quot; . $dropins[ $plugin_file ][1] . &quot;', true);&quot; ) . '&lt;/p&gt;';
+                                }
+                                if ( $plugin_data['Description'] )
+                                        $description .= '&lt;p&gt;' . $plugin_data['Description'] . '&lt;/p&gt;';
+                        } else {
+                                $is_active_for_network = is_plugin_active_for_network($plugin_file);
+                                if ( is_network_admin() )
+                                        $is_active = $is_active_for_network;
+                                else
+                                        $is_active = is_plugin_active( $plugin_file );
+
+                                if ( $is_active_for_network &amp;&amp; !is_super_admin() &amp;&amp; !is_network_admin() )
+                                        continue;
+
+                                if ( is_network_admin() ) {
+                                        if ( $is_active_for_network ) {
+                                                if ( current_user_can( 'manage_network_plugins' ) )
+                                                        $actions['network_deactivate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=deactivate&amp;amp;networkwide=1&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'deactivate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Deactivate this plugin') . '&quot;&gt;' . __('Network Deactivate') . '&lt;/a&gt;';
+                                        } else {
+                                                if ( current_user_can( 'manage_network_plugins' ) )
+                                                        $actions['network_activate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=activate&amp;amp;networkwide=1&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'activate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Activate this plugin for all sites in this network') . '&quot; class=&quot;edit&quot;&gt;' . __('Network Activate') . '&lt;/a&gt;';
+                                                if ( current_user_can('delete_plugins') )
+                                                        $actions['delete'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=delete-selected&amp;amp;checked[]=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'bulk-manage-plugins') . '&quot; title=&quot;' . __('Delete this plugin') . '&quot; class=&quot;delete&quot;&gt;' . __('Delete') . '&lt;/a&gt;';
+                                        }
+                                } else {
+                                        if ( $is_active ) {
+                                                $actions['deactivate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=deactivate&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'deactivate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Deactivate this plugin') . '&quot;&gt;' . __('Deactivate') . '&lt;/a&gt;';
+                                        } else {
+                                                if ( is_network_only_plugin( $plugin_file ) &amp;&amp; !is_network_admin() )
+                                                        continue;
+
+                                                $actions['activate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=activate&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'activate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Activate this plugin') . '&quot; class=&quot;edit&quot;&gt;' . __('Activate') . '&lt;/a&gt;';
+
+                                                if ( current_user_can('delete_plugins') )
+                                                        $actions['delete'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=delete-selected&amp;amp;checked[]=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'bulk-manage-plugins') . '&quot; title=&quot;' . __('Delete this plugin') . '&quot; class=&quot;delete&quot;&gt;' . __('Delete') . '&lt;/a&gt;';
+                                        } // end if $is_active
+                                 } // end if is_network_admin()
+
+                                if ( current_user_can('edit_plugins') &amp;&amp; is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
+                                        $actions['edit'] = '&lt;a href=&quot;plugin-editor.php?file=' . $plugin_file . '&quot; title=&quot;' . __('Open this file in the Plugin Editor') . '&quot; class=&quot;edit&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
+                        } // end if $context
+
+                        $actions = apply_filters( 'plugin_action_links', array_filter( $actions ), $plugin_file, $plugin_data, $context );
+                        $actions = apply_filters( &quot;plugin_action_links_$plugin_file&quot;, $actions, $plugin_file, $plugin_data, $context );
+
+                        $class = $is_active ? 'active' : 'inactive';
+                        $checkbox = in_array( $status, array( 'mustuse', 'dropins' ) ) ? '' : &quot;&lt;input type='checkbox' name='checked[]' value='&quot; . esc_attr( $plugin_file ) . &quot;' /&gt;&quot;;
+                        if ( 'dropins' != $status ) {
+                                $description = '&lt;p&gt;' . $plugin_data['Description'] . '&lt;/p&gt;';
+                                $plugin_name = $plugin_data['Name'];
+                        }
+                        echo &quot;
+                &lt;tr class='$class'&gt;
+                        &lt;th scope='row' class='check-column'&gt;$checkbox&lt;/th&gt;
+                        &lt;td class='plugin-title'&gt;&lt;strong&gt;$plugin_name&lt;/strong&gt;&lt;/td&gt;
+                        &lt;td class='desc'&gt;$description&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;tr class='$class second'&gt;
+                        &lt;td&gt;&lt;/td&gt;
+                        &lt;td class='plugin-title'&gt;&quot;;
+                        echo '&lt;div class=&quot;row-actions-visible&quot;&gt;';
+                        foreach ( $actions as $action =&gt; $link ) {
+                                $sep = end( $actions ) == $link ? '' : ' | ';
+                                echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
+                        }
+                        echo &quot;&lt;/div&gt;&lt;/td&gt;
+                        &lt;td class='desc'&gt;&quot;;
+                        $plugin_meta = array();
+                        if ( !empty( $plugin_data['Version'] ) )
+                                $plugin_meta[] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
+                        if ( !empty( $plugin_data['Author'] ) ) {
+                                $author = $plugin_data['Author'];
+                                if ( !empty( $plugin_data['AuthorURI'] ) )
+                                        $author = '&lt;a href=&quot;' . $plugin_data['AuthorURI'] . '&quot; title=&quot;' . __( 'Visit author homepage' ) . '&quot;&gt;' . $plugin_data['Author'] . '&lt;/a&gt;';
+                                $plugin_meta[] = sprintf( __( 'By %s' ), $author );
+                        }
+                        if ( ! empty( $plugin_data['PluginURI'] ) )
+                                $plugin_meta[] = '&lt;a href=&quot;' . $plugin_data['PluginURI'] . '&quot; title=&quot;' . __( 'Visit plugin site' ) . '&quot;&gt;' . __( 'Visit plugin site' ) . '&lt;/a&gt;';
+
+                        $plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status );
+                        echo implode( ' | ', $plugin_meta );
+                        echo &quot;&lt;/td&gt;
+                &lt;/tr&gt;\n&quot;;
+
+                        do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status );
+                        do_action( &quot;after_plugin_row_$plugin_file&quot;, $plugin_file, $plugin_data, $status );
+                }
+        }
+}
+
+class WP_Plugin_Install_Table extends WP_List_Table {
+
+        function WP_Plugin_Install_Table() {
+                include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
+
+                global $tabs, $tab, $paged, $type, $term;
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'plugin-install',
+                ) );
+
+                wp_reset_vars( array( 'tab' ) );
+
+                $paged = $this-&gt;get_pagenum();
+
+                $per_page = 30;
+
+                // These are the tabs which are shown on the page
+                $tabs = array();
+                $tabs['dashboard'] = __( 'Search' );
+                if ( 'search' == $tab )
+                        $tabs['search']        = __( 'Search Results' );
+                $tabs['upload'] = __( 'Upload' );
+                $tabs['featured'] = _x( 'Featured','Plugin Installer' );
+                $tabs['popular']  = _x( 'Popular','Plugin Installer' );
+                $tabs['new']      = _x( 'Newest','Plugin Installer' );
+                $tabs['updated']  = _x( 'Recently Updated','Plugin Installer' );
+
+                $nonmenu_tabs = array( 'plugin-information' ); //Valid actions to perform which do not have a Menu item.
+
+                $tabs = apply_filters( 'install_plugins_tabs', $tabs );
+                $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );
+
+                // If a non-valid menu tab has been selected, And its not a non-menu action.
+                if ( empty( $tab ) || ( !isset( $tabs[ $tab ] ) &amp;&amp; !in_array( $tab, (array) $nonmenu_tabs ) ) )
+                        $tab = key( $tabs );
+
+                $args = array( 'page' =&gt; $paged, 'per_page' =&gt; $per_page );
+
+                switch ( $tab ) {
+                        case 'search':
+                                $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : '';
+                                $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
+
+                                switch ( $type ) {
+                                        case 'tag':
+                                                $args['tag'] = sanitize_title_with_dashes( $term );
+                                                break;
+                                        case 'term':
+                                                $args['search'] = $term;
+                                                break;
+                                        case 'author':
+                                                $args['author'] = $term;
+                                                break;
+                                }
+
+                                add_action( 'install_plugins_table_header', 'install_search_form' );
+                                break;
+
+                        case 'featured':
+                        case 'popular':
+                        case 'new':
+                        case 'updated':
+                                $args['browse'] = $tab;
+                                break;
+
+                        default:
+                                $args = false;
+                }
+
+                if ( !$args )
+                        return;
+
+                $api = plugins_api( 'query_plugins', $args );
+
+                if ( is_wp_error( $api ) )
+                        wp_die( $api-&gt;get_error_message() . '&lt;/p&gt; &lt;p class=&quot;hide-if-no-js&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;document.location.reload(); return false;&quot;&gt;' . __( 'Try again' ) . '&lt;/a&gt;' );
+
+                $this-&gt;items = $api-&gt;plugins;
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $api-&gt;info['results'],
+                        'per_page' =&gt; $per_page,
+                ) );
+        }
+
+        function no_items() {
+                _e( 'No plugins match your request.' );
+        }
+
+        function display_tablenav( $which ) {
+                if ( 'top' ==  $which ) { ?&gt;
+                        &lt;div class=&quot;tablenav&quot;&gt;
+                                &lt;div class=&quot;alignleft actions&quot;&gt;
+                                        &lt;?php do_action( 'install_plugins_table_header' ); ?&gt;
+                                &lt;/div&gt;
+                                &lt;?php $this-&gt;pagination( $which ); ?&gt;
+                                &lt;br class=&quot;clear&quot; /&gt;
+                        &lt;/div&gt;
+                &lt;?php } else { ?&gt;
+                        &lt;div class=&quot;tablenav&quot;&gt;
+                                &lt;?php $this-&gt;pagination( $which ); ?&gt;
+                                &lt;br class=&quot;clear&quot; /&gt;
+                        &lt;/div&gt;
+                &lt;?php
+                }
+        }
+
+        function get_table_classes() {
+                extract( $this-&gt;_args );
+
+                return array( 'widefat', $plural );
+        }
+
+        function get_columns() {
+                return array(
+                        'name'        =&gt; __( 'Name' ),
+                        'version'     =&gt; __( 'Version' ),
+                        'rating'      =&gt; __( 'Rating' ),
+                        'description' =&gt; __( 'Description' ),
+                );
+        }
+
+        function display_rows() {
+                $plugins_allowedtags = array(
+                        'a' =&gt; array( 'href' =&gt; array(),'title' =&gt; array(), 'target' =&gt; array() ),
+                        'abbr' =&gt; array( 'title' =&gt; array() ),'acronym' =&gt; array( 'title' =&gt; array() ),
+                        'code' =&gt; array(), 'pre' =&gt; array(), 'em' =&gt; array(),'strong' =&gt; array(),
+                        'ul' =&gt; array(), 'ol' =&gt; array(), 'li' =&gt; array(), 'p' =&gt; array(), 'br' =&gt; array()
+                );
+
+                foreach ( (array) $this-&gt;items as $plugin ) {
+                        if ( is_object( $plugin ) )
+                                $plugin = (array) $plugin;
+
+                        $title = wp_kses( $plugin['name'], $plugins_allowedtags );
+                        //Limit description to 400char, and remove any HTML.
+                        $description = strip_tags( $plugin['description'] );
+                        if ( strlen( $description ) &gt; 400 )
+                                $description = mb_substr( $description, 0, 400 ) . '&amp;#8230;';
+                        //remove any trailing entities
+                        $description = preg_replace( '/&amp;[^;\s]{0,6}$/', '', $description );
+                        //strip leading/trailing &amp; multiple consecutive lines
+                        $description = trim( $description );
+                        $description = preg_replace( &quot;|(\r?\n)+|&quot;, &quot;\n&quot;, $description );
+                        //\n =&gt; &lt;br&gt;
+                        $description = nl2br( $description );
+                        $version = wp_kses( $plugin['version'], $plugins_allowedtags );
+
+                        $name = strip_tags( $title . ' ' . $version );
+
+                        $author = $plugin['author'];
+                        if ( ! empty( $plugin['author'] ) )
+                                $author = ' &lt;cite&gt;' . sprintf( __( 'By %s' ), $author ) . '.&lt;/cite&gt;';
+
+                        $author = wp_kses( $author, $plugins_allowedtags );
+
+                        $action_links = array();
+                        $action_links[] = '&lt;a href=&quot;' . admin_url( 'plugin-install.php?tab=plugin-information&amp;amp;plugin=' . $plugin['slug'] .
+                                                                '&amp;amp;TB_iframe=true&amp;amp;width=600&amp;amp;height=550' ) . '&quot; class=&quot;thickbox&quot; title=&quot;' .
+                                                                esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '&quot;&gt;' . __( 'Details' ) . '&lt;/a&gt;';
+
+                        if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {
+                                $status = install_plugin_install_status( $plugin );
+
+                                switch ( $status['status'] ) {
+                                        case 'install':
+                                                if ( $status['url'] )
+                                                        $action_links[] = '&lt;a class=&quot;install-now&quot; href=&quot;' . $status['url'] . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '&quot;&gt;' . __( 'Install Now' ) . '&lt;/a&gt;';
+                                                break;
+                                        case 'update_available':
+                                                if ( $status['url'] )
+                                                        $action_links[] = '&lt;a href=&quot;' . $status['url'] . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Update to version %s' ), $status['version'] ) ) . '&quot;&gt;' . sprintf( __( 'Update Now' ), $status['version'] ) . '&lt;/a&gt;';
+                                                break;
+                                        case 'latest_installed':
+                                        case 'newer_installed':
+                                                $action_links[] = '&lt;span title=&quot;' . esc_attr__( 'This plugin is already installed and is up to date' ) . ' &quot;&gt;' . __( 'Installed' ) . '&lt;/span&gt;';
+                                                break;
+                                }
+                        }
+
+                        $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
+                ?&gt;
+                &lt;tr&gt;
+                        &lt;td class=&quot;name&quot;&gt;&lt;strong&gt;&lt;?php echo $title; ?&gt;&lt;/strong&gt;
+                                &lt;div class=&quot;action-links&quot;&gt;&lt;?php if ( !empty( $action_links ) ) echo implode( ' | ', $action_links ); ?&gt;&lt;/div&gt;
+                        &lt;/td&gt;
+                        &lt;td class=&quot;vers&quot;&gt;&lt;?php echo $version; ?&gt;&lt;/td&gt;
+                        &lt;td class=&quot;vers&quot;&gt;
+                                &lt;div class=&quot;star-holder&quot; title=&quot;&lt;?php printf( _n( '( based on %s rating )', '( based on %s ratings )', $plugin['num_ratings'] ), number_format_i18n( $plugin['num_ratings'] ) ) ?&gt;&quot;&gt;
+                                        &lt;div class=&quot;star star-rating&quot; style=&quot;width: &lt;?php echo esc_attr( $plugin['rating'] ) ?&gt;px&quot;&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;star star5&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url( 'images/star.gif' ); ?&gt;&quot; alt=&quot;&lt;?php _e( '5 stars' ) ?&gt;&quot; /&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;star star4&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url( 'images/star.gif' ); ?&gt;&quot; alt=&quot;&lt;?php _e( '4 stars' ) ?&gt;&quot; /&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;star star3&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url( 'images/star.gif' ); ?&gt;&quot; alt=&quot;&lt;?php _e( '3 stars' ) ?&gt;&quot; /&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;star star2&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url( 'images/star.gif' ); ?&gt;&quot; alt=&quot;&lt;?php _e( '2 stars' ) ?&gt;&quot; /&gt;&lt;/div&gt;
+                                        &lt;div class=&quot;star star1&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url( 'images/star.gif' ); ?&gt;&quot; alt=&quot;&lt;?php _e( '1 star' ) ?&gt;&quot; /&gt;&lt;/div&gt;
+                                &lt;/div&gt;
+                        &lt;/td&gt;
+                        &lt;td class=&quot;desc&quot;&gt;&lt;?php echo $description, $author; ?&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;?php
+                }
+        }
+}
+
+class WP_Themes_Table extends WP_List_Table {
+
+        function WP_Themes_Table() {
+                global $ct;
+
+                $ct = current_theme_info();
+
+                $themes = get_allowed_themes();
+                unset( $themes[$ct-&gt;name] );
+                uksort( $themes, &quot;strnatcasecmp&quot; );
+
+                $per_page = 15;
+                $page = $this-&gt;get_pagenum( 'pagenum' );
+
+                $start = $offset = ( $page - 1 ) * $per_page;
+
+                $this-&gt;items = array_slice( $themes, $start, $per_page );
+
+                parent::__construct( array(
+                        'screen' =&gt; 'themes',
+                ) );
+
+                $this-&gt;set_pagination_args( array(
+                        'query_var' =&gt; 'pagenum',
+                        'total_items' =&gt; count( $themes ),
+                        'per_page' =&gt; $per_page,
+                ) );
+        }
+
+        function no_items() {
+                if ( current_user_can( 'install_themes' ) )
+                        printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the &lt;em&gt;&lt;a href=&quot;%s&quot;&gt;Install Themes&lt;/a&gt;&lt;/em&gt; tab above.' ), 'theme-install.php' );
+                else
+                        printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) );
+        }
+
+        function display_table() {
+?&gt;
+                &lt;div class=&quot;tablenav&quot;&gt;
+                        &lt;?php $this-&gt;pagination( 'top' ); ?&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/div&gt;
+
+                &lt;table id=&quot;availablethemes&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
+                        &lt;tbody id=&quot;the-list&quot; class=&quot;list:themes&quot;&gt;
+                                &lt;?php $this-&gt;display_rows(); ?&gt;
+                        &lt;/tbody&gt;
+                &lt;/table&gt;
+
+                &lt;div class=&quot;tablenav&quot;&gt;
+                        &lt;?php $this-&gt;pagination( 'bottom' ); ?&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/div&gt;
+&lt;?php
+        }
+
+        function get_columns() {
+                return array();
+        }
+
+        function display_rows() {
+                $themes = $this-&gt;items;
+                $theme_names = array_keys( $themes );
+                natcasesort( $theme_names );
+
+                $table = array();
+                $rows = ceil( count( $theme_names ) / 3 );
+                for ( $row = 1; $row &lt;= $rows; $row++ )
+                        for ( $col = 1; $col &lt;= 3; $col++ )
+                                $table[$row][$col] = array_shift( $theme_names );
+
+                foreach ( $table as $row =&gt; $cols ) {
+?&gt;
+&lt;tr&gt;
+&lt;?php
+foreach ( $cols as $col =&gt; $theme_name ) {
+        $class = array( 'available-theme' );
+        if ( $row == 1 ) $class[] = 'top';
+        if ( $col == 1 ) $class[] = 'left';
+        if ( $row == $rows ) $class[] = 'bottom';
+        if ( $col == 3 ) $class[] = 'right';
+?&gt;
+        &lt;td class=&quot;&lt;?php echo join( ' ', $class ); ?&gt;&quot;&gt;
+&lt;?php if ( !empty( $theme_name ) ) :
+        $template = $themes[$theme_name]['Template'];
+        $stylesheet = $themes[$theme_name]['Stylesheet'];
+        $title = $themes[$theme_name]['Title'];
+        $version = $themes[$theme_name]['Version'];
+        $description = $themes[$theme_name]['Description'];
+        $author = $themes[$theme_name]['Author'];
+        $screenshot = $themes[$theme_name]['Screenshot'];
+        $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
+        $template_dir = $themes[$theme_name]['Template Dir'];
+        $parent_theme = $themes[$theme_name]['Parent Theme'];
+        $theme_root = $themes[$theme_name]['Theme Root'];
+        $theme_root_uri = $themes[$theme_name]['Theme Root URI'];
+        $preview_link = esc_url( get_option( 'home' ) . '/' );
+        if ( is_ssl() )
+                $preview_link = str_replace( 'http://', 'https://', $preview_link );
+        $preview_link = htmlspecialchars( add_query_arg( array( 'preview' =&gt; 1, 'template' =&gt; $template, 'stylesheet' =&gt; $stylesheet, 'TB_iframe' =&gt; 'true' ), $preview_link ) );
+        $preview_text = esc_attr( sprintf( __( 'Preview of &amp;#8220;%s&amp;#8221;' ), $title ) );
+        $tags = $themes[$theme_name]['Tags'];
+        $thickbox_class = 'thickbox thickbox-preview';
+        $activate_link = wp_nonce_url( &quot;themes.php?action=activate&amp;amp;template=&quot;.urlencode( $template ).&quot;&amp;amp;stylesheet=&quot;.urlencode( $stylesheet ), 'switch-theme_' . $template );
+        $activate_text = esc_attr( sprintf( __( 'Activate &amp;#8220;%s&amp;#8221;' ), $title ) );
+        $actions = array();
+        $actions[] = '&lt;a href=&quot;' . $activate_link .  '&quot; class=&quot;activatelink&quot; title=&quot;' . $activate_text . '&quot;&gt;' . __( 'Activate' ) . '&lt;/a&gt;';
+        $actions[] = '&lt;a href=&quot;' . $preview_link . '&quot; class=&quot;thickbox thickbox-preview&quot; title=&quot;' . esc_attr( sprintf( __( 'Preview &amp;#8220;%s&amp;#8221;' ), $theme_name ) ) . '&quot;&gt;' . __( 'Preview' ) . '&lt;/a&gt;';
+        if ( current_user_can( 'delete_themes' ) )
+                $actions[] = '&lt;a class=&quot;submitdelete deletion&quot; href=&quot;' . wp_nonce_url( &quot;themes.php?action=delete&amp;amp;template=$stylesheet&quot;, 'delete-theme_' . $stylesheet ) . '&quot; onclick=&quot;' . &quot;return confirm( '&quot; . esc_js( sprintf( __( &quot;You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete.&quot; ), $theme_name ) ) . &quot;' );&quot; . '&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;';
+        $actions = apply_filters( 'theme_action_links', $actions, $themes[$theme_name] );
+
+        $actions = implode ( ' | ', $actions );
+?&gt;
+                &lt;a href=&quot;&lt;?php echo $preview_link; ?&gt;&quot; class=&quot;&lt;?php echo $thickbox_class; ?&gt; screenshot&quot;&gt;
+&lt;?php if ( $screenshot ) : ?&gt;
+                        &lt;img src=&quot;&lt;?php echo $theme_root_uri . '/' . $stylesheet . '/' . $screenshot; ?&gt;&quot; alt=&quot;&quot; /&gt;
+&lt;?php endif; ?&gt;
+                &lt;/a&gt;
+&lt;h3&gt;&lt;?php
+        /* translators: 1: theme title, 2: theme version, 3: theme author */
+        printf( __( '%1$s %2$s by %3$s' ), $title, $version, $author ) ; ?&gt;&lt;/h3&gt;
+&lt;p class=&quot;description&quot;&gt;&lt;?php echo $description; ?&gt;&lt;/p&gt;
+&lt;span class='action-links'&gt;&lt;?php echo $actions ?&gt;&lt;/span&gt;
+        &lt;?php if ( current_user_can( 'edit_themes' ) &amp;&amp; $parent_theme ) {
+        /* translators: 1: theme title, 2:  template dir, 3: stylesheet_dir, 4: theme title, 5: parent_theme */ ?&gt;
+        &lt;p&gt;&lt;?php printf( __( 'The template files are located in &lt;code&gt;%2$s&lt;/code&gt;. The stylesheet files are located in &lt;code&gt;%3$s&lt;/code&gt;. &lt;strong&gt;%4$s&lt;/strong&gt; uses templates from &lt;strong&gt;%5$s&lt;/strong&gt;. Changes made to the templates will affect both themes.' ), $title, str_replace( WP_CONTENT_DIR, '', $template_dir ), str_replace( WP_CONTENT_DIR, '', $stylesheet_dir ), $title, $parent_theme ); ?&gt;&lt;/p&gt;
+&lt;?php } else { ?&gt;
+        &lt;p&gt;&lt;?php printf( __( 'All of this theme&amp;#8217;s files are located in &lt;code&gt;%2$s&lt;/code&gt;.' ), $title, str_replace( WP_CONTENT_DIR, '', $template_dir ), str_replace( WP_CONTENT_DIR, '', $stylesheet_dir ) ); ?&gt;&lt;/p&gt;
+&lt;?php } ?&gt;
+&lt;?php if ( $tags ) : ?&gt;
+&lt;p&gt;&lt;?php _e( 'Tags:' ); ?&gt; &lt;?php echo join( ', ', $tags ); ?&gt;&lt;/p&gt;
+&lt;?php endif; ?&gt;
+                &lt;?php theme_update_available( $themes[$theme_name] ); ?&gt;
+&lt;?php endif; // end if not empty theme_name ?&gt;
+        &lt;/td&gt;
+&lt;?php } // end foreach $cols ?&gt;
+&lt;/tr&gt;
+&lt;?php } // end foreach $table
+        }
+}
+
+class WP_Theme_Install_Table extends WP_List_Table {
+
+        function WP_Theme_Install_Table() {
+                include( ABSPATH . 'wp-admin/includes/theme-install.php' );
+
+                global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'theme-install',
+                ) );
+
+                wp_reset_vars( array( 'tab' ) );
+
+                $paged = $this-&gt;get_pagenum();
+
+                $per_page = 30;
+
+                // These are the tabs which are shown on the page,
+                $tabs = array();
+                $tabs['dashboard'] = __( 'Search' );
+                if ( 'search' == $tab )
+                        $tabs['search']        = __( 'Search Results' );
+                $tabs['upload'] = __( 'Upload' );
+                $tabs['featured'] = _x( 'Featured','Theme Installer' );
+                //$tabs['popular']  = _x( 'Popular','Theme Installer' );
+                $tabs['new']      = _x( 'Newest','Theme Installer' );
+                $tabs['updated']  = _x( 'Recently Updated','Theme Installer' );
+
+                $nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item.
+
+                $tabs = apply_filters( 'install_themes_tabs', $tabs );
+                $nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );
+
+                // If a non-valid menu tab has been selected, And its not a non-menu action.
+                if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) &amp;&amp; ! in_array( $tab, (array) $nonmenu_tabs ) ) )
+                        $tab = key( $tabs );
+
+                $args = array( 'page' =&gt; $paged, 'per_page' =&gt; $per_page, 'fields' =&gt; $theme_field_defaults );
+
+                switch ( $tab ) {
+                        case 'search':
+                                $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : '';
+                                $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
+
+                                switch ( $type ) {
+                                        case 'tag':
+                                                $terms = explode( ',', $term );
+                                                $terms = array_map( 'trim', $terms );
+                                                $terms = array_map( 'sanitize_title_with_dashes', $terms );
+                                                $args['tag'] = $terms;
+                                                break;
+                                        case 'term':
+                                                $args['search'] = $term;
+                                                break;
+                                        case 'author':
+                                                $args['author'] = $term;
+                                                break;
+                                }
+
+                                if ( !empty( $_POST['features'] ) ) {
+                                        $terms = $_POST['features'];
+                                        $terms = array_map( 'trim', $terms );
+                                        $terms = array_map( 'sanitize_title_with_dashes', $terms );
+                                        $args['tag'] = $terms;
+                                        $_REQUEST['s'] = implode( ',', $terms );
+                                        $_REQUEST['type'] = 'tag';
+                                }
+
+                                add_action( 'install_themes_table_header', 'install_theme_search_form' );
+                                break;
+
+                        case 'featured':
+                        //case 'popular':
+                        case 'new':
+                        case 'updated':
+                                $args['browse'] = $tab;
+                                break;
+
+                        default:
+                                $args = false;
+                }
+
+                if ( !$args )
+                        return;
+
+                $api = themes_api( 'query_themes', $args );
+
+                if ( is_wp_error( $api ) )
+                        wp_die( $api-&gt;get_error_message() . '&lt;/p&gt; &lt;p class=&quot;hide-if-no-js&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;document.location.reload(); return false;&quot;&gt;' . __( 'Try again' ) . '&lt;/a&gt;' );
+
+                $this-&gt;items = $api-&gt;themes;
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $api-&gt;info['results'],
+                        'per_page' =&gt; $per_page,
+                ) );
+        }
+
+        function no_items() {
+                _e( 'No themes match your request.' );
+        }
+        
+        function get_columns() {
+                return array();
+        }
+
+        function display_table() {
+?&gt;
+                &lt;div class=&quot;tablenav&quot;&gt;
+                        &lt;div class=&quot;alignleft actions&quot;&gt;
+                                &lt;?php do_action( 'install_themes_table_header' ); ?&gt;
+                        &lt;/div&gt;
+                        &lt;?php $this-&gt;pagination( 'top' ); ?&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/div&gt;
+
+                &lt;table id=&quot;availablethemes&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
+                        &lt;tbody id=&quot;the-list&quot; class=&quot;list:themes&quot;&gt;
+                                &lt;?php $this-&gt;display_rows(); ?&gt;
+                        &lt;/tbody&gt;
+                &lt;/table&gt;
+
+                &lt;div class=&quot;tablenav&quot;&gt;
+                        &lt;?php $this-&gt;pagination( 'bottom' ); ?&gt;
+                        &lt;br class=&quot;clear&quot; /&gt;
+                &lt;/div&gt;
+&lt;?php
+        }
+
+        function display_rows() {
+                $themes = $this-&gt;items;
+
+                $rows = ceil( count( $themes ) / 3 );
+                $table = array();
+                $theme_keys = array_keys( $themes );
+                for ( $row = 1; $row &lt;= $rows; $row++ )
+                        for ( $col = 1; $col &lt;= 3; $col++ )
+                                $table[$row][$col] = array_shift( $theme_keys );
+
+                foreach ( $table as $row =&gt; $cols ) {
+                        echo &quot;\t&lt;tr&gt;\n&quot;;
+                        foreach ( $cols as $col =&gt; $theme_index ) {
+                                $class = array( 'available-theme' );
+                                if ( $row == 1 ) $class[] = 'top';
+                                if ( $col == 1 ) $class[] = 'left';
+                                if ( $row == $rows ) $class[] = 'bottom';
+                                if ( $col == 3 ) $class[] = 'right';
+                                ?&gt;
+                                &lt;td class=&quot;&lt;?php echo join( ' ', $class ); ?&gt;&quot;&gt;&lt;?php
+                                        if ( isset( $themes[$theme_index] ) )
+                                                display_theme( $themes[$theme_index] );
+                                ?&gt;&lt;/td&gt;
+                        &lt;?php } // end foreach $cols
+                        echo &quot;\t&lt;/tr&gt;\n&quot;;
+                } // end foreach $table
+        }
+}
+
</ins><span class="cx">Property changes on: trunk/wp-admin/includes/default-list-tables.php
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpadminincludeslisttablephp"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/includes/list-table.php (0 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/list-table.php                                (rev 0)
+++ trunk/wp-admin/includes/list-table.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -0,0 +1,599 @@
</span><ins>+&lt;?php
+
+/**
+ * Base class for displaying a list of items as an ajaxified html table
+ *
+ * @package WordPress
+ * @since 3.1.0
+ */
+class WP_List_Table {
+
+        /**
+         * The current list of items
+         *
+         * @since 3.1.0
+         * @var array
+         * @access protected
+         */
+        var $items;
+
+        /**
+         * Various information about the current table
+         *
+         * @since 3.1.0
+         * @var array
+         * @access private
+         */
+        var $_args;
+
+        /**
+         * Various information needed for displaying the pagination
+         *
+         * @since 3.1.0
+         * @var array
+         * @access private
+         */
+        var $_pagination_args = array();
+
+        /**
+         * The current screen
+         *
+         * @since 3.1.0
+         * @var object
+         * @access private
+         */
+        var $_screen;
+
+        /**
+         * Cached bulk actions
+         *
+         * @since 3.1.0
+         * @var array
+         * @access private
+         */
+        var $_actions;
+
+        /**
+         * Cached pagination output
+         *
+         * @since 3.1.0
+         * @var string
+         * @access private
+         */
+        var $_pagination;
+
+        /**
+         * Constructor. The child class should call this constructor from it's own constructor
+         *
+         * @param array $args An associative array with information about the current table
+         * @access protected
+         */
+        function WP_List_Table( $args ) {
+
+                $args = wp_parse_args( $args, array(
+                        'screen' =&gt; '',
+                        'plural' =&gt; '',
+                        'singular' =&gt; '',
+                        'ajax' =&gt; true
+                ) );
+
+                $this-&gt;_screen = $args['screen'];
+
+                if ( is_string( $this-&gt;_screen ) )
+                        $this-&gt;_screen = convert_to_screen( $this-&gt;_screen );
+
+                if ( !$args['plural'] )
+                        $args['plural'] = $this-&gt;_screen-&gt;base;
+
+                $this-&gt;_args = $args;
+
+                if ( $args['ajax'] ) {
+                        wp_enqueue_script( 'admin-table' );
+                        add_action( 'admin_footer', array( $this, '_js_vars' ) );
+                }
+        }
+
+        /**
+         * An internal method that sets all the necessary pagination arguments
+         *
+         * @param array $args An associative array with information about the pagination
+         * @access protected
+         */
+        function set_pagination_args( $args ) {
+                $args = wp_parse_args( $args, array(
+                        'query_var' =&gt; 'paged',
+                        'total_items' =&gt; 0,
+                        'total_pages' =&gt; 0,
+                        'per_page' =&gt; 0,
+                ) );
+
+                if ( !$args['total_pages'] &amp;&amp; $args['per_page'] &gt; 0 )
+                        $args['total_pages'] = ceil( $args['total_items'] / $args['per_page'] );
+
+                $this-&gt;_pagination_args = $args;
+        }
+
+        /**
+         * Wether the table has items to display or not
+         *
+         * @since 3.1.0
+         * @access public
+         *
+         * @return bool
+         */
+        function has_items() {
+                return !empty( $this-&gt;items );
+        }
+
+        /**
+         * Message to be displayed when there are no items
+         *
+         * @since 3.1.0
+         * @access public
+         */
+        function no_items() {
+                _e( 'No items found.' );
+        }
+
+        /**
+         * Get an associative array ( option_name =&gt; option_title ) with the list
+         * of bulk actions available on this table.
+         *
+         * @since 3.1.0
+         * @access protected
+         *
+         * @return array
+         */
+        function get_bulk_actions() {
+                return array();
+        }
+
+        /**
+         * Display the bulk actions dropdown.
+         *
+         * @since 3.1.0
+         * @access public
+         */
+        function bulk_actions() {
+
+                if ( is_null( $this-&gt;_actions ) ) {
+                        $this-&gt;_actions = $this-&gt;get_bulk_actions();
+                        $this-&gt;_actions = apply_filters( 'bulk_actions-' . $this-&gt;_screen-&gt;base, $this-&gt;_actions );
+                        $two = '';
+                }
+                else {
+                        $two = '2';
+                }
+
+                if ( empty( $this-&gt;_actions ) )
+                        return;
+
+                echo &quot;&lt;select name='action$two'&gt;\n&quot;;
+                echo &quot;&lt;option value='-1' selected='selected'&gt;&quot; . __( 'Bulk Actions' ) . &quot;&lt;/option&gt;\n&quot;;
+                foreach ( $this-&gt;_actions as $name =&gt; $title )
+                        echo &quot;\t&lt;option value='$name'&gt;$title&lt;/option&gt;\n&quot;;
+                echo &quot;&lt;/select&gt;\n&quot;;
+
+                echo &quot;&lt;input type='submit' value='&quot; . esc_attr__( 'Apply' ) . &quot;' name='doaction$two' id='doaction$two' class='button-secondary action' /&gt;\n&quot;;
+        }
+
+        /**
+         * Display a monthly dropdown for filtering items
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function months_dropdown( $post_type ) {
+                global $wpdb, $wp_locale;
+
+                $months = $wpdb-&gt;get_results( $wpdb-&gt;prepare( &quot;
+                        SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
+                        FROM $wpdb-&gt;posts
+                        WHERE post_type = %s
+                        ORDER BY post_date DESC
+                &quot;, $post_type ) );
+
+                $month_count = count( $months );
+
+                if ( !$month_count || ( 1 == $month_count &amp;&amp; 0 == $months[0]-&gt;month ) )
+                        return;
+
+                $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
+?&gt;
+                &lt;select name='m'&gt;
+                        &lt;option&lt;?php selected( $m, 0 ); ?&gt; value='0'&gt;&lt;?php _e( 'Show all dates' ); ?&gt;&lt;/option&gt;
+&lt;?php
+                foreach ( $months as $arc_row ) {
+                        if ( 0 == $arc_row-&gt;year )
+                                continue;
+
+                        $month = zeroise( $arc_row-&gt;month, 2 );
+                        $year = $arc_row-&gt;year;
+
+                        printf( &quot;&lt;option %s value='%s'&gt;%s&lt;/option&gt;\n&quot;,
+                                selected( $m, $year . $month, false ),
+                                esc_attr( $arc_row-&gt;year . $month ),
+                                $wp_locale-&gt;get_month( $month ) . &quot; $year&quot;
+                        );
+                }
+?&gt;
+                &lt;/select&gt;
+&lt;?php
+        }
+
+        /**
+         * Display a view switcher
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function view_switcher( $current_mode ) {
+                $modes = array(
+                        'list'    =&gt; __( 'List View' ),
+                        'excerpt' =&gt; __( 'Excerpt View' )
+                );
+
+?&gt;
+                &lt;input type=&quot;hidden&quot; name=&quot;mode&quot; value=&quot;&lt;?php echo esc_attr( $current_mode ); ?&gt;&quot; /&gt;
+                &lt;div class=&quot;view-switch&quot;&gt;
+&lt;?php
+                        foreach ( $modes as $mode =&gt; $title ) {
+                                $class = ( $current_mode == $mode ) ? 'class=&quot;current&quot;' : '';
+                                echo &quot;&lt;a href='&quot; . esc_url( add_query_arg( 'mode', $mode, $_SERVER['REQUEST_URI'] ) ) . &quot;' $class&gt;&lt;img id='view-switch-$mode' src='&quot; . esc_url( includes_url( 'images/blank.gif' ) ) . &quot;' width='20' height='20' title='$title' alt='$title' /&gt;&lt;/a&gt;\n&quot;;
+                        }
+                ?&gt;
+                &lt;/div&gt;
+&lt;?php
+        }
+
+        /**
+         * Get the current page number
+         *
+         * @since 3.1.0
+         * @access protected
+         *
+         * @return int
+         */
+        function get_pagenum( $query_var = 'paged' ) {
+                $pagenum = isset( $_REQUEST[$query_var] ) ? absint( $_REQUEST[$query_var] ) : 0;
+        
+                return max( 1, $pagenum );
+        }
+
+        /**
+         * Display the pagination.
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function pagination() {
+                if ( $this-&gt;_pagination ) {
+                        echo $this-&gt;_pagination;
+                        return;
+                }
+
+                if ( empty( $this-&gt;_pagination_args ) )
+                        return;
+
+                extract( $this-&gt;_pagination_args );
+
+                if ( $total_pages &lt; 2 )
+                        return;
+
+                $output = '&lt;span class=&quot;displaying-num&quot;&gt;' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '&lt;/span&gt;';
+
+                $current = $this-&gt;get_pagenum( $query_var );
+
+                $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
+
+                $page_links = array();
+
+                $page_links[] = sprintf( &quot;&lt;a class='%s' title='%s' href='%s'&gt;%s&lt;/a&gt;&quot;,
+                        'first-page',
+                        esc_attr__( 'Go to the first page' ),
+                        esc_url( remove_query_arg( $query_var, $current_url ) ),
+                        '&amp;laquo;&amp;laquo;'
+                );
+
+                $page_links[] = sprintf( &quot;&lt;a class='%s' title='%s' href='%s'&gt;%s&lt;/a&gt;&quot;,
+                        'prev-page',
+                        esc_attr__( 'Go to the previous page' ),
+                        esc_url( add_query_arg( $query_var, max( 1, $current-1 ), $current_url ) ),
+                        '&amp;laquo;'
+                );
+
+                $html_current_page = sprintf( &quot;&lt;input class='current-page' title='%s' type='text' name='%s' value='%s' size='%d' /&gt;&quot;,
+                        esc_attr__( 'Current page' ),
+                        esc_attr( $query_var ),
+                        number_format_i18n( $current ),
+                        strlen( $total_pages )
+                );
+                $html_total_pages = sprintf( &quot;&lt;span class='total-pages'&gt;%s&lt;/span&gt;&quot;, number_format_i18n( $total_pages ) );
+                $page_links[] = sprintf( _x( '%s of %s', 'paging' ), $html_current_page, $html_total_pages );
+
+                $page_links[] = sprintf( &quot;&lt;a class='%s' title='%s' href='%s'&gt;%s&lt;/a&gt;&quot;,
+                        'next-page',
+                        esc_attr__( 'Go to the next page' ),
+                        esc_url( add_query_arg( $query_var, min( $total_pages, $current+1 ), $current_url ) ),
+                        '&amp;raquo;'
+                );
+
+                $page_links[] = sprintf( &quot;&lt;a class='%s' title='%s' href='%s'&gt;%s&lt;/a&gt;&quot;,
+                        'last-page',
+                        esc_attr__( 'Go to the last page' ),
+                        esc_url( add_query_arg( $query_var, $total_pages, $current_url ) ),
+                        '&amp;raquo;&amp;raquo;'
+                );
+
+                $output .= join( &quot;\n&quot;, $page_links );
+
+                $this-&gt;_pagination = &quot;&lt;div class='tablenav-pages'&gt;$output&lt;/div&gt;&quot;;
+
+                echo $this-&gt;_pagination;
+        }
+
+        /**
+         * Get a list of columns. The format is internal_name =&gt; title
+         *
+         * @since 3.1.0
+         * @access protected
+         *
+         * @return array
+         */
+        function get_columns() {
+                die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
+        }
+
+        /**
+         * Get a list of sortable columns. The format is internal_name =&gt; orderby
+         *
+         * @since 3.1.0
+         * @access protected
+         *
+         * @return array
+         */
+        function get_sortable_columns() {
+                return array();
+        }
+
+        /**
+         * Get a list of hidden columns.
+         *
+         * @since 3.1.0
+         * @access private
+         *
+         * @return array
+         */
+        function get_hidden_columns() {
+                return (array) get_user_option( 'manage' . $this-&gt;_screen-&gt;id. 'columnshidden' );
+        }
+
+        /**
+         * Get a list of all, hidden and sortable columns, with filter applied
+         *
+         * @since 3.1.0
+         * @access protected
+         *
+         * @return array
+         */
+        function get_column_headers() {
+                if ( !isset( $this-&gt;_column_headers ) ) {
+                        $columns = apply_filters( 'manage_' . $this-&gt;_screen-&gt;id . '_columns', $this-&gt;get_columns() );
+                        $sortable = apply_filters( 'manage_' . $this-&gt;_screen-&gt;id . '_sortable_columns', $this-&gt;get_sortable_columns() );
+                        $hidden = $this-&gt;get_hidden_columns();
+
+                        $this-&gt;_column_headers = array( $columns, $hidden, $sortable );
+                }
+
+                return $this-&gt;_column_headers;
+        }
+
+        /**
+         * Print column headers, accounting for hidden and sortable columns.
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function print_column_headers( $with_id = true ) {
+                $screen = $this-&gt;_screen;
+
+                list( $columns, $hidden, $sortable ) = $this-&gt;get_column_headers();
+
+                $styles = array();
+
+                $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
+
+                if ( isset( $_GET['orderby'] ) )
+                        $current_orderby = $_GET['orderby'];
+                else
+                        $current_orderby = '';
+
+                if ( isset( $_GET['order'] ) &amp;&amp; 'desc' == $_GET['order'] )
+                        $current_order = 'desc';
+                else
+                        $current_order = 'asc';
+
+                foreach ( $columns as $column_key =&gt; $column_display_name ) {
+                        $class = array( 'manage-column', &quot;column-$column_key&quot; );
+
+                        $style = '';
+                        if ( in_array( $column_key, $hidden ) )
+                                $style = 'display:none;';
+
+                        if ( isset( $styles[$screen-&gt;id] ) &amp;&amp; isset( $styles[$screen-&gt;id][$column_key] ) )
+                                $style .= ' ' . $styles[$screen-&gt;id][$column_key];
+                        $style = ' style=&quot;' . $style . '&quot;';
+
+                        if ( 'cb' == $column_key )
+                                $class[] = 'check-column';
+                        elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ) ) )
+                                $class[] = 'num';
+
+                        if ( isset( $sortable[$column_key] ) ) {
+                                $orderby = $sortable[$column_key];
+                                if ( $current_orderby == $orderby ) {
+                                        $order = 'asc' == $current_order ? 'desc' : 'asc';
+                                        $class[] = &quot;sorted-$current_order&quot;;
+                                } else {
+                                        $order = 'asc';
+                                        $class[] = 'sortable';
+                                }
+                                $column_display_name = '&lt;a href=&quot;' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '&quot;&gt;' . $column_display_name . '&lt;/a&gt;';
+                                $column_display_name .= '&lt;div class=&quot;sorting-indicator&quot;&gt;&lt;/div&gt;';
+                        }
+
+                        $id = $with_id ? &quot;id='$column_key'&quot; : '';
+
+                        if ( !empty( $class ) )
+                                $class = &quot;class='&quot; . join( ' ', $class ) . &quot;'&quot;;
+
+                        echo &quot;&lt;th scope='col' $id $class $style&gt;$column_display_name&lt;/th&gt;&quot;;
+                }
+        }
+
+        /**
+         * Display the table or a message if there are no items
+         *
+         * @since 3.1.0
+         * @access public
+         */
+        function display() {
+                if ( $this-&gt;has_items() ) {
+                        $this-&gt;display_table();
+                } else {
+                        echo '&lt;br class=&quot;clear&quot;&gt;';
+                        echo '&lt;p&gt;';
+                        $this-&gt;no_items();
+                        echo '&lt;/p&gt;';
+                }
+        }
+
+        /**
+         * Get a list of CSS classes for the &lt;table&gt; tag
+         *
+         * @since 3.1.0
+         * @access protected
+         *
+         * @return array
+         */        
+        function get_table_classes() {
+                extract( $this-&gt;_args );
+
+                return array( 'widefat', 'fixed', $plural );
+        }
+
+        /**
+         * Display the full table
+         *
+         * @since 3.1.0
+         * @access public
+         */
+        function display_table() {
+                extract( $this-&gt;_args );
+
+                $this-&gt;display_tablenav( 'top' );
+
+?&gt;
+&lt;table class=&quot;&lt;?php echo implode( ' ', $this-&gt;get_table_classes() ); ?&gt;&quot; cellspacing=&quot;0&quot;&gt;
+        &lt;thead&gt;
+        &lt;tr&gt;
+                &lt;?php $this-&gt;print_column_headers(); ?&gt;
+        &lt;/tr&gt;
+        &lt;/thead&gt;
+
+        &lt;tfoot&gt;
+        &lt;tr&gt;
+                &lt;?php $this-&gt;print_column_headers( false ); ?&gt;
+        &lt;/tr&gt;
+        &lt;/tfoot&gt;
+
+        &lt;tbody id=&quot;the-list&quot;&lt;?php if ( $singular ) echo &quot; class='list:$singular'&quot;; ?&gt;&gt;
+                &lt;?php $this-&gt;display_rows(); ?&gt;
+        &lt;/tbody&gt;
+&lt;/table&gt;
+&lt;?php
+
+                $this-&gt;display_tablenav( 'bottom' );
+        }
+
+        /**
+         * Generate the table navigation above or below the table
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function display_tablenav( $which ) {
+                if ( 'top' == $which )
+                        wp_nonce_field( 'bulk-' . $this-&gt;_args['plural'] );
+?&gt;
+        &lt;div class=&quot;tablenav&quot;&gt;
+
+                &lt;div class=&quot;alignleft actions&quot;&gt;
+                        &lt;?php $this-&gt;bulk_actions( $which ); ?&gt;
+                &lt;/div&gt;
+
+        &lt;?php
+                $this-&gt;extra_tablenav( $which );
+                $this-&gt;pagination( $which );
+        ?&gt;
+
+                &lt;br class=&quot;clear&quot;&gt;
+        &lt;/div&gt;
+
+        &lt;br class=&quot;clear&quot;&gt;
+&lt;?php
+        }
+
+        /**
+         * Extra controls to be displayed between bulk actions and pagination
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function extra_tablenav( $which ) {}
+
+        /**
+         * Generate the &lt;tbody&gt; part of the table
+         *
+         * @since 3.1.0
+         * @access protected
+         */
+        function display_rows() {
+                die( 'function WP_List_Table::display_rows() must be over-ridden in a sub-class.' );
+        }
+
+        /**
+         * Handle an incoming ajax request ( called from admin-ajax.php )
+         *
+         * @access public
+         */
+        function ajax_response() {
+                extract( $this-&gt;_args );
+                extract( $this-&gt;_pagination_args );
+
+                ob_start();
+                $this-&gt;display_rows();
+                $rows = ob_get_clean();
+
+                die( json_encode( array(
+                        'rows' =&gt; $rows,
+                        'total_items' =&gt; sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ),
+                        'total_pages' =&gt; $total_pages
+                ) ) );
+        }
+
+        /**
+         * Send required variables to JavaScript land
+         *
+         * @access private
+         */
+        function _js_vars() {
+                extract( $this-&gt;_args );
+
+                $class = get_class( $this );
+
+                printf( &quot;&lt;script type='text/javascript'&gt;list_args = %s;&lt;/script&gt;\n&quot;,
+                        json_encode( compact( 'screen', 'class' ) )
+                );
+        }
+}
</ins><span class="cx">Property changes on: trunk/wp-admin/includes/list-table.php
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpadminincludesmiscphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/misc.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/misc.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/includes/misc.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -344,6 +344,7 @@
</span><span class="cx">                 switch ( $map_option ) {
</span><span class="cx">                         case 'edit_per_page':
</span><span class="cx">                         case 'ms_sites_per_page':
</span><ins>+                        case 'users_per_page':
</ins><span class="cx">                         case 'ms_users_per_page':
</span><span class="cx">                         case 'edit_comments_per_page':
</span><span class="cx">                         case 'upload_per_page':
</span></span></pre></div>
<a id="trunkwpadminincludesplugininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/plugin-install.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/plugin-install.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/includes/plugin-install.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -78,48 +78,7 @@
</span><span class="cx"> 
</span><span class="cx">         return $tags;
</span><span class="cx"> }
</span><del>-add_action('install_plugins_search', 'install_search', 10, 1);
</del><span class="cx"> 
</span><del>-/**
- * Display search results and display as tag cloud.
- *
- * @since 2.7.0
- *
- * @param string $page
- */
-function install_search($page) {
-        $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
-        $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
-
-        $args = array();
-
-        switch( $type ){
-                case 'tag':
-                        $args['tag'] = sanitize_title_with_dashes($term);
-                        break;
-                case 'term':
-                        $args['search'] = $term;
-                        break;
-                case 'author':
-                        $args['author'] = $term;
-                        break;
-        }
-
-        $args['page'] = $page;
-
-        $api = plugins_api('query_plugins', $args);
-
-        if ( is_wp_error($api) )
-                wp_die($api);
-
-        add_action('install_plugins_table_header', 'install_search_form');
-
-        display_plugins_table($api-&gt;plugins, $api-&gt;info['page'], $api-&gt;info['pages']);
-
-        return;
-}
-
-add_action('install_plugins_dashboard', 'install_dashboard');
</del><span class="cx"> function install_dashboard() {
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the &lt;a href=&quot;http://wordpress.org/extend/plugins/&quot;&gt;WordPress Plugin Directory&lt;/a&gt; or upload a plugin in .zip format via this page.') ?&gt;&lt;/p&gt;
</span><span class="lines">@@ -150,6 +109,7 @@
</span><span class="cx">         }
</span><span class="cx">         echo '&lt;/p&gt;&lt;br class=&quot;clear&quot; /&gt;';
</span><span class="cx"> }
</span><ins>+add_action('install_plugins_dashboard', 'install_dashboard');
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Display search form for searching plugins.
</span><span class="lines">@@ -160,7 +120,8 @@
</span><span class="cx">         $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
</span><span class="cx">         $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
</span><span class="cx"> 
</span><del>-        ?&gt;&lt;form id=&quot;search-plugins&quot; method=&quot;post&quot; action=&quot;&lt;?php echo admin_url('plugin-install.php?tab=search'); ?&gt;&quot;&gt;
</del><ins>+        ?&gt;&lt;form id=&quot;search-plugins&quot; method=&quot;get&quot; action=&quot;&quot;&gt;
+                &lt;input type=&quot;hidden&quot; name=&quot;tab&quot; value=&quot;search&quot; /&gt;
</ins><span class="cx">                 &lt;select name=&quot;type&quot; id=&quot;typeselector&quot;&gt;
</span><span class="cx">                         &lt;option value=&quot;term&quot;&lt;?php selected('term', $type) ?&gt;&gt;&lt;?php _e('Term'); ?&gt;&lt;/option&gt;
</span><span class="cx">                         &lt;option value=&quot;author&quot;&lt;?php selected('author', $type) ?&gt;&gt;&lt;?php _e('Author'); ?&gt;&lt;/option&gt;
</span><span class="lines">@@ -168,44 +129,11 @@
</span><span class="cx">                 &lt;/select&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr($term) ?&gt;&quot; /&gt;
</span><span class="cx">                 &lt;label class=&quot;screen-reader-text&quot; for=&quot;plugin-search-input&quot;&gt;&lt;?php _e('Search Plugins'); ?&gt;&lt;/label&gt;
</span><del>-                &lt;input type=&quot;submit&quot; id=&quot;plugin-search-input&quot; name=&quot;search&quot; value=&quot;&lt;?php esc_attr_e('Search Plugins'); ?&gt;&quot; class=&quot;button&quot; /&gt;
</del><ins>+                &lt;input type=&quot;submit&quot; id=&quot;plugin-search-input&quot; value=&quot;&lt;?php esc_attr_e('Search Plugins'); ?&gt;&quot; class=&quot;button&quot; /&gt;
</ins><span class="cx">         &lt;/form&gt;&lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-add_action('install_plugins_featured', 'install_featured', 10, 1);
</del><span class="cx"> /**
</span><del>- * Display featured plugins.
- *
- * @since 2.7.0
- *
- * @param string $page
- */
-function install_featured($page = 1) {
-        $args = array('browse' =&gt; 'featured', 'page' =&gt; $page);
-        $api = plugins_api('query_plugins', $args);
-        if ( is_wp_error($api) )
-                wp_die($api-&gt;get_error_message() . '&lt;/p&gt; &lt;p class=&quot;hide-if-no-js&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;document.location.reload(); return false;&quot;&gt;' . __('Try again') . '&lt;/a&gt;');
-        display_plugins_table($api-&gt;plugins, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-add_action('install_plugins_popular', 'install_popular', 10, 1);
-/**
- * Display popular plugins.
- *
- * @since 2.7.0
- *
- * @param string $page
- */
-function install_popular($page = 1) {
-        $args = array('browse' =&gt; 'popular', 'page' =&gt; $page);
-        $api = plugins_api('query_plugins', $args);
-        if ( is_wp_error($api) )
-                wp_die($api-&gt;get_error_message() . '&lt;/p&gt; &lt;p class=&quot;hide-if-no-js&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;document.location.reload(); return false;&quot;&gt;' . __('Try again') . '&lt;/a&gt;');
-        display_plugins_table($api-&gt;plugins, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-add_action('install_plugins_upload', 'install_plugins_upload', 10, 1);
-/**
</del><span class="cx">  * Upload from zip
</span><span class="cx">  * @since 2.8.0
</span><span class="cx">  *
</span><span class="lines">@@ -223,194 +151,27 @@
</span><span class="cx">         &lt;/form&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><ins>+add_action('install_plugins_upload', 'install_plugins_upload', 10, 1);
</ins><span class="cx"> 
</span><del>-add_action('install_plugins_new', 'install_new', 10, 1);
</del><span class="cx"> /**
</span><del>- * Display new plugins.
- *
- * @since 2.7.0
- *
- * @param string $page
- */
-function install_new($page = 1) {
-        $args = array('browse' =&gt; 'new', 'page' =&gt; $page);
-        $api = plugins_api('query_plugins', $args);
-        if ( is_wp_error($api) )
-                wp_die($api-&gt;get_error_message() . '&lt;/p&gt; &lt;p class=&quot;hide-if-no-js&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;document.location.reload(); return false;&quot;&gt;' . __('Try again') . '&lt;/a&gt;');
-        display_plugins_table($api-&gt;plugins, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-add_action('install_plugins_updated', 'install_updated', 10, 1);
-
-
-/**
- * Display recently updated plugins.
- *
- * @since 2.7.0
- *
- * @param string $page
- */
-function install_updated($page = 1) {
-        $args = array('browse' =&gt; 'updated', 'page' =&gt; $page);
-        $api = plugins_api('query_plugins', $args);
-        if ( is_wp_error($api) )
-                wp_die($api-&gt;get_error_message() . '&lt;/p&gt; &lt;p class=&quot;hide-if-no-js&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;document.location.reload(); return false;&quot;&gt;' . __('Try again') . '&lt;/a&gt;');
-        display_plugins_table($api-&gt;plugins, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-/**
</del><span class="cx">  * Display plugin content based on plugin list.
</span><span class="cx">  *
</span><span class="cx">  * @since 2.7.0
</span><span class="cx">  *
</span><span class="cx">  * @param array $plugins List of plugins.
</span><del>- * @param string $page
- * @param int $totalpages Number of pages.
</del><ins>+ * @param int $total_plugins Number of plugins.
</ins><span class="cx">  */
</span><del>-function display_plugins_table($plugins, $page = 1, $totalpages = 1){
-        $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
-        $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
</del><ins>+function display_plugins_table() {
+        global $table;
</ins><span class="cx"> 
</span><del>-        $plugins_allowedtags = array('a' =&gt; array('href' =&gt; array(),'title' =&gt; array(), 'target' =&gt; array()),
-                                                                'abbr' =&gt; array('title' =&gt; array()),'acronym' =&gt; array('title' =&gt; array()),
-                                                                'code' =&gt; array(), 'pre' =&gt; array(), 'em' =&gt; array(),'strong' =&gt; array(),
-                                                                'ul' =&gt; array(), 'ol' =&gt; array(), 'li' =&gt; array(), 'p' =&gt; array(), 'br' =&gt; array());
-
-?&gt;
-        &lt;div class=&quot;tablenav&quot;&gt;
-                &lt;div class=&quot;alignleft actions&quot;&gt;
-                &lt;?php do_action('install_plugins_table_header'); ?&gt;
-                &lt;/div&gt;
-                &lt;?php
-                        $url = esc_url($_SERVER['REQUEST_URI']);
-                        if ( ! empty($term) )
-                                $url = add_query_arg('s', $term, $url);
-                        if ( ! empty($type) )
-                                $url = add_query_arg('type', $type, $url);
-
-                        $page_links = paginate_links( array(
-                                'base' =&gt; add_query_arg('paged', '%#%', $url),
-                                'format' =&gt; '',
-                                'prev_text' =&gt; __('&amp;laquo;'),
-                                'next_text' =&gt; __('&amp;raquo;'),
-                                'total' =&gt; $totalpages,
-                                'current' =&gt; $page
-                        ));
-
-                        if ( $page_links )
-                                echo &quot;\t\t&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
-?&gt;
-                &lt;br class=&quot;clear&quot; /&gt;
-        &lt;/div&gt;
-        &lt;table class=&quot;widefat&quot; id=&quot;install-plugins&quot; cellspacing=&quot;0&quot;&gt;
-                &lt;thead&gt;
-                        &lt;tr&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;name&quot;&gt;&lt;?php _e('Name'); ?&gt;&lt;/th&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Version'); ?&gt;&lt;/th&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Rating'); ?&gt;&lt;/th&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;desc&quot;&gt;&lt;?php _e('Description'); ?&gt;&lt;/th&gt;
-                        &lt;/tr&gt;
-                &lt;/thead&gt;
-
-                &lt;tfoot&gt;
-                        &lt;tr&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;name&quot;&gt;&lt;?php _e('Name'); ?&gt;&lt;/th&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Version'); ?&gt;&lt;/th&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Rating'); ?&gt;&lt;/th&gt;
-                                &lt;th scope=&quot;col&quot; class=&quot;desc&quot;&gt;&lt;?php _e('Description'); ?&gt;&lt;/th&gt;
-                        &lt;/tr&gt;
-                &lt;/tfoot&gt;
-
-                &lt;tbody class=&quot;plugins&quot;&gt;
-                &lt;?php
-                        if ( empty($plugins) )
-                                echo '&lt;tr&gt;&lt;td colspan=&quot;5&quot;&gt;', __('No plugins match your request.'), '&lt;/td&gt;&lt;/tr&gt;';
-
-                        foreach ( (array) $plugins as $plugin ){
-                                if ( is_object($plugin) )
-                                        $plugin = (array) $plugin;
-
-                                $title = wp_kses($plugin['name'], $plugins_allowedtags);
-                                //Limit description to 400char, and remove any HTML.
-                                $description = strip_tags($plugin['description']);
-                                if ( strlen($description) &gt; 400 )
-                                        $description = mb_substr($description, 0, 400) . '&amp;#8230;';
-                                //remove any trailing entities
-                                $description = preg_replace('/&amp;[^;\s]{0,6}$/', '', $description);
-                                //strip leading/trailing &amp; multiple consecutive lines
-                                $description = trim($description);
-                                $description = preg_replace(&quot;|(\r?\n)+|&quot;, &quot;\n&quot;, $description);
-                                //\n =&gt; &lt;br&gt;
-                                $description = nl2br($description);
-                                $version = wp_kses($plugin['version'], $plugins_allowedtags);
-
-                                $name = strip_tags($title . ' ' . $version);
-
-                                $author = $plugin['author'];
-                                if ( ! empty($plugin['author']) )
-                                        $author = ' &lt;cite&gt;' . sprintf( __('By %s'), $author ) . '.&lt;/cite&gt;';
-
-                                $author = wp_kses($author, $plugins_allowedtags);
-
-                                $action_links = array();
-                                $action_links[] = '&lt;a href=&quot;' . admin_url('plugin-install.php?tab=plugin-information&amp;amp;plugin=' . $plugin['slug'] .
-                                                                        '&amp;amp;TB_iframe=true&amp;amp;width=600&amp;amp;height=550') . '&quot; class=&quot;thickbox&quot; title=&quot;' .
-                                                                        esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '&quot;&gt;' . __('Details') . '&lt;/a&gt;';
-
-                                if ( current_user_can('install_plugins') || current_user_can('update_plugins') ) {
-                                        $status = install_plugin_install_status($plugin);
-
-                                        switch ( $status['status'] ) {
-                                                case 'install':
-                                                        if ( $status['url'] )
-                                                                $action_links[] = '&lt;a class=&quot;install-now&quot; href=&quot;' . $status['url'] . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '&quot;&gt;' . __('Install Now') . '&lt;/a&gt;';
-                                                        break;
-                                                case 'update_available':
-                                                        if ( $status['url'] )
-                                                                $action_links[] = '&lt;a href=&quot;' . $status['url'] . '&quot; title=&quot;' . esc_attr( sprintf( __( 'Update to version %s' ), $status['version'] ) ) . '&quot;&gt;' . sprintf( __('Update Now'), $status['version'] ) . '&lt;/a&gt;';
-                                                        break;
-                                                case 'latest_installed':
-                                                case 'newer_installed':
-                                                        $action_links[] = '&lt;span title=&quot;' . esc_attr__( 'This plugin is already installed and is up to date' ) . ' &quot;&gt;' . __('Installed') . '&lt;/span&gt;';
-                                                        break;
-                                        }
-                                }
-
-                                $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
-                        ?&gt;
-                        &lt;tr&gt;
-                                &lt;td class=&quot;name&quot;&gt;&lt;strong&gt;&lt;?php echo $title; ?&gt;&lt;/strong&gt;
-                                        &lt;div class=&quot;action-links&quot;&gt;&lt;?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?&gt;&lt;/div&gt;
-                                &lt;/td&gt;
-                                &lt;td class=&quot;vers&quot;&gt;&lt;?php echo $version; ?&gt;&lt;/td&gt;
-                                &lt;td class=&quot;vers&quot;&gt;
-                                        &lt;div class=&quot;star-holder&quot; title=&quot;&lt;?php printf(_n('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?&gt;&quot;&gt;
-                                                &lt;div class=&quot;star star-rating&quot; style=&quot;width: &lt;?php echo esc_attr($plugin['rating']) ?&gt;px&quot;&gt;&lt;/div&gt;
-                                                &lt;div class=&quot;star star5&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url('images/star.gif'); ?&gt;&quot; alt=&quot;&lt;?php _e('5 stars') ?&gt;&quot; /&gt;&lt;/div&gt;
-                                                &lt;div class=&quot;star star4&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url('images/star.gif'); ?&gt;&quot; alt=&quot;&lt;?php _e('4 stars') ?&gt;&quot; /&gt;&lt;/div&gt;
-                                                &lt;div class=&quot;star star3&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url('images/star.gif'); ?&gt;&quot; alt=&quot;&lt;?php _e('3 stars') ?&gt;&quot; /&gt;&lt;/div&gt;
-                                                &lt;div class=&quot;star star2&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url('images/star.gif'); ?&gt;&quot; alt=&quot;&lt;?php _e('2 stars') ?&gt;&quot; /&gt;&lt;/div&gt;
-                                                &lt;div class=&quot;star star1&quot;&gt;&lt;img src=&quot;&lt;?php echo admin_url('images/star.gif'); ?&gt;&quot; alt=&quot;&lt;?php _e('1 star') ?&gt;&quot; /&gt;&lt;/div&gt;
-                                        &lt;/div&gt;
-                                &lt;/td&gt;
-                                &lt;td class=&quot;desc&quot;&gt;&lt;?php echo $description, $author; ?&gt;&lt;/td&gt;
-                        &lt;/tr&gt;
-                        &lt;?php
-                        }
-                        ?&gt;
-                &lt;/tbody&gt;
-        &lt;/table&gt;
-
-        &lt;div class=&quot;tablenav&quot;&gt;
-                &lt;?php if ( $page_links )
-                                echo &quot;\t\t&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;; ?&gt;
-                &lt;br class=&quot;clear&quot; /&gt;
-        &lt;/div&gt;
-
-&lt;?php
</del><ins>+        $table-&gt;display();
</ins><span class="cx"> }
</span><ins>+add_action('install_plugins_search', 'display_plugins_table');
+add_action('install_plugins_featured', 'display_plugins_table');
+add_action('install_plugins_popular', 'display_plugins_table');
+add_action('install_plugins_new', 'display_plugins_table');
+add_action('install_plugins_updated', 'display_plugins_table');
</ins><span class="cx"> 
</span><del>-add_action('install_plugins_pre_plugin-information', 'install_plugin_information');
-
</del><span class="cx"> /**
</span><span class="cx">  * Determine the status we can perform on a plugin.
</span><span class="cx">  *
</span><span class="lines">@@ -608,3 +369,5 @@
</span><span class="cx">         iframe_footer();
</span><span class="cx">         exit;
</span><span class="cx"> }
</span><ins>+add_action('install_plugins_pre_plugin-information', 'install_plugin_information');
+
</ins></span></pre></div>
<a id="trunkwpadminincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/post.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/post.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/includes/post.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -880,17 +880,16 @@
</span><span class="cx">                 $perm = 'readable';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( isset($q['post_status']) &amp;&amp; 'pending' === $q['post_status'] ) {
-                $order = 'ASC';
</del><ins>+        if ( isset($q['orderby']) )
+                $orderby = $q['orderby'];
+        elseif ( isset($q['post_status']) &amp;&amp; in_array($q['post_status'], array('pending', 'draft')) )
</ins><span class="cx">                 $orderby = 'modified';
</span><del>-        } elseif ( isset($q['post_status']) &amp;&amp; 'draft' === $q['post_status'] ) {
-                $order = 'DESC';
-                $orderby = 'modified';
-        } else {
-                $order = 'DESC';
-                $orderby = 'date';
-        }
</del><span class="cx"> 
</span><ins>+        if ( isset($q['order']) )
+                $order = $q['order'];
+        elseif ( isset($q['post_status']) &amp;&amp; 'pending' == $q['post_status'] )
+                $order = 'ASC';
+
</ins><span class="cx">         $per_page = 'edit_' . $post_type . '_per_page';
</span><span class="cx">         $posts_per_page = (int) get_user_option( $per_page );
</span><span class="cx">         if ( empty( $posts_per_page ) || $posts_per_page &lt; 1 )
</span><span class="lines">@@ -902,7 +901,7 @@
</span><span class="cx">         $query = compact('post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page');
</span><span class="cx"> 
</span><span class="cx">         // Hierarchical types require special args.
</span><del>-        if ( is_post_type_hierarchical( $post_type ) ) {
</del><ins>+        if ( is_post_type_hierarchical( $post_type ) &amp;&amp; !isset($orderby) ) {
</ins><span class="cx">                 $query['orderby'] = 'menu_order title';
</span><span class="cx">                 $query['order'] = 'asc';
</span><span class="cx">                 $query['posts_per_page'] = -1;
</span><span class="lines">@@ -973,11 +972,21 @@
</span><span class="cx">         if ( isset($q['post_mime_type']) &amp;&amp; !array_intersect( (array) $q['post_mime_type'], array_keys($post_mime_types) ) )
</span><span class="cx">                 unset($q['post_mime_type']);
</span><span class="cx"> 
</span><ins>+        if ( isset($q['detached']) )
+                add_filter('posts_where', '_edit_attachments_query_helper');
+
</ins><span class="cx">         wp($q);
</span><span class="cx"> 
</span><ins>+        if ( isset($q['detached']) )
+                remove_filter('posts_where', '_edit_attachments_query_helper');
+
</ins><span class="cx">         return array($post_mime_types, $avail_post_mime_types);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function _edit_attachments_query_helper($where) {
+        return $where .= ' AND post_parent &lt; 1';
+}
+
</ins><span class="cx"> /**
</span><span class="cx">  * {@internal Missing Short Description}}
</span><span class="cx">  *
</span></span></pre></div>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/includes/template.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -8,170 +8,7 @@
</span><span class="cx">  * @subpackage Administration
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-/**
- * {@internal Missing Short Description}}
- *
- * @since 2.7
- *
- * Outputs the HTML for the hidden table rows used in Categories, Link Categories and Tags quick edit.
- *
- * @param string $type &quot;edit-tags&quot;, &quot;categoried&quot; or &quot;edit-link-categories&quot;
- * @param string $taxonomy The taxonomy of the row.
- * @return
- */
-function inline_edit_term_row($type, $taxonomy) {
</del><span class="cx"> 
</span><del>-        $tax = get_taxonomy($taxonomy);
-        if ( ! current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
-                return;
-
-        $columns = get_column_headers($type);
-        $hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($type) ) );
-        $col_count = count($columns) - count($hidden);
-        ?&gt;
-
-&lt;form method=&quot;get&quot; action=&quot;&quot;&gt;&lt;table style=&quot;display: none&quot;&gt;&lt;tbody id=&quot;inlineedit&quot;&gt;
-        &lt;tr id=&quot;inline-edit&quot; class=&quot;inline-edit-row&quot; style=&quot;display: none&quot;&gt;&lt;td colspan=&quot;&lt;?php echo $col_count; ?&gt;&quot;&gt;
-
-                &lt;fieldset&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
-                        &lt;h4&gt;&lt;?php _e( 'Quick Edit' ); ?&gt;&lt;/h4&gt;
-
-                        &lt;label&gt;
-                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Name' ); ?&gt;&lt;/span&gt;
-                                &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; class=&quot;ptitle&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-&lt;?php if ( !is_multisite() ) { ?&gt;
-                        &lt;label&gt;
-                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Slug' ); ?&gt;&lt;/span&gt;
-                                &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;slug&quot; class=&quot;ptitle&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-&lt;?php } ?&gt;
-
-                &lt;/div&gt;&lt;/fieldset&gt;
-
-&lt;?php
-
-        $core_columns = array( 'cb' =&gt; true, 'description' =&gt; true, 'name' =&gt; true, 'slug' =&gt; true, 'posts' =&gt; true );
-
-        foreach ( $columns as $column_name =&gt; $column_display_name ) {
-                if ( isset( $core_columns[$column_name] ) )
-                        continue;
-                do_action( 'quick_edit_custom_box', $column_name, $type, $taxonomy );
-        }
-
-?&gt;
-
-        &lt;p class=&quot;inline-edit-save submit&quot;&gt;
-                &lt;a accesskey=&quot;c&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php _e('Cancel'); ?&gt;&quot; class=&quot;cancel button-secondary alignleft&quot;&gt;&lt;?php _e('Cancel'); ?&gt;&lt;/a&gt;
-                &lt;?php $update_text = $tax-&gt;labels-&gt;update_item; ?&gt;
-                &lt;a accesskey=&quot;s&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php echo esc_attr( $update_text ); ?&gt;&quot; class=&quot;save button-primary alignright&quot;&gt;&lt;?php echo $update_text; ?&gt;&lt;/a&gt;
-                &lt;img class=&quot;waiting&quot; style=&quot;display:none;&quot; src=&quot;&lt;?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?&gt;&quot; alt=&quot;&quot; /&gt;
-                &lt;span class=&quot;error&quot; style=&quot;display:none;&quot;&gt;&lt;/span&gt;
-                &lt;?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;taxonomy&quot; value=&quot;&lt;?php echo esc_attr( $tax-&gt;name ); ?&gt;&quot; /&gt;
-                &lt;br class=&quot;clear&quot; /&gt;
-        &lt;/p&gt;
-        &lt;/td&gt;&lt;/tr&gt;
-        &lt;/tbody&gt;&lt;/table&gt;&lt;/form&gt;
-&lt;?php
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $category
- * @param unknown_type $name_override
- * @return unknown
- */
-function link_cat_row( $category, $name_override = false ) {
-        static $row_class = '';
-
-        if ( !$category = get_term( $category, 'link_category', OBJECT, 'display' ) )
-                return false;
-        if ( is_wp_error( $category ) )
-                return $category;
-
-        $default_cat_id = (int) get_option( 'default_link_category' );
-        $name = ( $name_override ? $name_override : $category-&gt;name );
-        $edit_link = &quot;link-category.php?action=edit&amp;amp;cat_ID=$category-&gt;term_id&quot;;
-        if ( current_user_can( 'manage_categories' ) ) {
-                $edit = &quot;&lt;a class='row-title' href='$edit_link' title='&quot; . esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $category-&gt;name)) . &quot;'&gt;$name&lt;/a&gt;&lt;br /&gt;&quot;;
-                $actions = array();
-                $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
-                if ( $default_cat_id != $category-&gt;term_id )
-                        $actions['delete'] = &quot;&lt;a class='delete:the-list:link-cat-$category-&gt;term_id submitdelete' href='&quot; . wp_nonce_url(&quot;link-category.php?action=delete&amp;amp;cat_ID=$category-&gt;term_id&quot;, 'delete-link-category_' . $category-&gt;term_id) . &quot;'&gt;&quot; . __('Delete') . '&lt;/a&gt;';
-                $actions = apply_filters('link_cat_row_actions', $actions, $category);
-                $action_count = count($actions);
-                $i = 0;
-                $edit .= '&lt;div class=&quot;row-actions&quot;&gt;';
-                foreach ( $actions as $action =&gt; $link ) {
-                        ++$i;
-                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                        $edit .= &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                }
-                $edit .= '&lt;/div&gt;';
-        } else {
-                $edit = $name;
-        }
-
-        $row_class = 'alternate' == $row_class ? '' : 'alternate';
-        $qe_data = get_term_to_edit($category-&gt;term_id, 'link_category');
-
-        $category-&gt;count = number_format_i18n( $category-&gt;count );
-        $count = ( $category-&gt;count &gt; 0 ) ? &quot;&lt;a href='link-manager.php?cat_id=$category-&gt;term_id'&gt;$category-&gt;count&lt;/a&gt;&quot; : $category-&gt;count;
-        $output = &quot;&lt;tr id='link-cat-$category-&gt;term_id' class='iedit $row_class'&gt;&quot;;
-        $columns = get_column_headers('edit-link-categories');
-        $hidden = get_hidden_columns('edit-link-categories');
-        foreach ( $columns as $column_name =&gt; $column_display_name ) {
-                $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
-
-                $style = '';
-                if ( in_array($column_name, $hidden) )
-                        $style = ' style=&quot;display:none;&quot;';
-
-                $attributes = &quot;$class$style&quot;;
-
-                switch ($column_name) {
-                        case 'cb':
-                                $output .= &quot;&lt;th scope='row' class='check-column'&gt;&quot;;
-                                if ( absint( get_option( 'default_link_category' ) ) != $category-&gt;term_id ) {
-                                        $output .= &quot;&lt;input type='checkbox' name='delete[]' value='$category-&gt;term_id' /&gt;&quot;;
-                                } else {
-                                        $output .= &quot;&amp;nbsp;&quot;;
-                                }
-                                $output .= &quot;&lt;/th&gt;&quot;;
-                                break;
-                        case 'name':
-                                $output .= &quot;&lt;td $attributes&gt;$edit&quot;;
-                                $output .= '&lt;div class=&quot;hidden&quot; id=&quot;inline_' . $qe_data-&gt;term_id . '&quot;&gt;';
-                                $output .= '&lt;div class=&quot;name&quot;&gt;' . $qe_data-&gt;name . '&lt;/div&gt;';
-                                $output .= '&lt;div class=&quot;slug&quot;&gt;' . apply_filters('editable_slug', $qe_data-&gt;slug) . '&lt;/div&gt;';
-                                $output .= '&lt;div class=&quot;cat_parent&quot;&gt;' . $qe_data-&gt;parent . '&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;';
-                                break;
-                        case 'description':
-                                $output .= &quot;&lt;td $attributes&gt;$category-&gt;description&lt;/td&gt;&quot;;
-                                break;
-                        case 'slug':
-                                $output .= &quot;&lt;td $attributes&gt;&quot; . apply_filters('editable_slug', $category-&gt;slug) . '&lt;/td&gt;';
-                                break;
-                        case 'links':
-                                $attributes = 'class=&quot;links column-links num&quot;' . $style;
-                                $output .= &quot;&lt;td $attributes&gt;$count&lt;/td&gt;&quot;;
-                                break;
-                        default:
-                                $output .= &quot;&lt;td $attributes&gt;&quot;;
-                                $output .= apply_filters('manage_link_categories_custom_column', '', $column_name, $category-&gt;term_id);
-                                $output .= &quot;&lt;/td&gt;&quot;;
-                }
-        }
-        $output .= '&lt;/tr&gt;';
-
-        return $output;
-}
-
</del><span class="cx"> //
</span><span class="cx"> // Category Checklists
</span><span class="cx"> //
</span><span class="lines">@@ -233,7 +70,7 @@
</span><span class="cx">                         'popular_cats' =&gt; $popular_cats,
</span><span class="cx">                         'walker' =&gt; $walker,
</span><span class="cx">                         'checked_ontop' =&gt; $checked_ontop
</span><del>-        ));
</del><ins>+  ));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -288,7 +125,7 @@
</span><span class="cx">                 $checked_categories = array();
</span><span class="cx">                 $keys = array_keys( $categories );
</span><span class="cx"> 
</span><del>-                foreach ( $keys as $k ) {
</del><ins>+                foreach( $keys as $k ) {
</ins><span class="cx">                         if ( in_array( $categories[$k]-&gt;term_id, $args['selected_cats'] ) ) {
</span><span class="cx">                                 $checked_categories[] = $categories[$k];
</span><span class="cx">                                 unset( $categories[$k] );
</span><span class="lines">@@ -340,7 +177,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;li id=&quot;&lt;?php echo $id; ?&gt;&quot; class=&quot;popular-category&quot;&gt;
</span><span class="cx">                         &lt;label class=&quot;selectit&quot;&gt;
</span><del>-                        &lt;input id=&quot;in-&lt;?php echo $id; ?&gt;&quot; type=&quot;checkbox&quot; &lt;?php echo $checked; ?&gt; value=&quot;&lt;?php echo (int) $term-&gt;term_id; ?&gt;&quot; &lt;?php echo $disabled; ?&gt;/&gt;
</del><ins>+                        &lt;input id=&quot;in-&lt;?php echo $id; ?&gt;&quot; type=&quot;checkbox&quot; &lt;?php echo $checked; ?&gt; value=&quot;&lt;?php echo (int) $term-&gt;term_id; ?&gt;&quot; &lt;?php echo $disabled ?&gt;/&gt;
</ins><span class="cx">                                 &lt;?php echo esc_html( apply_filters( 'the_category', $term-&gt;name ) ); ?&gt;
</span><span class="cx">                         &lt;/label&gt;
</span><span class="cx">                 &lt;/li&gt;
</span><span class="lines">@@ -382,795 +219,6 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// Tag stuff
-
-// Returns a single tag row (see tag_rows below)
-// Note: this is also used in admin-ajax.php!
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $tag
- * @param unknown_type $class
- * @return unknown
- */
-function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) {
-                global $post_type, $current_screen;
-                static $row_class = '';
-                $row_class = ($row_class == '' ? ' class=&quot;alternate&quot;' : '');
-
-                $count = number_format_i18n( $tag-&gt;count );
-                $tax = get_taxonomy($taxonomy);
-
-                if ( 'post_tag' == $taxonomy ) {
-                        $tagsel = 'tag';
-                } elseif ( 'category' == $taxonomy ) {
-                        $tagsel = 'category_name';
-                } elseif ( ! empty($tax-&gt;query_var) ) {
-                        $tagsel = $tax-&gt;query_var;
-                } else {
-                        $tagsel = $taxonomy;
-                }
-
-                $pad = str_repeat( '&amp;#8212; ', max(0, $level) );
-                $name = apply_filters( 'term_name', $pad . ' ' . $tag-&gt;name, $tag );
-                $qe_data = get_term($tag-&gt;term_id, $taxonomy, object, 'edit');
-                $edit_link = &quot;edit-tags.php?action=edit&amp;amp;taxonomy=$taxonomy&amp;amp;post_type=$post_type&amp;amp;tag_ID=$tag-&gt;term_id&quot;;
-
-                $out = '';
-                $out .= '&lt;tr id=&quot;tag-' . $tag-&gt;term_id . '&quot;' . $row_class . '&gt;';
-
-
-                $columns = get_column_headers($current_screen);
-                $hidden = get_hidden_columns($current_screen);
-                $default_term = get_option('default_' . $taxonomy);
-                foreach ( $columns as $column_name =&gt; $column_display_name ) {
-                        $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
-
-                        $style = '';
-                        if ( in_array($column_name, $hidden) )
-                                $style = ' style=&quot;display:none;&quot;';
-
-                        $attributes = &quot;$class$style&quot;;
-
-                        switch ($column_name) {
-                                case 'cb':
-                                        if ( current_user_can($tax-&gt;cap-&gt;delete_terms) &amp;&amp; $tag-&gt;term_id != $default_term )
-                                                $out .= '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt; &lt;input type=&quot;checkbox&quot; name=&quot;delete_tags[]&quot; value=&quot;' . $tag-&gt;term_id . '&quot; /&gt;&lt;/th&gt;';
-                                        else
-                                                $out .= '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&amp;nbsp;&lt;/th&gt;';
-                                        break;
-                                case 'name':
-                                        $out .= '&lt;td ' . $attributes . '&gt;&lt;strong&gt;&lt;a class=&quot;row-title&quot; href=&quot;' . $edit_link . '&quot; title=&quot;' . esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $name)) . '&quot;&gt;' . $name . '&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;';
-                                        $actions = array();
-                                        if ( current_user_can($tax-&gt;cap-&gt;edit_terms) ) {
-                                                $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                                                $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
-                                        }
-                                        if ( current_user_can($tax-&gt;cap-&gt;delete_terms) &amp;&amp; $tag-&gt;term_id != $default_term )
-                                                $actions['delete'] = &quot;&lt;a class='delete-tag' href='&quot; . wp_nonce_url(&quot;edit-tags.php?action=delete&amp;amp;taxonomy=$taxonomy&amp;amp;tag_ID=$tag-&gt;term_id&quot;, 'delete-tag_' . $tag-&gt;term_id) . &quot;'&gt;&quot; . __('Delete') . '&lt;/a&gt;';
-
-                                        $actions = apply_filters('tag_row_actions', $actions, $tag);
-                                        $actions = apply_filters(&quot;${taxonomy}_row_actions&quot;, $actions, $tag);
-
-                                        $action_count = count($actions);
-                                        $i = 0;
-                                        $out .= '&lt;div class=&quot;row-actions&quot;&gt;';
-                                        foreach ( $actions as $action =&gt; $link ) {
-                                                ++$i;
-                                                ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                                                $out .= &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                                        }
-                                        $out .= '&lt;/div&gt;';
-                                        $out .= '&lt;div class=&quot;hidden&quot; id=&quot;inline_' . $qe_data-&gt;term_id . '&quot;&gt;';
-                                        $out .= '&lt;div class=&quot;name&quot;&gt;' . $qe_data-&gt;name . '&lt;/div&gt;';
-                                        $out .= '&lt;div class=&quot;slug&quot;&gt;' . apply_filters('editable_slug', $qe_data-&gt;slug) . '&lt;/div&gt;';
-                                        $out .= '&lt;div class=&quot;parent&quot;&gt;' . $qe_data-&gt;parent . '&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;';
-                                        break;
-                                case 'description':
-                                        $out .= &quot;&lt;td $attributes&gt;$tag-&gt;description&lt;/td&gt;&quot;;
-                                        break;
-                                case 'slug':
-                                        $out .= &quot;&lt;td $attributes&gt;&quot; . apply_filters('editable_slug', $tag-&gt;slug) . '&lt;/td&gt;';
-                                        break;
-                                case 'posts':
-                                        $attributes = 'class=&quot;posts column-posts num&quot;' . $style;
-                                        $out .= &quot;&lt;td $attributes&gt;&lt;a href='edit.php?$tagsel=$tag-&gt;slug&amp;amp;post_type=$post_type'&gt;$count&lt;/a&gt;&lt;/td&gt;&quot;;
-                                        break;
-                                default:
-                                        $out .= &quot;&lt;td $attributes&gt;&quot;;
-                                        $out .= apply_filters(&quot;manage_${taxonomy}_custom_column&quot;, '', $column_name, $tag-&gt;term_id);
-                                        $out .= &quot;&lt;/td&gt;&quot;;
-                        }
-                }
-
-                $out .= &quot;&lt;/tr&gt;\n&quot;;
-
-                return $out;
-}
-
-// Outputs appropriate rows for the Nth page of the Tag Management screen,
-// assuming M tags displayed at a time on the page
-// Returns the number of tags displayed
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $page
- * @param unknown_type $pagesize
- * @param unknown_type $searchterms
- * @return unknown
- */
-function tag_rows( $page = 1, $pagesize = 20, $searchterms = '', $taxonomy = 'post_tag' ) {
-
-        // Get a page worth of tags
-        $start = ($page - 1) * $pagesize;
-
-        $args = array('offset' =&gt; $start, 'number' =&gt; $pagesize, 'hide_empty' =&gt; 0);
-
-        if ( !empty( $searchterms ) )
-                $args['search'] = $searchterms;
-
-        // convert it to table rows
-        $out = '';
-        $count = 0;
-        if ( is_taxonomy_hierarchical($taxonomy) ) {
-                // We'll need the full set of terms then.
-                $args['number'] = $args['offset'] = 0;
-
-                $terms = get_terms( $taxonomy, $args );
-                if ( !empty( $searchterms ) ) // Ignore children on searches.
-                        $children = array();
-                else
-                        $children = _get_term_hierarchy($taxonomy);
-
-                // Some funky recursion to get the job done(Paging &amp; parents mainly) is contained within, Skip it for non-hierarchical taxonomies for performance sake
-                $out .= _term_rows($taxonomy, $terms, $children, $page, $pagesize, $count);
-        } else {
-                $terms = get_terms( $taxonomy, $args );
-                foreach ( $terms as $term )
-                        $out .= _tag_row( $term, 0, $taxonomy );
-                $count = $pagesize; // Only displaying a single page.
-        }
-
-        echo $out;
-        return $count;
-}
-
-function _term_rows( $taxonomy, $terms, &amp;$children, $page = 1, $per_page = 20, &amp;$count, $parent = 0, $level = 0 ) {
-
-        $start = ($page - 1) * $per_page;
-        $end = $start + $per_page;
-
-        $output = '';
-        foreach ( $terms as $key =&gt; $term ) {
-
-                if ( $count &gt;= $end )
-                        break;
-
-                if ( $term-&gt;parent != $parent &amp;&amp; empty($_GET['s']) )
-                        continue;
-
-                // If the page starts in a subtree, print the parents.
-                if ( $count == $start &amp;&amp; $term-&gt;parent &gt; 0 &amp;&amp; empty($_GET['s']) ) {
-                        $my_parents = $parent_ids = array();
-                        $p = $term-&gt;parent;
-                        while ( $p ) {
-                                $my_parent = get_term( $p, $taxonomy );
-                                $my_parents[] = $my_parent;
-                                $p = $my_parent-&gt;parent;
-                                if ( in_array($p, $parent_ids) ) // Prevent parent loops.
-                                        break;
-                                $parent_ids[] = $p;
-                        }
-                        unset($parent_ids);
-
-                        $num_parents = count($my_parents);
-                        while ( $my_parent = array_pop($my_parents) ) {
-                                $output .= &quot;\t&quot; . _tag_row( $my_parent, $level - $num_parents, $taxonomy );
-                                $num_parents--;
-                        }
-                }
-
-                if ( $count &gt;= $start )
-                        $output .= &quot;\t&quot; . _tag_row( $term, $level, $taxonomy );
-
-                ++$count;
-
-                unset($terms[$key]);
-
-                if ( isset($children[$term-&gt;term_id]) &amp;&amp; empty($_GET['s']) )
-                        $output .= _term_rows( $taxonomy, $terms, $children, $page, $per_page, $count, $term-&gt;term_id, $level + 1 );
-        }
-
-        return $output;
-}
-
-// define the columns to display, the syntax is 'internal name' =&gt; 'display name'
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @return unknown
- */
-function wp_manage_posts_columns( $screen = '') {
-        if ( empty($screen) )
-                $post_type = 'post';
-        else
-                $post_type = $screen-&gt;post_type;
-
-        $posts_columns = array();
-        $posts_columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
-        /* translators: manage posts column name */
-        $posts_columns['title'] = _x('Title', 'column name');
-        $posts_columns['author'] = __('Author');
-        if ( empty($post_type) || is_object_in_taxonomy($post_type, 'category') )
-                $posts_columns['categories'] = __('Categories');
-        if ( empty($post_type) || is_object_in_taxonomy($post_type, 'post_tag') )
-                $posts_columns['tags'] = __('Tags');
-        $post_status = !empty($_REQUEST['post_status']) ? $_REQUEST['post_status'] : 'all';
-        if ( !in_array( $post_status, array('pending', 'draft', 'future') ) &amp;&amp; ( empty($post_type) || post_type_supports($post_type, 'comments') ) )
-                $posts_columns['comments'] = '&lt;div class=&quot;vers&quot;&gt;&lt;img alt=&quot;Comments&quot; src=&quot;' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '&quot; /&gt;&lt;/div&gt;';
-        $posts_columns['date'] = __('Date');
-
-        if ( 'page' == $post_type )
-                $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
-        else
-                $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
-        $posts_columns = apply_filters( &quot;manage_{$post_type}_posts_columns&quot;, $posts_columns );
-
-        return $posts_columns;
-}
-
-// define the columns to display, the syntax is 'internal name' =&gt; 'display name'
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @return unknown
- */
-function wp_manage_media_columns() {
-        $posts_columns = array();
-        $posts_columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
-        $posts_columns['icon'] = '';
-        /* translators: column name */
-        $posts_columns['media'] = _x('File', 'column name');
-        $posts_columns['author'] = __('Author');
-        //$posts_columns['tags'] = _x('Tags', 'column name');
-        /* translators: column name */
-        $posts_columns['parent'] = _x('Attached to', 'column name');
-        $posts_columns['comments'] = '&lt;div class=&quot;vers&quot;&gt;&lt;img alt=&quot;Comments&quot; src=&quot;' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '&quot; /&gt;&lt;/div&gt;';
-        //$posts_columns['comments'] = __('Comments');
-        /* translators: column name */
-        $posts_columns['date'] = _x('Date', 'column name');
-        $posts_columns = apply_filters('manage_media_columns', $posts_columns);
-
-        return $posts_columns;
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @return unknown
- */
-function wp_manage_pages_columns() {
-        return wp_manage_posts_columns();
-}
-
-/**
- * Get the column headers for a screen
- *
- * @since unknown
- *
- * @param string|object $screen The screen you want the headers for
- * @return array Containing the headers in the format id =&gt; UI String
- */
-function get_column_headers($screen) {
-        global $_wp_column_headers;
-
-        if ( !isset($_wp_column_headers) )
-                $_wp_column_headers = array();
-
-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        // Store in static to avoid running filters on each call
-        if ( isset($_wp_column_headers[$screen-&gt;id]) )
-                return $_wp_column_headers[$screen-&gt;id];
-
-        switch ($screen-&gt;base) {
-                case 'edit':
-                         $_wp_column_headers[$screen-&gt;id] = wp_manage_posts_columns( $screen );
-                         break;
-                case 'edit-comments':
-                        $_wp_column_headers[$screen-&gt;id] = array(
-                                'cb' =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                                'author' =&gt; __('Author'),
-                                /* translators: column name */
-                                'comment' =&gt; _x('Comment', 'column name'),
-                                //'date' =&gt; __('Submitted'),
-                                'response' =&gt; __('In Response To')
-                        );
-
-                        break;
-                case 'link-manager':
-                        $_wp_column_headers[$screen-&gt;id] = array(
-                                'cb' =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                                'name' =&gt; __('Name'),
-                                'url' =&gt; __('URL'),
-                                'categories' =&gt; __('Categories'),
-                                'rel' =&gt; __('Relationship'),
-                                'visible' =&gt; __('Visible'),
-                                'rating' =&gt; __('Rating')
-                        );
-
-                        break;
-                case 'upload':
-                        $_wp_column_headers[$screen-&gt;id] = wp_manage_media_columns();
-                        break;
-                case 'categories':
-                        $_wp_column_headers[$screen-&gt;id] = array(
-                                'cb' =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                                'name' =&gt; __('Name'),
-                                'description' =&gt; __('Description'),
-                                'slug' =&gt; __('Slug'),
-                                'posts' =&gt; __('Posts')
-                        );
-
-                        break;
-                case 'edit-link-categories':
-                        $_wp_column_headers[$screen-&gt;id] = array(
-                                'cb' =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                                'name' =&gt; __('Name'),
-                                'description' =&gt; __('Description'),
-                                'slug' =&gt; __('Slug'),
-                                'links' =&gt; __('Links')
-                        );
-
-                        break;
-                case 'edit-tags':
-                        $_wp_column_headers[$screen-&gt;id] = array(
-                                'cb' =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                                'name' =&gt; __('Name'),
-                                'description' =&gt; __('Description'),
-                                'slug' =&gt; __('Slug'),
-                                'posts' =&gt; __('Posts')
-                        );
-
-                        break;
-                case 'users':
-                        $_wp_column_headers[$screen-&gt;id] = array(
-                                'cb' =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                                'username' =&gt; __('Username'),
-                                'name' =&gt; __('Name'),
-                                'email' =&gt; __('E-mail'),
-                                'role' =&gt; __('Role'),
-                                'posts' =&gt; __('Posts')
-                        );
-                        break;
-                default :
-                        $_wp_column_headers[$screen-&gt;id] = array();
-        }
-
-        $_wp_column_headers[$screen-&gt;id] = apply_filters('manage_' . $screen-&gt;id . '_columns', $_wp_column_headers[$screen-&gt;id]);
-        return $_wp_column_headers[$screen-&gt;id];
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $screen
- * @param unknown_type $id
- */
-function print_column_headers( $screen, $id = true ) {
-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        $columns = get_column_headers( $screen );
-        $hidden = get_hidden_columns($screen);
-        $styles = array();
-
-        foreach ( $columns as $column_key =&gt; $column_display_name ) {
-                $class = ' class=&quot;manage-column';
-
-                $class .= &quot; column-$column_key&quot;;
-
-                if ( 'cb' == $column_key )
-                        $class .= ' check-column';
-                elseif ( in_array($column_key, array('posts', 'comments', 'links')) )
-                        $class .= ' num';
-
-                $class .= '&quot;';
-
-                $style = '';
-                if ( in_array($column_key, $hidden) )
-                        $style = 'display:none;';
-
-                if ( isset($styles[$screen-&gt;id]) &amp;&amp; isset($styles[$screen-&gt;id][$column_key]) )
-                        $style .= ' ' . $styles[$screen&gt;id][$column_key];
-                $style = ' style=&quot;' . $style . '&quot;';
-?&gt;
-        &lt;th scope=&quot;col&quot; &lt;?php echo $id ? &quot;id=\&quot;$column_key\&quot;&quot; : &quot;&quot;; echo $class; echo $style; ?&gt;&gt;&lt;?php echo $column_display_name; ?&gt;&lt;/th&gt;
-&lt;?php }
-}
-
-/**
- * Register column headers for a particular screen. The header names will be listed in the Screen Options.
- *
- * @since 2.7.0
- *
- * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
- * @param array $columns An array of columns with column IDs as the keys and translated column names as the values
- * @see get_column_headers(), print_column_headers(), get_hidden_columns()
- */
-function register_column_headers($screen, $columns) {
-        global $_wp_column_headers;
-
-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        if ( !isset($_wp_column_headers) )
-                $_wp_column_headers = array();
-
-        $_wp_column_headers[$screen-&gt;id] = $columns;
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $screen
- */
-function get_hidden_columns($screen) {
-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        return (array) get_user_option( 'manage' . $screen-&gt;id. 'columnshidden' );
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * Outputs the quick edit and bulk edit table rows for posts and pages
- *
- * @since 2.7
- *
- * @param string $screen
- */
-function inline_edit_row( $screen ) {
-        global $mode;
-
-        if ( is_string($screen) ) {
-                $screen = array('id' =&gt; 'edit-' . $screen, 'base' =&gt; 'edit', 'post_type' =&gt; $screen );
-                $screen = (object) $screen;
-        }
-
-        $post = get_default_post_to_edit( $screen-&gt;post_type );
-        $post_type_object = get_post_type_object( $screen-&gt;post_type );
-
-        $taxonomy_names = get_object_taxonomies( $screen-&gt;post_type );
-        $hierarchical_taxonomies = array();
-        $flat_taxonomies = array();
-        foreach ( $taxonomy_names as $taxonomy_name ) {
-                $taxonomy = get_taxonomy( $taxonomy_name);
-
-                if ( !$taxonomy-&gt;show_ui )
-                        continue;
-
-                if ( $taxonomy-&gt;hierarchical )
-                        $hierarchical_taxonomies[] = $taxonomy;
-                else
-                        $flat_taxonomies[] = $taxonomy;
-        }
-
-        $columns = wp_manage_posts_columns($screen);
-        $hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($screen) ) );
-        $col_count = count($columns) - count($hidden);
-        $m = ( isset($mode) &amp;&amp; 'excerpt' == $mode ) ? 'excerpt' : 'list';
-        $can_publish = current_user_can($post_type_object-&gt;cap-&gt;publish_posts);
-        $core_columns = array( 'cb' =&gt; true, 'date' =&gt; true, 'title' =&gt; true, 'categories' =&gt; true, 'tags' =&gt; true, 'comments' =&gt; true, 'author' =&gt; true );
-
-?&gt;
-
-&lt;form method=&quot;get&quot; action=&quot;&quot;&gt;&lt;table style=&quot;display: none&quot;&gt;&lt;tbody id=&quot;inlineedit&quot;&gt;
-        &lt;?php
-        $hclass = count( $hierarchical_taxonomies ) ? 'post' : 'page';
-        $bulk = 0;
-        while ( $bulk &lt; 2 ) { ?&gt;
-
-        &lt;tr id=&quot;&lt;?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?&gt;&quot; class=&quot;inline-edit-row inline-edit-row-&lt;?php echo &quot;$hclass inline-edit-$screen-&gt;post_type &quot;;
-                echo $bulk ? &quot;bulk-edit-row bulk-edit-row-$hclass bulk-edit-$screen-&gt;post_type&quot; : &quot;quick-edit-row quick-edit-row-$hclass inline-edit-$screen-&gt;post_type&quot;;
-        ?&gt;&quot; style=&quot;display: none&quot;&gt;&lt;td colspan=&quot;&lt;?php echo $col_count; ?&gt;&quot;&gt;
-
-        &lt;fieldset class=&quot;inline-edit-col-left&quot;&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
-                &lt;h4&gt;&lt;?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?&gt;&lt;/h4&gt;
-
-
-&lt;?php
-
-if ( post_type_supports( $screen-&gt;post_type, 'title' ) ) :
-        if ( $bulk ) : ?&gt;
-                &lt;div id=&quot;bulk-title-div&quot;&gt;
-                        &lt;div id=&quot;bulk-titles&quot;&gt;&lt;/div&gt;
-                &lt;/div&gt;
-
-&lt;?php else : // $bulk ?&gt;
-
-                &lt;label&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Title' ); ?&gt;&lt;/span&gt;
-                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;post_title&quot; class=&quot;ptitle&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
-                &lt;/label&gt;
-
-                &lt;label&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Slug' ); ?&gt;&lt;/span&gt;
-                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;post_name&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
-                &lt;/label&gt;
-
-&lt;?php endif; // $bulk
-endif; // post_type_supports title ?&gt;
-
-&lt;?php if ( !$bulk ) : ?&gt;
-                &lt;label&gt;&lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Date' ); ?&gt;&lt;/span&gt;&lt;/label&gt;
-                &lt;div class=&quot;inline-edit-date&quot;&gt;
-                        &lt;?php touch_time(1, 1, 4, 1); ?&gt;
-                &lt;/div&gt;
-                &lt;br class=&quot;clear&quot; /&gt;
-
-&lt;?php endif; // $bulk
-
-        if ( post_type_supports( $screen-&gt;post_type, 'author' ) ) :
-                $authors = get_editable_user_ids( get_current_user_id(), true, $screen-&gt;post_type ); // TODO: ROLE SYSTEM
-                $authors_dropdown = '';
-                if ( $authors &amp;&amp; count( $authors ) &gt; 1 ) :
-                        $users_opt = array('include' =&gt; $authors, 'name' =&gt; 'post_author', 'class'=&gt; 'authors', 'multi' =&gt; 1, 'echo' =&gt; 0);
-                        if ( $bulk )
-                                $users_opt['show_option_none'] = __('&amp;mdash; No Change &amp;mdash;');
-                        $authors_dropdown  = '&lt;label&gt;';
-                        $authors_dropdown .= '&lt;span class=&quot;title&quot;&gt;' . __( 'Author' ) . '&lt;/span&gt;';
-                        $authors_dropdown .= wp_dropdown_users( $users_opt );
-                        $authors_dropdown .= '&lt;/label&gt;';
-
-                endif; // authors
-                if ( !$bulk ) // On bulk views, this is used further down
-                        echo $authors_dropdown;
-        endif; // post_type_supports author
-
-if ( !$bulk ) :
-?&gt;
-
-                &lt;div class=&quot;inline-edit-group&quot;&gt;
-                        &lt;label class=&quot;alignleft&quot;&gt;
-                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Password' ); ?&gt;&lt;/span&gt;
-                                &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;post_password&quot; class=&quot;inline-edit-password-input&quot; value=&quot;&quot; /&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-
-                        &lt;em style=&quot;margin:5px 10px 0 0&quot; class=&quot;alignleft&quot;&gt;
-                                &lt;?php
-                                /* translators: Between password field and private checkbox on post quick edit interface */
-                                echo __( '&amp;ndash;OR&amp;ndash;' );
-                                ?&gt;
-                        &lt;/em&gt;
-                        &lt;label class=&quot;alignleft inline-edit-private&quot;&gt;
-                                &lt;input type=&quot;checkbox&quot; name=&quot;keep_private&quot; value=&quot;private&quot; /&gt;
-                                &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php echo __('Private'); ?&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-                &lt;/div&gt;
-
-&lt;?php endif; ?&gt;
-
-        &lt;/div&gt;&lt;/fieldset&gt;
-
-&lt;?php if ( count($hierarchical_taxonomies) &amp;&amp; !$bulk ) : ?&gt;
-
-        &lt;fieldset class=&quot;inline-edit-col-center inline-edit-categories&quot;&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
-
-&lt;?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?&gt;
-
-                &lt;span class=&quot;title inline-edit-categories-label&quot;&gt;&lt;?php echo esc_html($taxonomy-&gt;labels-&gt;name); ?&gt;
-                        &lt;span class=&quot;catshow&quot;&gt;&lt;?php _e('[more]'); ?&gt;&lt;/span&gt;
-                        &lt;span class=&quot;cathide&quot; style=&quot;display:none;&quot;&gt;&lt;?php _e('[less]'); ?&gt;&lt;/span&gt;
-                &lt;/span&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;&lt;?php echo ( $taxonomy-&gt;name == 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr($taxonomy-&gt;name) . '][]'; ?&gt;&quot; value=&quot;0&quot; /&gt;
-                &lt;ul class=&quot;cat-checklist &lt;?php echo esc_attr($taxonomy-&gt;name)?&gt;-checklist&quot;&gt;
-                        &lt;?php wp_terms_checklist(null, array('taxonomy' =&gt; $taxonomy-&gt;name)); ?&gt;
-                &lt;/ul&gt;
-
-&lt;?php endforeach; //$hierarchical_taxonomies as $taxonomy ?&gt;
-
-        &lt;/div&gt;&lt;/fieldset&gt;
-
-&lt;?php endif; // count($hierarchical_taxonomies) &amp;&amp; !$bulk ?&gt;
-
-        &lt;fieldset class=&quot;inline-edit-col-right&quot;&gt;&lt;div class=&quot;inline-edit-col&quot;&gt;
-
-&lt;?php
-        if ( post_type_supports( $screen-&gt;post_type, 'author' ) &amp;&amp; $bulk )
-                echo $authors_dropdown;
-?&gt;
-
-&lt;?php if ( $post_type_object-&gt;hierarchical ) : ?&gt;
-
-                &lt;label&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Parent' ); ?&gt;&lt;/span&gt;
-&lt;?php
-        $dropdown_args = array('post_type' =&gt; $post_type_object-&gt;name, 'selected' =&gt; $post-&gt;post_parent, 'name' =&gt; 'post_parent', 'show_option_none' =&gt; __('Main Page (no parent)'), 'option_none_value' =&gt; 0, 'sort_column'=&gt; 'menu_order, post_title');
-        if ( $bulk )
-                $dropdown_args['show_option_no_change'] = __('&amp;mdash; No Change &amp;mdash;');
-        $dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
-        wp_dropdown_pages($dropdown_args);
-?&gt;
-                &lt;/label&gt;
-
-&lt;?php if ( post_type_supports( $screen-&gt;post_type, 'page-attributes' ) ) :
-                if ( !$bulk ) : ?&gt;
-
-                &lt;label&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Order' ); ?&gt;&lt;/span&gt;
-                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;menu_order&quot; class=&quot;inline-edit-menu-order-input&quot; value=&quot;&lt;?php echo $post-&gt;menu_order; ?&gt;&quot; /&gt;&lt;/span&gt;
-                &lt;/label&gt;
-
-&lt;?php        endif; // !$bulk ?&gt;
-
-                &lt;label&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Template' ); ?&gt;&lt;/span&gt;
-                        &lt;select name=&quot;page_template&quot;&gt;
-&lt;?php        if ( $bulk ) : ?&gt;
-                                &lt;option value=&quot;-1&quot;&gt;&lt;?php _e('&amp;mdash; No Change &amp;mdash;'); ?&gt;&lt;/option&gt;
-&lt;?php        endif; // $bulk ?&gt;
-                                &lt;option value=&quot;default&quot;&gt;&lt;?php _e( 'Default Template' ); ?&gt;&lt;/option&gt;
-                                &lt;?php page_template_dropdown(); ?&gt;
-                        &lt;/select&gt;
-                &lt;/label&gt;
-
-&lt;?php
-        endif; // post_type_supports page-attributes
-endif; // $post_type_object-&gt;hierarchical ?&gt;
-
-&lt;?php if ( count($flat_taxonomies) &amp;&amp; !$bulk ) : ?&gt;
-
-&lt;?php foreach ( $flat_taxonomies as $taxonomy ) : ?&gt;
-
-                &lt;label class=&quot;inline-edit-tags&quot;&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php echo esc_html($taxonomy-&gt;labels-&gt;name); ?&gt;&lt;/span&gt;
-                        &lt;textarea cols=&quot;22&quot; rows=&quot;1&quot; name=&quot;tax_input[&lt;?php echo esc_attr($taxonomy-&gt;name); ?&gt;]&quot; class=&quot;tax_input_&lt;?php echo esc_attr($taxonomy-&gt;name); ?&gt;&quot;&gt;&lt;/textarea&gt;
-                &lt;/label&gt;
-
-&lt;?php endforeach; //$flat_taxonomies as $taxonomy ?&gt;
-
-&lt;?php endif; // count($flat_taxonomies) &amp;&amp; !$bulk ?&gt;
-
-&lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) || post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) :
-        if ( $bulk ) : ?&gt;
-
-                &lt;div class=&quot;inline-edit-group&quot;&gt;
-        &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) ) : ?&gt;
-                &lt;label class=&quot;alignleft&quot;&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Comments' ); ?&gt;&lt;/span&gt;
-                        &lt;select name=&quot;comment_status&quot;&gt;
-                                &lt;option value=&quot;&quot;&gt;&lt;?php _e('&amp;mdash; No Change &amp;mdash;'); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;open&quot;&gt;&lt;?php _e('Allow'); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;closed&quot;&gt;&lt;?php _e('Do not allow'); ?&gt;&lt;/option&gt;
-                        &lt;/select&gt;
-                &lt;/label&gt;
-        &lt;?php endif; if ( post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) : ?&gt;
-                &lt;label class=&quot;alignright&quot;&gt;
-                        &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Pings' ); ?&gt;&lt;/span&gt;
-                        &lt;select name=&quot;ping_status&quot;&gt;
-                                &lt;option value=&quot;&quot;&gt;&lt;?php _e('&amp;mdash; No Change &amp;mdash;'); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;open&quot;&gt;&lt;?php _e('Allow'); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;closed&quot;&gt;&lt;?php _e('Do not allow'); ?&gt;&lt;/option&gt;
-                        &lt;/select&gt;
-                &lt;/label&gt;
-        &lt;?php endif; ?&gt;
-                &lt;/div&gt;
-
-&lt;?php else : // $bulk ?&gt;
-
-                &lt;div class=&quot;inline-edit-group&quot;&gt;
-                &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) ) : ?&gt;
-                        &lt;label class=&quot;alignleft&quot;&gt;
-                                &lt;input type=&quot;checkbox&quot; name=&quot;comment_status&quot; value=&quot;open&quot; /&gt;
-                                &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php _e( 'Allow Comments' ); ?&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-                &lt;?php endif; if ( post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) : ?&gt;
-                        &lt;label class=&quot;alignleft&quot;&gt;
-                                &lt;input type=&quot;checkbox&quot; name=&quot;ping_status&quot; value=&quot;open&quot; /&gt;
-                                &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php _e( 'Allow Pings' ); ?&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-                &lt;?php endif; ?&gt;
-                &lt;/div&gt;
-
-&lt;?php endif; // $bulk
-endif; // post_type_supports comments or pings ?&gt;
-
-                &lt;div class=&quot;inline-edit-group&quot;&gt;
-                        &lt;label class=&quot;inline-edit-status alignleft&quot;&gt;
-                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Status' ); ?&gt;&lt;/span&gt;
-                                &lt;select name=&quot;_status&quot;&gt;
-&lt;?php if ( $bulk ) : ?&gt;
-                                        &lt;option value=&quot;-1&quot;&gt;&lt;?php _e('&amp;mdash; No Change &amp;mdash;'); ?&gt;&lt;/option&gt;
-&lt;?php endif; // $bulk ?&gt;
-                                &lt;?php if ( $can_publish ) : // Contributors only get &quot;Unpublished&quot; and &quot;Pending Review&quot; ?&gt;
-                                        &lt;option value=&quot;publish&quot;&gt;&lt;?php _e( 'Published' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;future&quot;&gt;&lt;?php _e( 'Scheduled' ); ?&gt;&lt;/option&gt;
-&lt;?php if ( $bulk ) : ?&gt;
-                                        &lt;option value=&quot;private&quot;&gt;&lt;?php _e('Private'); ?&gt;&lt;/option&gt;
-&lt;?php endif; // $bulk ?&gt;
-                                &lt;?php endif; ?&gt;
-                                        &lt;option value=&quot;pending&quot;&gt;&lt;?php _e( 'Pending Review' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;draft&quot;&gt;&lt;?php _e( 'Draft' ); ?&gt;&lt;/option&gt;
-                                &lt;/select&gt;
-                        &lt;/label&gt;
-
-&lt;?php if ( 'post' == $screen-&gt;post_type &amp;&amp; $can_publish &amp;&amp; current_user_can( $post_type_object-&gt;cap-&gt;edit_others_posts ) ) : ?&gt;
-
-&lt;?php        if ( $bulk ) : ?&gt;
-
-                        &lt;label class=&quot;alignright&quot;&gt;
-                                &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Sticky' ); ?&gt;&lt;/span&gt;
-                                &lt;select name=&quot;sticky&quot;&gt;
-                                        &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( '&amp;mdash; No Change &amp;mdash;' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;sticky&quot;&gt;&lt;?php _e( 'Sticky' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;unsticky&quot;&gt;&lt;?php _e( 'Not Sticky' ); ?&gt;&lt;/option&gt;
-                                &lt;/select&gt;
-                        &lt;/label&gt;
-
-&lt;?php        else : // $bulk ?&gt;
-
-                        &lt;label class=&quot;alignleft&quot;&gt;
-                                &lt;input type=&quot;checkbox&quot; name=&quot;sticky&quot; value=&quot;sticky&quot; /&gt;
-                                &lt;span class=&quot;checkbox-title&quot;&gt;&lt;?php _e( 'Make this post sticky' ); ?&gt;&lt;/span&gt;
-                        &lt;/label&gt;
-
-&lt;?php        endif; // $bulk ?&gt;
-
-&lt;?php endif; // !$is_page &amp;&amp; $can_publish &amp;&amp; current_user_can( 'edit_others_cap' ) ?&gt;
-
-                &lt;/div&gt;
-
-        &lt;/div&gt;&lt;/fieldset&gt;
-
-&lt;?php
-        foreach ( $columns as $column_name =&gt; $column_display_name ) {
-                if ( isset( $core_columns[$column_name] ) )
-                        continue;
-                do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $screen-&gt;post_type );
-        }
-?&gt;
-        &lt;p class=&quot;submit inline-edit-save&quot;&gt;
-                &lt;a accesskey=&quot;c&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php _e('Cancel'); ?&gt;&quot; class=&quot;button-secondary cancel alignleft&quot;&gt;&lt;?php _e('Cancel'); ?&gt;&lt;/a&gt;
-                &lt;?php if ( ! $bulk ) {
-                        wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
-                        $update_text = __( 'Update' );
-                        ?&gt;
-                        &lt;a accesskey=&quot;s&quot; href=&quot;#inline-edit&quot; title=&quot;&lt;?php _e('Update'); ?&gt;&quot; class=&quot;button-primary save alignright&quot;&gt;&lt;?php echo esc_attr( $update_text ); ?&gt;&lt;/a&gt;
-                        &lt;img class=&quot;waiting&quot; style=&quot;display:none;&quot; src=&quot;&lt;?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?&gt;&quot; alt=&quot;&quot; /&gt;
-                &lt;?php } else {
-                        $update_text = __( 'Update' );
-                ?&gt;
-                        &lt;input accesskey=&quot;s&quot; class=&quot;button-primary alignright&quot; type=&quot;submit&quot; name=&quot;bulk_edit&quot; value=&quot;&lt;?php echo esc_attr( $update_text ); ?&gt;&quot; /&gt;
-                &lt;?php } ?&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;post_view&quot; value=&quot;&lt;?php echo esc_attr($m); ?&gt;&quot; /&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;screen&quot; value=&quot;&lt;?php echo esc_attr($screen-&gt;id); ?&gt;&quot; /&gt;
-                &lt;br class=&quot;clear&quot; /&gt;
-        &lt;/p&gt;
-        &lt;/td&gt;&lt;/tr&gt;
-&lt;?php
-        $bulk++;
-        } ?&gt;
-        &lt;/tbody&gt;&lt;/table&gt;&lt;/form&gt;
-&lt;?php
-}
-
</del><span class="cx"> // adds hidden fields with the data for use in the inline editor for posts and pages
</span><span class="cx"> /**
</span><span class="cx">  * {@internal Missing Short Description}}
</span><span class="lines">@@ -1232,991 +280,6 @@
</span><span class="cx">  *
</span><span class="cx">  * @since unknown
</span><span class="cx">  *
</span><del>- * @param unknown_type $posts
- */
-function post_rows( $posts = array() ) {
-        global $wp_query, $post, $mode;
-
-        add_filter('the_title','esc_html');
-
-        // Create array of post IDs.
-        $post_ids = array();
-
-        if ( empty($posts) )
-                $posts = &amp;$wp_query-&gt;posts;
-
-        foreach ( $posts as $a_post )
-                $post_ids[] = $a_post-&gt;ID;
-
-        $comment_pending_count = get_pending_comments_num($post_ids);
-
-        foreach ( $posts as $post ) {
-                if ( empty($comment_pending_count[$post-&gt;ID]) )
-                        $comment_pending_count[$post-&gt;ID] = 0;
-
-                _post_row($post, $comment_pending_count[$post-&gt;ID], $mode);
-        }
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $a_post
- * @param unknown_type $pending_comments
- * @param unknown_type $mode
- */
-function _post_row($a_post, $pending_comments, $mode) {
-        global $post, $current_screen;
-        static $rowclass;
-
-        $global_post = $post;
-        $post = $a_post;
-        setup_postdata($post);
-
-        $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
-        $post_owner = ( get_current_user_id() == $post-&gt;post_author ? 'self' : 'other' );
-        $edit_link = get_edit_post_link( $post-&gt;ID );
-        $title = _draft_or_post_title();
-        $post_type_object = get_post_type_object($post-&gt;post_type);
-?&gt;
-        &lt;tr id='post-&lt;?php echo $post-&gt;ID; ?&gt;' class='&lt;?php echo trim( $rowclass . ' author-' . $post_owner . ' status-' . $post-&gt;post_status ); ?&gt; iedit' valign=&quot;top&quot;&gt;
-&lt;?php
-        $posts_columns = get_column_headers( $current_screen );
-        $hidden = get_hidden_columns( $current_screen );
-        foreach ( $posts_columns as $column_name=&gt;$column_display_name ) {
-                $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
-
-                $style = '';
-                if ( in_array($column_name, $hidden) )
-                        $style = ' style=&quot;display:none;&quot;';
-
-                $attributes = &quot;$class$style&quot;;
-
-                switch ($column_name) {
-
-                case 'cb':
-                ?&gt;
-                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID ) ) { ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;post[]&quot; value=&quot;&lt;?php the_ID(); ?&gt;&quot; /&gt;&lt;?php } ?&gt;&lt;/th&gt;
-                &lt;?php
-                break;
-
-                case 'date':
-                        if ( '0000-00-00 00:00:00' == $post-&gt;post_date &amp;&amp; 'date' == $column_name ) {
-                                $t_time = $h_time = __('Unpublished');
-                                $time_diff = 0;
-                        } else {
-                                $t_time = get_the_time(__('Y/m/d g:i:s A'));
-                                $m_time = $post-&gt;post_date;
-                                $time = get_post_time('G', true, $post);
-
-                                $time_diff = time() - $time;
-
-                                if ( $time_diff &gt; 0 &amp;&amp; $time_diff &lt; 24*60*60 )
-                                        $h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
-                                else
-                                        $h_time = mysql2date(__('Y/m/d'), $m_time);
-                        }
-
-                        echo '&lt;td ' . $attributes . '&gt;';
-                        if ( 'excerpt' == $mode )
-                                echo apply_filters('post_date_column_time', $t_time, $post, $column_name, $mode);
-                        else
-                                echo '&lt;abbr title=&quot;' . $t_time . '&quot;&gt;' . apply_filters('post_date_column_time', $h_time, $post, $column_name, $mode) . '&lt;/abbr&gt;';
-                        echo '&lt;br /&gt;';
-                        if ( 'publish' == $post-&gt;post_status ) {
-                                _e('Published');
-                        } elseif ( 'future' == $post-&gt;post_status ) {
-                                if ( $time_diff &gt; 0 )
-                                        echo '&lt;strong class=&quot;attention&quot;&gt;' . __('Missed schedule') . '&lt;/strong&gt;';
-                                else
-                                        _e('Scheduled');
-                        } else {
-                                _e('Last Modified');
-                        }
-                        echo '&lt;/td&gt;';
-                break;
-
-                case 'title':
-                        $attributes = 'class=&quot;post-title column-title&quot;' . $style;
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $title)); ?&gt;&quot;&gt;&lt;?php echo $title; ?&gt;&lt;/a&gt;&lt;?php } else { echo $title; }; _post_states($post); ?&gt;&lt;/strong&gt;
-                &lt;?php
-                        if ( 'excerpt' == $mode )
-                                the_excerpt();
-
-                        $actions = array();
-                        if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) &amp;&amp; 'trash' != $post-&gt;post_status ) {
-                                $actions['edit'] = '&lt;a href=&quot;' . get_edit_post_link($post-&gt;ID, true) . '&quot; title=&quot;' . esc_attr(__('Edit this item')) . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                                $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot; title=&quot;' . esc_attr(__('Edit this item inline')) . '&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
-                        }
-                        if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID) ) {
-                                if ( 'trash' == $post-&gt;post_status )
-                                        $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr(__('Restore this item from the Trash')) . &quot;' href='&quot; . wp_nonce_url( admin_url( sprintf($post_type_object-&gt;_edit_link . '&amp;amp;action=untrash', $post-&gt;ID) ), 'untrash-' . $post-&gt;post_type . '_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __('Restore') . '&lt;/a&gt;';
-                                elseif ( EMPTY_TRASH_DAYS )
-                                        $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Move this item to the Trash')) . &quot;' href='&quot; . get_delete_post_link($post-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . '&lt;/a&gt;';
-                                if ( 'trash' == $post-&gt;post_status || !EMPTY_TRASH_DAYS )
-                                        $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Delete this item permanently')) . &quot;' href='&quot; . get_delete_post_link($post-&gt;ID, '', true) . &quot;'&gt;&quot; . __('Delete Permanently') . '&lt;/a&gt;';
-                        }
-                        if ( in_array($post-&gt;post_status, array('pending', 'draft')) ) {
-                                if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) )
-                                        $actions['view'] = '&lt;a href=&quot;' . esc_url( add_query_arg( 'preview', 'true', get_permalink($post-&gt;ID) ) ) . '&quot; title=&quot;' . esc_attr(sprintf(__('Preview &amp;#8220;%s&amp;#8221;'), $title)) . '&quot; rel=&quot;permalink&quot;&gt;' . __('Preview') . '&lt;/a&gt;';
-                        } elseif ( 'trash' != $post-&gt;post_status ) {
-                                $actions['view'] = '&lt;a href=&quot;' . get_permalink($post-&gt;ID) . '&quot; title=&quot;' . esc_attr(sprintf(__('View &amp;#8220;%s&amp;#8221;'), $title)) . '&quot; rel=&quot;permalink&quot;&gt;' . __('View') . '&lt;/a&gt;';
-                        }
-                        $actions = apply_filters('post_row_actions', $actions, $post);
-                        $action_count = count($actions);
-                        $i = 0;
-                        echo '&lt;div class=&quot;row-actions&quot;&gt;';
-                        foreach ( $actions as $action =&gt; $link ) {
-                                ++$i;
-                                ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                                echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                        }
-                        echo '&lt;/div&gt;';
-
-                        get_inline_data($post);
-                ?&gt;
-                &lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'categories':
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php
-                        $categories = get_the_category();
-                        if ( !empty( $categories ) ) {
-                                $out = array();
-                                foreach ( $categories as $c )
-                                        $out[] = &quot;&lt;a href='edit.php?post_type={$post-&gt;post_type}&amp;amp;category_name={$c-&gt;slug}'&gt; &quot; . esc_html(sanitize_term_field('name', $c-&gt;name, $c-&gt;term_id, 'category', 'display')) . '&lt;/a&gt;';
-                                        echo join( ', ', $out );
-                        } else {
-                                _e('Uncategorized');
-                        }
-                ?&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'tags':
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php
-                        $tags = get_the_tags($post-&gt;ID);
-                        if ( !empty( $tags ) ) {
-                                $out = array();
-                                foreach ( $tags as $c )
-                                        $out[] = &quot;&lt;a href='edit.php?post_type={$post-&gt;post_type}&amp;amp;tag={$c-&gt;slug}'&gt; &quot; . esc_html(sanitize_term_field('name', $c-&gt;name, $c-&gt;term_id, 'post_tag', 'display')) . '&lt;/a&gt;';
-                                echo join( ', ', $out );
-                        } else {
-                                _e('No Tags');
-                        }
-                ?&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'comments':
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
-                &lt;?php
-                        $pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
-                        if ( $pending_comments )
-                                echo '&lt;strong&gt;';
-                                comments_number(&quot;&lt;a href='edit-comments.php?p=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link */ _x('0', 'comment count') . '&lt;/span&gt;&lt;/a&gt;', &quot;&lt;a href='edit-comments.php?p=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link */ _x('1', 'comment count') . '&lt;/span&gt;&lt;/a&gt;', &quot;&lt;a href='edit-comments.php?p=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '&lt;/span&gt;&lt;/a&gt;');
-                                if ( $pending_comments )
-                                echo '&lt;/strong&gt;';
-                ?&gt;
-                &lt;/div&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'author':
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post-&gt;post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta('ID'); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'control_view':
-                ?&gt;
-                &lt;td&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; rel=&quot;permalink&quot; class=&quot;view&quot;&gt;&lt;?php _e('View'); ?&gt;&lt;/a&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'control_edit':
-                ?&gt;
-                &lt;td&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) ) { echo &quot;&lt;a href='$edit_link' class='edit'&gt;&quot; . __('Edit') . '&lt;/a&gt;'; } ?&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                case 'control_delete':
-                ?&gt;
-                &lt;td&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID) ) { echo &quot;&lt;a href='&quot; . wp_nonce_url(&quot;post.php?action=delete&amp;amp;post=$id&quot;, 'delete-post_' . $post-&gt;ID) . &quot;' class='delete'&gt;&quot; . __('Delete') . '&lt;/a&gt;'; } ?&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-                default:
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php do_action('manage_posts_custom_column', $column_name, $post-&gt;ID); ?&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-        }
-}
-?&gt;
-        &lt;/tr&gt;
-&lt;?php
-        $post = $global_post;
-}
-
-/*
- * display one row if the page doesn't have any children
- * otherwise, display the row and its children in subsequent rows
- */
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $page
- * @param unknown_type $level
- */
-function display_page_row( $page, $level = 0 ) {
-        global $post, $current_screen;
-        static $rowclass;
-
-        $post = $page;
-        setup_postdata($page);
-
-        if ( 0 == $level &amp;&amp; (int)$page-&gt;post_parent &gt; 0 ) {
-                //sent level 0 by accident, by default, or because we don't know the actual level
-                $find_main_page = (int)$page-&gt;post_parent;
-                while ( $find_main_page &gt; 0 ) {
-                        $parent = get_page($find_main_page);
-
-                        if ( is_null($parent) )
-                                break;
-
-                        $level++;
-                        $find_main_page = (int)$parent-&gt;post_parent;
-
-                        if ( !isset($parent_name) )
-                                $parent_name = $parent-&gt;post_title;
-                }
-        }
-
-        $page-&gt;post_title = esc_html( $page-&gt;post_title );
-        $pad = str_repeat( '&amp;#8212; ', $level );
-        $id = (int) $page-&gt;ID;
-        $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
-        $posts_columns = get_column_headers( $current_screen );
-        $hidden = get_hidden_columns( $current_screen );
-        $title = _draft_or_post_title();
-        $post_type = $page-&gt;post_type;
-        $post_type_object = get_post_type_object($post_type);
-?&gt;
-&lt;tr id=&quot;page-&lt;?php echo $id; ?&gt;&quot; class=&quot;&lt;?php echo $rowclass; ?&gt; iedit&quot;&gt;
-&lt;?php
-
-foreach ( $posts_columns as $column_name =&gt; $column_display_name ) {
-        $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
-
-        $style = '';
-        if ( in_array($column_name, $hidden) )
-                $style = ' style=&quot;display:none;&quot;';
-
-        $attributes = &quot;$class$style&quot;;
-
-        switch ($column_name) {
-
-        case 'cb':
-                ?&gt;
-                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;?php if ( current_user_can( $post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID ) ) { ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;post[]&quot; value=&quot;&lt;?php the_ID(); ?&gt;&quot; /&gt;&lt;?php } ?&gt;&lt;/th&gt;
-                &lt;?php
-                break;
-        case 'date':
-                if ( '0000-00-00 00:00:00' == $page-&gt;post_date &amp;&amp; 'date' == $column_name ) {
-                        $t_time = $h_time = __('Unpublished');
-                        $time_diff = 0;
-                } else {
-                        $t_time = get_the_time(__('Y/m/d g:i:s A'));
-                        $m_time = $page-&gt;post_date;
-                        $time = get_post_time('G', true);
-
-                        $time_diff = time() - $time;
-
-                        if ( $time_diff &gt; 0 &amp;&amp; $time_diff &lt; 24*60*60 )
-                                $h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
-                        else
-                                $h_time = mysql2date(__('Y/m/d'), $m_time);
-                }
-                echo '&lt;td ' . $attributes . '&gt;';
-                echo '&lt;abbr title=&quot;' . $t_time . '&quot;&gt;' . apply_filters('post_date_column_time', $h_time, $page, $column_name, '') . '&lt;/abbr&gt;';
-                echo '&lt;br /&gt;';
-                if ( 'publish' == $page-&gt;post_status ) {
-                        _e('Published');
-                } elseif ( 'future' == $page-&gt;post_status ) {
-                        if ( $time_diff &gt; 0 )
-                                echo '&lt;strong class=&quot;attention&quot;&gt;' . __('Missed schedule') . '&lt;/strong&gt;';
-                        else
-                                _e('Scheduled');
-                } else {
-                        _e('Last Modified');
-                }
-                echo '&lt;/td&gt;';
-                break;
-        case 'title':
-                $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
-                $edit_link = get_edit_post_link( $page-&gt;ID );
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $title)); ?&gt;&quot;&gt;&lt;?php echo $pad; echo $title; ?&gt;&lt;/a&gt;&lt;?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . $post_type_object-&gt;labels-&gt;parent_item_colon . ' ' . esc_html($parent_name) : ''; ?&gt;&lt;/strong&gt;
-                &lt;?php
-                $actions = array();
-                if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) {
-                        $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot; title=&quot;' . esc_attr(__('Edit this page')) . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                        $actions['inline'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
-                }
-                if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $page-&gt;ID) ) {
-                        if ( $post-&gt;post_status == 'trash' )
-                                $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr(__('Remove this page from the Trash')) . &quot;' href='&quot; . wp_nonce_url(&quot;post.php?post_type=$post_type&amp;amp;action=untrash&amp;amp;post=$page-&gt;ID&quot;, 'untrash-' . $post-&gt;post_type . '_' . $page-&gt;ID) . &quot;'&gt;&quot; . __('Restore') . '&lt;/a&gt;';
-                        elseif ( EMPTY_TRASH_DAYS )
-                                $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Move this page to the Trash')) . &quot;' href='&quot; . get_delete_post_link($page-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . '&lt;/a&gt;';
-                        if ( $post-&gt;post_status == 'trash' || !EMPTY_TRASH_DAYS )
-                                $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Delete this page permanently')) . &quot;' href='&quot; . wp_nonce_url(&quot;post.php?post_type=$post_type&amp;amp;action=delete&amp;amp;post=$page-&gt;ID&quot;, 'delete-' . $post-&gt;post_type . '_' . $page-&gt;ID) . &quot;'&gt;&quot; . __('Delete Permanently') . '&lt;/a&gt;';
-                }
-                if ( in_array($post-&gt;post_status, array('pending', 'draft')) ) {
-                        if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) )
-                                $actions['view'] = '&lt;a href=&quot;' . esc_url( add_query_arg( 'preview', 'true', get_permalink($page-&gt;ID) ) ) . '&quot; title=&quot;' . esc_attr(sprintf(__('Preview &amp;#8220;%s&amp;#8221;'), $title)) . '&quot; rel=&quot;permalink&quot;&gt;' . __('Preview') . '&lt;/a&gt;';
-                } elseif ( $post-&gt;post_status != 'trash' ) {
-                        $actions['view'] = '&lt;a href=&quot;' . get_permalink($page-&gt;ID) . '&quot; title=&quot;' . esc_attr(sprintf(__('View &amp;#8220;%s&amp;#8221;'), $title)) . '&quot; rel=&quot;permalink&quot;&gt;' . __('View') . '&lt;/a&gt;';
-                }
-                $actions = apply_filters('page_row_actions', $actions, $page);
-                $action_count = count($actions);
-
-                $i = 0;
-                echo '&lt;div class=&quot;row-actions&quot;&gt;';
-                foreach ( $actions as $action =&gt; $link ) {
-                        ++$i;
-                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                        echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                }
-                echo '&lt;/div&gt;';
-
-                get_inline_data($post);
-                echo '&lt;/td&gt;';
-                break;
-
-        case 'comments':
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
-                &lt;?php
-                $left = get_pending_comments_num( $page-&gt;ID );
-                $pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
-                if ( $left )
-                        echo '&lt;strong&gt;';
-                comments_number(&quot;&lt;a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link */ _x('0', 'comment count') . '&lt;/span&gt;&lt;/a&gt;', &quot;&lt;a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link */ _x('1', 'comment count') . '&lt;/span&gt;&lt;/a&gt;', &quot;&lt;a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '&lt;/span&gt;&lt;/a&gt;');
-                if ( $left )
-                        echo '&lt;/strong&gt;';
-                ?&gt;
-                &lt;/div&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-        case 'author':
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta('ID'); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-
-        default:
-                ?&gt;
-                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php do_action('manage_pages_custom_column', $column_name, $id); ?&gt;&lt;/td&gt;
-                &lt;?php
-                break;
-        }
-}
-?&gt;
-
-&lt;/tr&gt;
-
-&lt;?php
-}
-
-/*
- * displays pages in hierarchical order with paging support
- */
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $pages
- * @param unknown_type $pagenum
- * @param unknown_type $per_page
- * @return unknown
- */
-function page_rows($pages, $pagenum = 1, $per_page = 20) {
-        global $wpdb;
-
-        $level = 0;
-
-        if ( ! $pages ) {
-                $pages = get_pages( array('sort_column' =&gt; 'menu_order') );
-
-                if ( ! $pages )
-                        return false;
-        }
-
-        /*
-         * arrange pages into two parts: top level pages and children_pages
-         * children_pages is two dimensional array, eg.
-         * children_pages[10][] contains all sub-pages whose parent is 10.
-         * It only takes O(N) to arrange this and it takes O(1) for subsequent lookup operations
-         * If searching, ignore hierarchy and treat everything as top level
-         */
-        if ( empty($_GET['s']) ) {
-
-                $top_level_pages = array();
-                $children_pages = array();
-
-                foreach ( $pages as $page ) {
-
-                        // catch and repair bad pages
-                        if ( $page-&gt;post_parent == $page-&gt;ID ) {
-                                $page-&gt;post_parent = 0;
-                                $wpdb-&gt;update($wpdb-&gt;posts, array('post_parent' =&gt; 0), array('ID' =&gt; $page-&gt;ID));
-                                clean_page_cache( $page-&gt;ID );
-                        }
-
-                        if ( 0 == $page-&gt;post_parent )
-                                $top_level_pages[] = $page;
-                        else
-                                $children_pages[ $page-&gt;post_parent ][] = $page;
-                }
-
-                $pages = &amp;$top_level_pages;
-        }
-
-        $count = 0;
-        $start = ($pagenum - 1) * $per_page;
-        $end = $start + $per_page;
-
-        foreach ( $pages as $page ) {
-                if ( $count &gt;= $end )
-                        break;
-
-                if ( $count &gt;= $start )
-                        echo &quot;\t&quot; . display_page_row( $page, $level );
-
-                $count++;
-
-                if ( isset($children_pages) )
-                        _page_rows( $children_pages, $count, $page-&gt;ID, $level + 1, $pagenum, $per_page );
-        }
-
-        // if it is the last pagenum and there are orphaned pages, display them with paging as well
-        if ( isset($children_pages) &amp;&amp; $count &lt; $end ) {
-                foreach ( $children_pages as $orphans ) {
-                        foreach ( $orphans as $op ) {
-                                if ( $count &gt;= $end )
-                                        break;
-                                if ( $count &gt;= $start )
-                                        echo &quot;\t&quot; . display_page_row( $op, 0 );
-                                $count++;
-                        }
-                }
-        }
-}
-
-/**
- * Given a top level page ID, display the nested hierarchy of sub-pages
- * together with paging support
- *
- * @since unknown
- *
- * @param unknown_type $children_pages
- * @param unknown_type $count
- * @param unknown_type $parent
- * @param unknown_type $level
- * @param unknown_type $pagenum
- * @param unknown_type $per_page
- */
-function _page_rows( &amp;$children_pages, &amp;$count, $parent, $level, $pagenum, $per_page ) {
-
-        if ( ! isset( $children_pages[$parent] ) )
-                return;
-
-        $start = ($pagenum - 1) * $per_page;
-        $end = $start + $per_page;
-
-        foreach ( $children_pages[$parent] as $page ) {
-
-                if ( $count &gt;= $end )
-                        break;
-
-                // If the page starts in a subtree, print the parents.
-                if ( $count == $start &amp;&amp; $page-&gt;post_parent &gt; 0 ) {
-                        $my_parents = array();
-                        $my_parent = $page-&gt;post_parent;
-                        while ( $my_parent) {
-                                $my_parent = get_post($my_parent);
-                                $my_parents[] = $my_parent;
-                                if ( !$my_parent-&gt;post_parent )
-                                        break;
-                                $my_parent = $my_parent-&gt;post_parent;
-                        }
-                        $num_parents = count($my_parents);
-                        while ( $my_parent = array_pop($my_parents) ) {
-                                echo &quot;\t&quot; . display_page_row( $my_parent, $level - $num_parents );
-                                $num_parents--;
-                        }
-                }
-
-                if ( $count &gt;= $start )
-                        echo &quot;\t&quot; . display_page_row( $page, $level );
-
-                $count++;
-
-                _page_rows( $children_pages, $count, $page-&gt;ID, $level + 1, $pagenum, $per_page );
-        }
-
-        unset( $children_pages[$parent] ); //required in order to keep track of orphans
-}
-
-/**
- * Generate HTML for a single row on the users.php admin panel.
- *
- * @since 2.1.0
- *
- * @param object $user_object
- * @param string $style Optional. Attributes added to the TR element. Must be sanitized.
- * @param string $role Key for the $wp_roles array.
- * @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
- * @return string
- */
-function user_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
-        global $wp_roles;
-
-        if ( !( is_object( $user_object) &amp;&amp; is_a( $user_object, 'WP_User' ) ) )
-                $user_object = new WP_User( (int) $user_object );
-        $user_object = sanitize_user_object($user_object, 'display');
-        $email = $user_object-&gt;user_email;
-        $url = $user_object-&gt;user_url;
-        $short_url = str_replace( 'http://', '', $url );
-        $short_url = str_replace( 'www.', '', $short_url );
-        if ('/' == substr( $short_url, -1 ))
-                $short_url = substr( $short_url, 0, -1 );
-        if ( strlen( $short_url ) &gt; 35 )
-                $short_url = substr( $short_url, 0, 32 ).'...';
-        $checkbox = '';
-        // Check if the user for this row is editable
-        if ( current_user_can( 'list_users' ) ) {
-                // Set up the user editing link
-                // TODO: make profile/user-edit determination a separate function
-                if ( get_current_user_id() == $user_object-&gt;ID) {
-                        $edit_link = 'profile.php';
-                } else {
-                        $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), &quot;user-edit.php?user_id=$user_object-&gt;ID&quot; ) );
-                }
-                $edit = &quot;&lt;strong&gt;&lt;a href=\&quot;$edit_link\&quot;&gt;$user_object-&gt;user_login&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
-
-                // Set up the hover actions for this user
-                $actions = array();
-
-                if ( current_user_can('edit_user', $user_object-&gt;ID) ) {
-                        $edit = &quot;&lt;strong&gt;&lt;a href=\&quot;$edit_link\&quot;&gt;$user_object-&gt;user_login&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
-                        $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                } else {
-                        $edit = &quot;&lt;strong&gt;$user_object-&gt;user_login&lt;/strong&gt;&lt;br /&gt;&quot;;
-                }
-
-                if ( !is_multisite() &amp;&amp; get_current_user_id() != $user_object-&gt;ID &amp;&amp; current_user_can('delete_user', $user_object-&gt;ID) )
-                        $actions['delete'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;users.php?action=delete&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users') . &quot;'&gt;&quot; . __('Delete') . '&lt;/a&gt;';
-                if ( is_multisite() &amp;&amp; get_current_user_id() != $user_object-&gt;ID &amp;&amp; current_user_can('remove_user', $user_object-&gt;ID) )
-                        $actions['remove'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;users.php?action=remove&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users') . &quot;'&gt;&quot; . __('Remove') . '&lt;/a&gt;';
-                $actions = apply_filters('user_row_actions', $actions, $user_object);
-                $action_count = count($actions);
-                $i = 0;
-                $edit .= '&lt;div class=&quot;row-actions&quot;&gt;';
-                foreach ( $actions as $action =&gt; $link ) {
-                        ++$i;
-                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                        $edit .= &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                }
-                $edit .= '&lt;/div&gt;';
-
-                // Set up the checkbox (because the user is editable, otherwise its empty)
-                $checkbox = &quot;&lt;input type='checkbox' name='users[]' id='user_{$user_object-&gt;ID}' class='$role' value='{$user_object-&gt;ID}' /&gt;&quot;;
-
-        } else {
-                $edit = '&lt;strong&gt;' . $user_object-&gt;user_login . '&lt;/strong&gt;';
-        }
-        $role_name = isset($wp_roles-&gt;role_names[$role]) ? translate_user_role($wp_roles-&gt;role_names[$role] ) : __('None');
-        $r = &quot;&lt;tr id='user-$user_object-&gt;ID'$style&gt;&quot;;
-        $columns = get_column_headers('users');
-        $hidden = get_hidden_columns('users');
-        $avatar = get_avatar( $user_object-&gt;ID, 32 );
-        foreach ( $columns as $column_name =&gt; $column_display_name ) {
-                $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
-
-                $style = '';
-                if ( in_array($column_name, $hidden) )
-                        $style = ' style=&quot;display:none;&quot;';
-
-                $attributes = &quot;$class$style&quot;;
-
-                switch ($column_name) {
-                        case 'cb':
-                                $r .= &quot;&lt;th scope='row' class='check-column'&gt;$checkbox&lt;/th&gt;&quot;;
-                                break;
-                        case 'username':
-                                $r .= &quot;&lt;td $attributes&gt;$avatar $edit&lt;/td&gt;&quot;;
-                                break;
-                        case 'name':
-                                $r .= &quot;&lt;td $attributes&gt;$user_object-&gt;first_name $user_object-&gt;last_name&lt;/td&gt;&quot;;
-                                break;
-                        case 'email':
-                                $r .= &quot;&lt;td $attributes&gt;&lt;a href='mailto:$email' title='&quot; . sprintf( __('E-mail: %s' ), $email ) . &quot;'&gt;$email&lt;/a&gt;&lt;/td&gt;&quot;;
-                                break;
-                        case 'role':
-                                $r .= &quot;&lt;td $attributes&gt;$role_name&lt;/td&gt;&quot;;
-                                break;
-                        case 'posts':
-                                $attributes = 'class=&quot;posts column-posts num&quot;' . $style;
-                                $r .= &quot;&lt;td $attributes&gt;&quot;;
-                                if ( $numposts &gt; 0 ) {
-                                        $r .= &quot;&lt;a href='edit.php?author=$user_object-&gt;ID' title='&quot; . __( 'View posts by this author' ) . &quot;' class='edit'&gt;&quot;;
-                                        $r .= $numposts;
-                                        $r .= '&lt;/a&gt;';
-                                } else {
-                                        $r .= 0;
-                                }
-                                $r .= &quot;&lt;/td&gt;&quot;;
-                                break;
-                        default:
-                                $r .= &quot;&lt;td $attributes&gt;&quot;;
-                                $r .= apply_filters('manage_users_custom_column', '', $column_name, $user_object-&gt;ID);
-                                $r .= &quot;&lt;/td&gt;&quot;;
-                }
-        }
-        $r .= '&lt;/tr&gt;';
-
-        return $r;
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param string $status Comment status (approved, spam, trash, etc)
- * @param string $s Term to search for
- * @param int $start Offset to start at for pagination
- * @param int $num Maximum number of comments to return
- * @param int $post Post ID or 0 to return all comments
- * @param string $type Comment type (comment, trackback, pingback, etc)
- * @return array [0] contains the comments and [1] contains the total number of comments that match (ignoring $start and $num)
- */
-function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0, $type = '' ) {
-        global $wpdb;
-
-        $start = abs( (int) $start );
-        $num = (int) $num;
-        $post = (int) $post;
-        $count = wp_count_comments();
-        $index = '';
-
-        if ( 'moderated' == $status ) {
-                $approved = &quot;c.comment_approved = '0'&quot;;
-                $total = $count-&gt;moderated;
-        } elseif ( 'approved' == $status ) {
-                $approved = &quot;c.comment_approved = '1'&quot;;
-                $total = $count-&gt;approved;
-        } elseif ( 'spam' == $status ) {
-                $approved = &quot;c.comment_approved = 'spam'&quot;;
-                $total = $count-&gt;spam;
-        } elseif ( 'trash' == $status ) {
-                $approved = &quot;c.comment_approved = 'trash'&quot;;
-                $total = $count-&gt;trash;
-        } else {
-                $approved = &quot;( c.comment_approved = '0' OR c.comment_approved = '1' )&quot;;
-                $total = $count-&gt;moderated + $count-&gt;approved;
-                $index = 'USE INDEX (c.comment_date_gmt)';
-        }
-
-        if ( $post ) {
-                $total = '';
-                $post = &quot; AND c.comment_post_ID = '$post'&quot;;
-        } else {
-                $post = '';
-        }
-
-        $orderby = &quot;ORDER BY c.comment_date_gmt DESC LIMIT $start, $num&quot;;
-
-        if ( 'comment' == $type )
-                $typesql = &quot;AND c.comment_type = ''&quot;;
-        elseif ( 'pings' == $type )
-                $typesql = &quot;AND ( c.comment_type = 'pingback' OR c.comment_type = 'trackback' )&quot;;
-        elseif ( 'all' == $type )
-                $typesql = '';
-        elseif ( !empty($type) )
-                $typesql = $wpdb-&gt;prepare(&quot;AND c.comment_type = %s&quot;, $type);
-        else
-                $typesql = '';
-
-        if ( !empty($type) )
-                $total = '';
-
-        $query = &quot;FROM $wpdb-&gt;comments c LEFT JOIN $wpdb-&gt;posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' &quot;;
-        if ( $s ) {
-                $total = '';
-                $s = $wpdb-&gt;escape($s);
-                $query .= &quot;AND
-                        (c.comment_author LIKE '%$s%' OR
-                        c.comment_author_email LIKE '%$s%' OR
-                        c.comment_author_url LIKE ('%$s%') OR
-                        c.comment_author_IP LIKE ('%$s%') OR
-                        c.comment_content LIKE ('%$s%') ) AND
-                        $approved
-                        $typesql&quot;;
-        } else {
-                $query .= &quot;AND $approved $post $typesql&quot;;
-        }
-
-        $comments = $wpdb-&gt;get_results(&quot;SELECT * $query $orderby&quot;);
-        if ( '' === $total )
-                $total = $wpdb-&gt;get_var(&quot;SELECT COUNT(c.comment_ID) $query&quot;);
-
-        update_comment_cache($comments);
-
-        return array($comments, $total);
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
- * @param unknown_type $comment_id
- * @param unknown_type $mode
- * @param unknown_type $comment_status
- * @param unknown_type $checkbox
- */
-function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, $from_ajax = false ) {
-        global $comment, $post, $_comment_pending_count;
-        $comment = get_comment( $comment_id );
-        $post = get_post($comment-&gt;comment_post_ID);
-        $the_comment_status = wp_get_comment_status($comment-&gt;comment_ID);
-        $post_type_object = get_post_type_object($post-&gt;post_type);
-        $user_can = current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID);
-
-        $comment_url = esc_url(get_comment_link($comment-&gt;comment_ID));
-        $author_url = get_comment_author_url();
-        if ( 'http://' == $author_url )
-                $author_url = '';
-        $author_url_display = preg_replace('|http://(www\.)?|i', '', $author_url);
-        if ( strlen($author_url_display) &gt; 50 )
-                $author_url_display = substr($author_url_display, 0, 49) . '...';
-
-        $ptime = date('G', strtotime( $comment-&gt;comment_date ) );
-        if ( ( abs(time() - $ptime) ) &lt; 86400 )
-                $ptime = sprintf( __('%s ago'), human_time_diff( $ptime ) );
-        else
-                $ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment-&gt;comment_date );
-
-        if ( $user_can ) {
-                $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( &quot;delete-comment_$comment-&gt;comment_ID&quot; ) );
-                $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( &quot;approve-comment_$comment-&gt;comment_ID&quot; ) );
-
-                $approve_url = esc_url( &quot;comment.php?action=approvecomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$approve_nonce&quot; );
-                $unapprove_url = esc_url( &quot;comment.php?action=unapprovecomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$approve_nonce&quot; );
-                $spam_url = esc_url( &quot;comment.php?action=spamcomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$del_nonce&quot; );
-                $unspam_url = esc_url( &quot;comment.php?action=unspamcomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$del_nonce&quot; );
-                $trash_url = esc_url( &quot;comment.php?action=trashcomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$del_nonce&quot; );
-                $untrash_url = esc_url( &quot;comment.php?action=untrashcomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$del_nonce&quot; );
-                $delete_url = esc_url( &quot;comment.php?action=deletecomment&amp;p=$post-&gt;ID&amp;c=$comment-&gt;comment_ID&amp;$del_nonce&quot; );
-        }
-
-        echo &quot;&lt;tr id='comment-$comment-&gt;comment_ID' class='$the_comment_status'&gt;&quot;;
-        $columns = get_column_headers('edit-comments');
-        $hidden = get_hidden_columns('edit-comments');
-        foreach ( $columns as $column_name =&gt; $column_display_name ) {
-                $class = &quot;class=\&quot;$column_name column-$column_name\&quot;&quot;;
-
-                $style = '';
-                if ( in_array($column_name, $hidden) )
-                        $style = ' style=&quot;display:none;&quot;';
-
-                $attributes = &quot;$class$style&quot;;
-
-                switch ($column_name) {
-                        case 'cb':
-                                if ( !$checkbox ) break;
-                                echo '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;';
-                                if ( $user_can ) echo &quot;&lt;input type='checkbox' name='delete_comments[]' value='$comment-&gt;comment_ID' /&gt;&quot;;
-                                echo '&lt;/th&gt;';
-                                break;
-                        case 'comment':
-                                echo &quot;&lt;td $attributes&gt;&quot;;
-                                echo '&lt;div id=&quot;submitted-on&quot;&gt;';
-                                /* translators: 2: comment date, 3: comment time */
-                                printf( __( '&lt;a href=&quot;%1$s&quot;&gt;%2$s at %3$s&lt;/a&gt;' ), $comment_url,
-                                        /* translators: comment date format. See http://php.net/date */ get_comment_date( __('Y/m/d') ),
-                                        /* translators: comment time format. See http://php.net/date */ get_comment_date( get_option( 'time_format' ) ) );
-
-                                if ( $comment-&gt;comment_parent ) {
-                                        $parent = get_comment( $comment-&gt;comment_parent );
-                                        $parent_link = esc_url( get_comment_link( $comment-&gt;comment_parent ) );
-                                        $name = apply_filters( 'get_comment_author', $parent-&gt;comment_author ); // there's no API function for this
-                                        printf( ' | '.__( 'In reply to &lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;/a&gt;.' ), $parent_link, $name );
-                                }
-
-                                echo '&lt;/div&gt;';
-                                comment_text();
-                                if ( $user_can ) { ?&gt;
-                                &lt;div id=&quot;inline-&lt;?php echo $comment-&gt;comment_ID; ?&gt;&quot; class=&quot;hidden&quot;&gt;
-                                &lt;textarea class=&quot;comment&quot; rows=&quot;1&quot; cols=&quot;1&quot;&gt;&lt;?php echo htmlspecialchars( apply_filters('comment_edit_pre', $comment-&gt;comment_content), ENT_QUOTES ); ?&gt;&lt;/textarea&gt;
-                                &lt;div class=&quot;author-email&quot;&gt;&lt;?php echo esc_attr( $comment-&gt;comment_author_email ); ?&gt;&lt;/div&gt;
-                                &lt;div class=&quot;author&quot;&gt;&lt;?php echo esc_attr( $comment-&gt;comment_author ); ?&gt;&lt;/div&gt;
-                                &lt;div class=&quot;author-url&quot;&gt;&lt;?php echo esc_attr( $comment-&gt;comment_author_url ); ?&gt;&lt;/div&gt;
-                                &lt;div class=&quot;comment_status&quot;&gt;&lt;?php echo $comment-&gt;comment_approved; ?&gt;&lt;/div&gt;
-                                &lt;/div&gt;
-                                &lt;?php
-                                }
-
-                                if ( $user_can ) {
-                                        // preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash
-                                        $actions = array(
-                                                'approve' =&gt; '', 'unapprove' =&gt; '',
-                                                'reply' =&gt; '',
-                                                'quickedit' =&gt; '',
-                                                'edit' =&gt; '',
-                                                'spam' =&gt; '', 'unspam' =&gt; '',
-                                                'trash' =&gt; '', 'untrash' =&gt; '', 'delete' =&gt; ''
-                                        );
-
-                                        if ( $comment_status &amp;&amp; 'all' != $comment_status ) { // not looking at all comments
-                                                if ( 'approved' == $the_comment_status )
-                                                        $actions['unapprove'] = &quot;&lt;a href='$unapprove_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:e7e7d3:action=dim-comment&amp;amp;new=unapproved vim-u vim-destructive' title='&quot; . esc_attr__( 'Unapprove this comment' ) . &quot;'&gt;&quot; . __( 'Unapprove' ) . '&lt;/a&gt;';
-                                                else if ( 'unapproved' == $the_comment_status )
-                                                        $actions['approve'] = &quot;&lt;a href='$approve_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:e7e7d3:action=dim-comment&amp;amp;new=approved vim-a vim-destructive' title='&quot; . esc_attr__( 'Approve this comment' ) . &quot;'&gt;&quot; . __( 'Approve' ) . '&lt;/a&gt;';
-                                        } else {
-                                                $actions['approve'] = &quot;&lt;a href='$approve_url' class='dim:the-comment-list:comment-$comment-&gt;comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='&quot; . esc_attr__( 'Approve this comment' ) . &quot;'&gt;&quot; . __( 'Approve' ) . '&lt;/a&gt;';
-                                                $actions['unapprove'] = &quot;&lt;a href='$unapprove_url' class='dim:the-comment-list:comment-$comment-&gt;comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='&quot; . esc_attr__( 'Unapprove this comment' ) . &quot;'&gt;&quot; . __( 'Unapprove' ) . '&lt;/a&gt;';
-                                        }
-
-                                        if ( 'spam' != $the_comment_status &amp;&amp; 'trash' != $the_comment_status ) {
-                                                $actions['spam'] = &quot;&lt;a href='$spam_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID::spam=1 vim-s vim-destructive' title='&quot; . esc_attr__( 'Mark this comment as spam' ) . &quot;'&gt;&quot; . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '&lt;/a&gt;';
-                                        } elseif ( 'spam' == $the_comment_status ) {
-                                                $actions['unspam'] = &quot;&lt;a href='$unspam_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:66cc66:unspam=1 vim-z vim-destructive'&gt;&quot; . _x( 'Not Spam', 'comment' ) . '&lt;/a&gt;';
-                                        } elseif ( 'trash' == $the_comment_status ) {
-                                                $actions['untrash'] = &quot;&lt;a href='$untrash_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID:66cc66:untrash=1 vim-z vim-destructive'&gt;&quot; . __( 'Restore' ) . '&lt;/a&gt;';
-                                        }
-
-                                        if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) {
-                                                $actions['delete'] = &quot;&lt;a href='$delete_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID::delete=1 delete vim-d vim-destructive'&gt;&quot; . __('Delete Permanently') . '&lt;/a&gt;';
-                                        } else {
-                                                $actions['trash'] = &quot;&lt;a href='$trash_url' class='delete:the-comment-list:comment-$comment-&gt;comment_ID::trash=1 delete vim-d vim-destructive' title='&quot; . esc_attr__( 'Move this comment to the trash' ) . &quot;'&gt;&quot; . _x('Trash', 'verb') . '&lt;/a&gt;';
-                                        }
-
-                                        if ( 'trash' != $the_comment_status ) {
-                                                $actions['edit'] = &quot;&lt;a href='comment.php?action=editcomment&amp;amp;c={$comment-&gt;comment_ID}' title='&quot; . esc_attr__('Edit comment') . &quot;'&gt;&quot;. __('Edit') . '&lt;/a&gt;';
-                                                $actions['quickedit'] = '&lt;a onclick=&quot;commentReply.open(\''.$comment-&gt;comment_ID.'\',\''.$post-&gt;ID.'\',\'edit\');return false;&quot; class=&quot;vim-q&quot; title=&quot;'.esc_attr__('Quick Edit').'&quot; href=&quot;#&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
-                                                if ( 'spam' != $the_comment_status )
-                                                        $actions['reply'] = '&lt;a onclick=&quot;commentReply.open(\''.$comment-&gt;comment_ID.'\',\''.$post-&gt;ID.'\');return false;&quot; class=&quot;vim-r&quot; title=&quot;'.esc_attr__('Reply to this comment').'&quot; href=&quot;#&quot;&gt;' . __('Reply') . '&lt;/a&gt;';
-                                        }
-
-                                        $actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment );
-
-                                        $i = 0;
-                                        echo '&lt;div class=&quot;row-actions&quot;&gt;';
-                                        foreach ( $actions as $action =&gt; $link ) {
-                                                ++$i;
-                                                ( ( ('approve' == $action || 'unapprove' == $action) &amp;&amp; 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
-
-                                                // Reply and quickedit need a hide-if-no-js span when not added with ajax
-                                                if ( ('reply' == $action || 'quickedit' == $action) &amp;&amp; ! $from_ajax )
-                                                        $action .= ' hide-if-no-js';
-                                                elseif ( ($action == 'untrash' &amp;&amp; $the_comment_status == 'trash') || ($action == 'unspam' &amp;&amp; $the_comment_status == 'spam') ) {
-                                                        if ('1' == get_comment_meta($comment_id, '_wp_trash_meta_status', true))
-                                                                $action .= ' approve';
-                                                        else
-                                                                $action .= ' unapprove';
-                                                }
-
-                                                echo &quot;&lt;span class='$action'&gt;$sep$link&lt;/span&gt;&quot;;
-                                        }
-                                        echo '&lt;/div&gt;';
-                                }
-
-                                echo '&lt;/td&gt;';
-                                break;
-                        case 'author':
-                                echo &quot;&lt;td $attributes&gt;&lt;strong&gt;&quot;; comment_author(); echo '&lt;/strong&gt;&lt;br /&gt;';
-                                if ( !empty($author_url) )
-                                        echo &quot;&lt;a title='$author_url' href='$author_url'&gt;$author_url_display&lt;/a&gt;&lt;br /&gt;&quot;;
-                                if ( $user_can ) {
-                                        if ( !empty($comment-&gt;comment_author_email) ) {
-                                                comment_author_email_link();
-                                                echo '&lt;br /&gt;';
-                                        }
-                                        echo '&lt;a href=&quot;edit-comments.php?s=';
-                                        comment_author_IP();
-                                        echo '&amp;amp;mode=detail';
-                                        if ( 'spam' == $comment_status )
-                                                echo '&amp;amp;comment_status=spam';
-                                        echo '&quot;&gt;';
-                                        comment_author_IP();
-                                        echo '&lt;/a&gt;';
-                                } //current_user_can
-                                echo '&lt;/td&gt;';
-                                break;
-                        case 'date':
-                                echo &quot;&lt;td $attributes&gt;&quot; . get_comment_date(__('Y/m/d \a\t g:ia')) . '&lt;/td&gt;';
-                                break;
-                        case 'response':
-                                if ( 'single' !== $mode ) {
-                                        if ( isset( $_comment_pending_count[$post-&gt;ID] ) ) {
-                                                $pending_comments = $_comment_pending_count[$post-&gt;ID];
-                                        } else {
-                                                $_comment_pending_count_temp = get_pending_comments_num( array( $post-&gt;ID ) );
-                                                $pending_comments = $_comment_pending_count[$post-&gt;ID] = $_comment_pending_count_temp[$post-&gt;ID];
-                                        }
-                                        if ( $user_can ) {
-                                                $post_link = &quot;&lt;a href='&quot; . get_edit_post_link($post-&gt;ID) . &quot;'&gt;&quot;;
-                                                $post_link .= get_the_title($post-&gt;ID) . '&lt;/a&gt;';
-                                        } else {
-                                                $post_link = get_the_title($post-&gt;ID);
-                                        }
-                                        echo &quot;&lt;td $attributes&gt;\n&quot;;
-                                        echo '&lt;div class=&quot;response-links&quot;&gt;&lt;span class=&quot;post-com-count-wrapper&quot;&gt;';
-                                        echo $post_link . '&lt;br /&gt;';
-                                        $pending_phrase = esc_attr(sprintf( __('%s pending'), number_format( $pending_comments ) ));
-                                        if ( $pending_comments )
-                                                echo '&lt;strong&gt;';
-                                        comments_number(&quot;&lt;a href='edit-comments.php?p=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link */ _x('0', 'comment count') . '&lt;/span&gt;&lt;/a&gt;', &quot;&lt;a href='edit-comments.php?p=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link */ _x('1', 'comment count') . '&lt;/span&gt;&lt;/a&gt;', &quot;&lt;a href='edit-comments.php?p=$post-&gt;ID' title='$pending_phrase' class='post-com-count'&gt;&lt;span class='comment-count'&gt;&quot; . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '&lt;/span&gt;&lt;/a&gt;');
-                                        if ( $pending_comments )
-                                                echo '&lt;/strong&gt;';
-                                        echo '&lt;/span&gt; ';
-                                        echo &quot;&lt;a href='&quot; . get_permalink( $post-&gt;ID ) . &quot;'&gt;#&lt;/a&gt;&quot;;
-                                        echo '&lt;/div&gt;';
-                                        if ( 'attachment' == $post-&gt;post_type &amp;&amp; ( $thumb = wp_get_attachment_image( $post-&gt;ID, array(80, 60), true ) ) )
-                                                echo $thumb;
-                                        echo '&lt;/td&gt;';
-                                }
-                                break;
-                        default:
-                                echo &quot;&lt;td $attributes&gt;\n&quot;;
-                                do_action( 'manage_comments_custom_column', $column_name, $comment-&gt;comment_ID );
-                                echo &quot;&lt;/td&gt;\n&quot;;
-                                break;
-                }
-        }
-        echo &quot;&lt;/tr&gt;\n&quot;;
-}
-
-/**
- * {@internal Missing Short Description}}
- *
- * @since unknown
- *
</del><span class="cx">  * @param unknown_type $position
</span><span class="cx">  * @param unknown_type $checkbox
</span><span class="cx">  * @param unknown_type $mode
</span><span class="lines">@@ -2230,8 +293,11 @@
</span><span class="cx">                 return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $columns = get_column_headers('edit-comments');
-        $hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns('edit-comments') ) );
</del><ins>+        require_once( './includes/default-list-tables.php' );
+        $table = new WP_Comments_Table( 'reply' );
+
+        $columns = $table-&gt;get_column_headers();
+        $hidden = array_intersect( array_keys( $columns ), array_filter( $table-&gt;get_hidden_columns() ) );
</ins><span class="cx">         $col_count = count($columns) - count($hidden);
</span><span class="cx"> 
</span><span class="cx"> ?&gt;
</span><span class="lines">@@ -2245,17 +311,17 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;edithead&quot; style=&quot;display:none;&quot;&gt;
</span><span class="cx">                 &lt;div class=&quot;inside&quot;&gt;
</span><del>-                &lt;label for=&quot;author&quot;&gt;&lt;?php _e('Name'); ?&gt;&lt;/label&gt;
</del><ins>+                &lt;label for=&quot;author&quot;&gt;&lt;?php _e('Name') ?&gt;&lt;/label&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;newcomment_author&quot; size=&quot;50&quot; value=&quot;&quot; tabindex=&quot;101&quot; id=&quot;author&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;inside&quot;&gt;
</span><del>-                &lt;label for=&quot;author-email&quot;&gt;&lt;?php _e('E-mail'); ?&gt;&lt;/label&gt;
</del><ins>+                &lt;label for=&quot;author-email&quot;&gt;&lt;?php _e('E-mail') ?&gt;&lt;/label&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;newcomment_author_email&quot; size=&quot;50&quot; value=&quot;&quot; tabindex=&quot;102&quot; id=&quot;author-email&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;inside&quot;&gt;
</span><del>-                &lt;label for=&quot;author-url&quot;&gt;&lt;?php _e('URL'); ?&gt;&lt;/label&gt;
</del><ins>+                &lt;label for=&quot;author-url&quot;&gt;&lt;?php _e('URL') ?&gt;&lt;/label&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; id=&quot;author-url&quot; name=&quot;newcomment_author_url&quot; size=&quot;103&quot; value=&quot;&quot; tabindex=&quot;103&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">                 &lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -2337,8 +403,8 @@
</span><span class="cx"> &lt;table id=&quot;list-table&quot;&gt;
</span><span class="cx">         &lt;thead&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th class=&quot;left&quot;&gt;&lt;?php _e( 'Name' ); ?&gt;&lt;/th&gt;
-                &lt;th&gt;&lt;?php _e( 'Value' ); ?&gt;&lt;/th&gt;
</del><ins>+                &lt;th class=&quot;left&quot;&gt;&lt;?php _e( 'Name' ) ?&gt;&lt;/th&gt;
+                &lt;th&gt;&lt;?php _e( 'Value' ) ?&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;/thead&gt;
</span><span class="cx">         &lt;tbody id='the-list' class='list:meta'&gt;
</span><span class="lines">@@ -2422,12 +488,12 @@
</span><span class="cx">         if ( $keys )
</span><span class="cx">                 natcasesort($keys);
</span><span class="cx"> ?&gt;
</span><del>-&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Add New Custom Field:' ); ?&gt;&lt;/strong&gt;&lt;/p&gt;
</del><ins>+&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Add New Custom Field:' ) ?&gt;&lt;/strong&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;table id=&quot;newmeta&quot;&gt;
</span><span class="cx"> &lt;thead&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-&lt;th class=&quot;left&quot;&gt;&lt;label for=&quot;metakeyselect&quot;&gt;&lt;?php _e( 'Name' ); ?&gt;&lt;/label&gt;&lt;/th&gt;
-&lt;th&gt;&lt;label for=&quot;metavalue&quot;&gt;&lt;?php _e( 'Value' ); ?&gt;&lt;/label&gt;&lt;/th&gt;
</del><ins>+&lt;th class=&quot;left&quot;&gt;&lt;label for=&quot;metakeyselect&quot;&gt;&lt;?php _e( 'Name' ) ?&gt;&lt;/label&gt;&lt;/th&gt;
+&lt;th&gt;&lt;label for=&quot;metavalue&quot;&gt;&lt;?php _e( 'Value' ) ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;/thead&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -2440,7 +506,7 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><span class="cx">         foreach ( $keys as $key ) {
</span><del>-                echo &quot;\n&lt;option value='&quot; . esc_attr($key) . &quot;'&gt;&quot; . esc_html($key) . '&lt;/option&gt;';
</del><ins>+                echo &quot;\n&lt;option value='&quot; . esc_attr($key) . &quot;'&gt;&quot; . esc_html($key) . &quot;&lt;/option&gt;&quot;;
</ins><span class="cx">         }
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;/select&gt;
</span><span class="lines">@@ -2456,7 +522,7 @@
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;submit&quot;&gt;
</span><del>-&lt;input type=&quot;submit&quot; id=&quot;addmetasub&quot; name=&quot;addmeta&quot; class=&quot;add:the-list:newmeta&quot; tabindex=&quot;9&quot; value=&quot;&lt;?php esc_attr_e( 'Add Custom Field' ); ?&gt;&quot; /&gt;
</del><ins>+&lt;input type=&quot;submit&quot; id=&quot;addmetasub&quot; name=&quot;addmeta&quot; class=&quot;add:the-list:newmeta&quot; tabindex=&quot;9&quot; value=&quot;&lt;?php esc_attr_e( 'Add Custom Field' ) ?&gt;&quot; /&gt;
</ins><span class="cx"> &lt;?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?&gt;
</span><span class="cx"> &lt;/td&gt;&lt;/tr&gt;
</span><span class="cx"> &lt;/tbody&gt;
</span><span class="lines">@@ -2586,7 +652,7 @@
</span><span class="cx">                         else
</span><span class="cx">                                 $current = '';
</span><span class="cx"> 
</span><del>-                        echo &quot;\n\t&lt;option class='level-$level' value='$item-&gt;ID'$current&gt;$pad &quot; . esc_html($item-&gt;post_title) . '&lt;/option&gt;';
</del><ins>+                        echo &quot;\n\t&lt;option class='level-$level' value='$item-&gt;ID'$current&gt;$pad &quot; . esc_html($item-&gt;post_title) . &quot;&lt;/option&gt;&quot;;
</ins><span class="cx">                         parent_dropdown( $default, $item-&gt;ID, $level +1 );
</span><span class="cx">                 }
</span><span class="cx">         } else {
</span><span class="lines">@@ -2618,26 +684,26 @@
</span><span class="cx">         &lt;col /&gt;
</span><span class="cx">         &lt;col class=&quot;widefat&quot; /&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'URL' ); ?&gt;&lt;/th&gt;
</del><ins>+                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'URL' ) ?&gt;&lt;/th&gt;
</ins><span class="cx">                 &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;?php echo wp_get_attachment_url(); ?&gt;&lt;/textarea&gt;&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> &lt;?php if ( $icon ) : ?&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">                 &lt;th scope=&quot;row&quot;&gt;&lt;?php $thumb ? _e( 'Thumbnail linked to file' ) : _e( 'Image linked to file' ); ?&gt;&lt;/th&gt;
</span><del>-                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot;&gt;&lt;?php echo $icon; ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot;&gt;&lt;?php echo $icon ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">                 &lt;th scope=&quot;row&quot;&gt;&lt;?php $thumb ? _e( 'Thumbnail linked to page' ) : _e( 'Image linked to page' ); ?&gt;&lt;/th&gt;
</span><del>-                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ); ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID; ?&gt;&quot;&gt;&lt;?php echo $icon; ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ) ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID; ?&gt;&quot;&gt;&lt;?php echo $icon ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> &lt;?php else : ?&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to file' ); ?&gt;&lt;/th&gt;
</del><ins>+                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to file' ) ?&gt;&lt;/th&gt;
</ins><span class="cx">                 &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot; class=&quot;attachmentlink&quot;&gt;&lt;?php echo basename( wp_get_attachment_url() ); ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to page' ); ?&gt;&lt;/th&gt;
-                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ); ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID; ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to page' ) ?&gt;&lt;/th&gt;
+                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ) ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="lines">@@ -2776,36 +842,36 @@
</span><span class="cx">                 $wp_meta_boxes[$page][$context] = array();
</span><span class="cx"> 
</span><span class="cx">         foreach ( array_keys($wp_meta_boxes[$page]) as $a_context ) {
</span><del>-                foreach ( array('high', 'core', 'default', 'low') as $a_priority ) {
-                        if ( !isset($wp_meta_boxes[$page][$a_context][$a_priority][$id]) )
-                                continue;
-        
-                        // If a core box was previously added or removed by a plugin, don't add.
-                        if ( 'core' == $priority ) {
-                                // If core box previously deleted, don't add
-                                if ( false === $wp_meta_boxes[$page][$a_context][$a_priority][$id] )
-                                        return;
-                                // If box was added with default priority, give it core priority to maintain sort order
-                                if ( 'default' == $a_priority ) {
-                                        $wp_meta_boxes[$page][$a_context]['core'][$id] = $wp_meta_boxes[$page][$a_context]['default'][$id];
-                                        unset($wp_meta_boxes[$page][$a_context]['default'][$id]);
-                                }
</del><ins>+        foreach ( array('high', 'core', 'default', 'low') as $a_priority ) {
+                if ( !isset($wp_meta_boxes[$page][$a_context][$a_priority][$id]) )
+                        continue;
+
+                // If a core box was previously added or removed by a plugin, don't add.
+                if ( 'core' == $priority ) {
+                        // If core box previously deleted, don't add
+                        if ( false === $wp_meta_boxes[$page][$a_context][$a_priority][$id] )
</ins><span class="cx">                                 return;
</span><ins>+                        // If box was added with default priority, give it core priority to maintain sort order
+                        if ( 'default' == $a_priority ) {
+                                $wp_meta_boxes[$page][$a_context]['core'][$id] = $wp_meta_boxes[$page][$a_context]['default'][$id];
+                                unset($wp_meta_boxes[$page][$a_context]['default'][$id]);
</ins><span class="cx">                         }
</span><del>-                        // If no priority given and id already present, use existing priority
-                        if ( empty($priority) ) {
-                                $priority = $a_priority;
-                        // else if we're adding to the sorted priortiy, we don't know the title or callback. Glab them from the previously added context/priority.
-                        } elseif ( 'sorted' == $priority ) {
-                                $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title'];
-                                $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback'];
-                                $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args'];
-                        }
-                        // An id can be in only one priority and one context
-                        if ( $priority != $a_priority || $context != $a_context )
-                                unset($wp_meta_boxes[$page][$a_context][$a_priority][$id]);
</del><ins>+                        return;
</ins><span class="cx">                 }
</span><ins>+                // If no priority given and id already present, use existing priority
+                if ( empty($priority) ) {
+                        $priority = $a_priority;
+                // else if we're adding to the sorted priortiy, we don't know the title or callback. Glab them from the previously added context/priority.
+                } elseif ( 'sorted' == $priority ) {
+                        $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title'];
+                        $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback'];
+                        $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args'];
+                }
+                // An id can be in only one priority and one context
+                if ( $priority != $a_priority || $context != $a_context )
+                        unset($wp_meta_boxes[$page][$a_context][$a_priority][$id]);
</ins><span class="cx">         }
</span><ins>+        }
</ins><span class="cx"> 
</span><span class="cx">         if ( empty($priority) )
</span><span class="cx">                 $priority = 'low';
</span><span class="lines">@@ -2868,7 +934,7 @@
</span><span class="cx">                 }
</span><span class="cx">         } while(0);
</span><span class="cx"> 
</span><del>-        echo '&lt;/div&gt;';
</del><ins>+        echo &quot;&lt;/div&gt;&quot;;
</ins><span class="cx"> 
</span><span class="cx">         return $i;
</span><span class="cx"> 
</span><span class="lines">@@ -3149,7 +1215,7 @@
</span><span class="cx">  * @param boolean $sanitize Whether to re-sanitize the setting value before returning errors.
</span><span class="cx">  * @return array Array of settings errors
</span><span class="cx">  */
</span><del>-function get_settings_errors( $setting = '', $sanitize = false ) {
</del><ins>+function get_settings_errors( $setting = '', $sanitize = FALSE ) {
</ins><span class="cx">         global $wp_settings_errors;
</span><span class="cx"> 
</span><span class="cx">         // If $sanitize is true, manually re-run the sanitizisation for this option
</span><span class="lines">@@ -3200,23 +1266,23 @@
</span><span class="cx">  * @param boolean $hide_on_update If set to true errors will not be shown if the settings page has already been submitted.
</span><span class="cx">  * @return &lt;type&gt;
</span><span class="cx">  */
</span><del>-function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) {
</del><ins>+function settings_errors ( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) {
</ins><span class="cx"> 
</span><del>-        if ( $hide_on_update &amp;&amp; !empty($_GET['updated']) )
-                return;
</del><ins>+        if ($hide_on_update AND $_GET['updated']) return;
</ins><span class="cx"> 
</span><span class="cx">         $settings_errors = get_settings_errors( $setting, $sanitize );
</span><span class="cx"> 
</span><del>-        if ( !is_array($settings_errors) )
-                return;
</del><ins>+        if ( !is_array($settings_errors) ) return;
</ins><span class="cx"> 
</span><ins>+        $output = '';
</ins><span class="cx">         foreach ( $settings_errors as $key =&gt; $details ) {
</span><span class="cx">                 $css_id = 'setting-error-' . $details['code'];
</span><span class="cx">                 $css_class = $details['type'] . ' settings-error';
</span><del>-                echo &quot;&lt;div id='$css_id' class='$css_class'&gt;\n&quot;;
-                echo &quot;&lt;p&gt;&lt;strong&gt;{$details['message']}&lt;/strong&gt;&lt;/p&gt;&quot;;
-                echo &quot;&lt;/div&gt;\n&quot;;
</del><ins>+                $output .= &quot;&lt;div id='$css_id' class='$css_class'&gt; \n&quot;;
+                $output .= &quot;&lt;p&gt;&lt;strong&gt;{$details['message']}&lt;/strong&gt;&lt;/p&gt;&quot;;
+                $output .= &quot;&lt;/div&gt; \n&quot;;
</ins><span class="cx">         }
</span><ins>+        echo $output;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -3227,12 +1293,14 @@
</span><span class="cx">  * @param unknown_type $page
</span><span class="cx">  */
</span><span class="cx"> function manage_columns_prefs( $page ) {
</span><del>-        $columns = get_column_headers( $page );
-        $hidden  = get_hidden_columns( $page );
</del><ins>+        global $table;
+
+        list( $columns, $hidden ) = $table-&gt;get_column_headers();
+
</ins><span class="cx">         $special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username');
</span><span class="cx"> 
</span><span class="cx">         foreach ( $columns as $column =&gt; $title ) {
</span><del>-                // Can't hide these or they are special
</del><ins>+                // Can't hide these for they are special
</ins><span class="cx">                 if ( in_array( $column, $special ) )
</span><span class="cx">                         continue;
</span><span class="cx">                 if ( empty( $title ) )
</span><span class="lines">@@ -3276,7 +1344,7 @@
</span><span class="cx">                                         if ( 'attachment' == $post-&gt;name )
</span><span class="cx">                                                 continue;
</span><span class="cx">                                 ?&gt;
</span><del>-                                &lt;input type=&quot;radio&quot; name=&quot;find-posts-what&quot; id=&quot;find-posts-&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; &lt;?php checked($post-&gt;name, 'post'); ?&gt; /&gt;
</del><ins>+                                &lt;input type=&quot;radio&quot; name=&quot;find-posts-what&quot; id=&quot;find-posts-&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; &lt;?php checked($post-&gt;name,  'post'); ?&gt; /&gt;
</ins><span class="cx">                                 &lt;label for=&quot;find-posts-&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot;&gt;&lt;?php echo $post-&gt;label; ?&gt;&lt;/label&gt;
</span><span class="cx">                                 &lt;?php
</span><span class="cx">                                 } ?&gt;
</span><span class="lines">@@ -3302,8 +1370,7 @@
</span><span class="cx">  */
</span><span class="cx"> function the_post_password() {
</span><span class="cx">         global $post;
</span><del>-        if ( isset( $post-&gt;post_password ) )
-                echo esc_attr( $post-&gt;post_password );
</del><ins>+        if ( isset( $post-&gt;post_password ) ) echo esc_attr( $post-&gt;post_password );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -3407,7 +1474,7 @@
</span><span class="cx"> 
</span><span class="cx">         array_shift($allowed_actions);
</span><span class="cx"> 
</span><del>-        foreach ( $allowed_actions as $action =&gt; $label ) {
</del><ins>+        foreach ( $allowed_actions as $action =&gt; $label) {
</ins><span class="cx">                 echo &quot;&lt;div class='favorite-action'&gt;&lt;a href='$action'&gt;&quot;;
</span><span class="cx">                 echo $label;
</span><span class="cx">                 echo &quot;&lt;/a&gt;&lt;/div&gt;\n&quot;;
</span><span class="lines">@@ -3443,8 +1510,7 @@
</span><span class="cx">  *
</span><span class="cx">  */
</span><span class="cx"> function _admin_search_query() {
</span><del>-        if ( isset($_GET['s']) )
-                echo esc_attr( stripslashes( $_GET['s'] ) );
</del><ins>+        echo isset($_GET['s']) ? esc_attr( stripslashes( $_GET['s'] ) ) : '';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -3456,18 +1522,17 @@
</span><span class="cx">  *
</span><span class="cx">  */
</span><span class="cx"> function iframe_header( $title = '', $limit_styles = false ) {
</span><del>-        global $hook_suffix;
-?&gt;
-&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</del><ins>+global $hook_suffix;
+?&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</ins><span class="cx"> &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &lt;?php do_action('admin_xml_ns'); ?&gt; &lt;?php language_attributes(); ?&gt;&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php echo get_option('blog_charset'); ?&gt;&quot; /&gt;
</span><del>-&lt;title&gt;&lt;?php bloginfo('name'); ?&gt; &amp;rsaquo; &lt;?php echo $title; ?&gt; &amp;#8212; &lt;?php _e('WordPress'); ?&gt;&lt;/title&gt;
</del><ins>+&lt;title&gt;&lt;?php bloginfo('name') ?&gt; &amp;rsaquo; &lt;?php echo $title ?&gt; &amp;#8212; &lt;?php _e('WordPress'); ?&gt;&lt;/title&gt;
</ins><span class="cx"> &lt;?php
</span><del>-        wp_enqueue_style( 'global' );
-        if ( ! $limit_styles )
-                wp_enqueue_style( 'wp-admin' );
-        wp_enqueue_style( 'colors' );
</del><ins>+wp_enqueue_style( 'global' );
+if ( ! $limit_styles )
+        wp_enqueue_style( 'wp-admin' );
+wp_enqueue_style( 'colors' );
</ins><span class="cx"> ?&gt;
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> //&lt;![CDATA[
</span><span class="lines">@@ -3476,14 +1541,14 @@
</span><span class="cx"> //]]&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;?php
</span><del>-        do_action('admin_print_styles');
-        do_action('admin_print_scripts');
-        do_action('admin_head');
-        
-        $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
</del><ins>+do_action('admin_print_styles');
+do_action('admin_print_scripts');
+do_action('admin_head');
+
+$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
</ins><span class="cx"> ?&gt;
</span><span class="cx"> &lt;/head&gt;
</span><del>-&lt;body&lt;?php if ( isset($GLOBALS['body_id']) ) echo ' id=&quot;' . $GLOBALS['body_id'] . '&quot;'; ?&gt; class=&quot;no-js &lt;?php echo $admin_body_class; ?&gt;&quot;&gt;
</del><ins>+&lt;body&lt;?php if ( isset($GLOBALS['body_id']) ) echo ' id=&quot;' . $GLOBALS['body_id'] . '&quot;'; ?&gt;  class=&quot;no-js &lt;?php echo $admin_body_class; ?&gt;&quot;&gt;
</ins><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> //&lt;![CDATA[
</span><span class="cx"> (function(){
</span><span class="lines">@@ -3564,12 +1629,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function screen_meta($screen) {
</span><del>-        global $wp_meta_boxes, $_wp_contextual_help, $title;
</del><ins>+        global $wp_meta_boxes, $_wp_contextual_help, $title, $table;
</ins><span class="cx"> 
</span><span class="cx">         if ( is_string($screen) )
</span><span class="cx">                 $screen = convert_to_screen($screen);
</span><span class="cx"> 
</span><del>-        $column_screens = get_column_headers($screen);
</del><ins>+        if ( is_object($table) )
+                list( $screen_columns ) = $table-&gt;get_column_headers();
</ins><span class="cx">         $meta_screens = array('index' =&gt; 'dashboard');
</span><span class="cx"> 
</span><span class="cx">         if ( isset($meta_screens[$screen-&gt;id]) ) {
</span><span class="lines">@@ -3578,7 +1644,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $show_screen = false;
</span><del>-        if ( !empty($wp_meta_boxes[$screen-&gt;id]) || !empty($column_screens) )
</del><ins>+        if ( !empty($wp_meta_boxes[$screen-&gt;id]) || !empty($screen_columns) )
</ins><span class="cx">                 $show_screen = true;
</span><span class="cx"> 
</span><span class="cx">         $screen_options = screen_options($screen);
</span><span class="lines">@@ -3596,22 +1662,23 @@
</span><span class="cx">                         $show_screen = true;
</span><span class="cx">                         break;
</span><span class="cx">         }
</span><del>-        if ( ! empty( $settings ) )
</del><ins>+        if( ! empty( $settings ) )
</ins><span class="cx">                 $show_screen = true;
</span><ins>+
</ins><span class="cx"> ?&gt;
</span><span class="cx"> &lt;div id=&quot;screen-meta&quot;&gt;
</span><span class="cx"> &lt;?php if ( $show_screen ) : ?&gt;
</span><span class="cx"> &lt;div id=&quot;screen-options-wrap&quot; class=&quot;hidden&quot;&gt;
</span><span class="cx">         &lt;form id=&quot;adv-settings&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx">         &lt;?php if ( isset($wp_meta_boxes[$screen-&gt;id]) ) : ?&gt;
</span><del>-                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes'); ?&gt;&lt;/h5&gt;
</del><ins>+                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes') ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;div class=&quot;metabox-prefs&quot;&gt;
</span><span class="cx">                         &lt;?php meta_box_prefs($screen); ?&gt;
</span><span class="cx">                         &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">                 &lt;?php endif;
</span><del>-                if ( ! empty($column_screens) ) : ?&gt;
-                &lt;h5&gt;&lt;?php echo ( isset( $column_screens['_title'] ) ? $column_screens['_title'] : _x('Show on screen', 'Columns') ); ?&gt;&lt;/h5&gt;
</del><ins>+                if ( ! empty($screen_columns) ) : ?&gt;
+                &lt;h5&gt;&lt;?php echo ( isset( $screen_columns['_title'] ) ?  $screen_columns['_title'] :  _x('Show on screen', 'Columns') ) ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;div class=&quot;metabox-prefs&quot;&gt;
</span><span class="cx">                         &lt;?php manage_columns_prefs($screen); ?&gt;
</span><span class="cx">                         &lt;br class=&quot;clear&quot; /&gt;
</span><span class="lines">@@ -3621,7 +1688,7 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !empty( $screen_options ) ) {
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Screen Options'); ?&gt;&lt;/h5&gt;
</del><ins>+                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Screen Options') ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -3655,11 +1722,11 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;screen-meta-links&quot;&gt;
</span><span class="cx"> &lt;div id=&quot;contextual-help-link-wrap&quot; class=&quot;hide-if-no-js screen-meta-toggle&quot;&gt;
</span><del>-&lt;a href=&quot;#contextual-help&quot; id=&quot;contextual-help-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Help'); ?&gt;&lt;/a&gt;
</del><ins>+&lt;a href=&quot;#contextual-help&quot; id=&quot;contextual-help-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Help') ?&gt;&lt;/a&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php if ( $show_screen ) { ?&gt;
</span><span class="cx"> &lt;div id=&quot;screen-options-link-wrap&quot; class=&quot;hide-if-no-js screen-meta-toggle&quot;&gt;
</span><del>-&lt;a href=&quot;#screen-options&quot; id=&quot;show-settings-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Screen Options'); ?&gt;&lt;/a&gt;
</del><ins>+&lt;a href=&quot;#screen-options&quot; id=&quot;show-settings-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Screen Options') ?&gt;&lt;/a&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php } ?&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -3672,7 +1739,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @since 2.7.0
</span><span class="cx">  *
</span><del>- * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
</del><ins>+ * @param string $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
</ins><span class="cx">  * @param string $help Arbitrary help text
</span><span class="cx">  */
</span><span class="cx"> function add_contextual_help($screen, $help) {
</span><span class="lines">@@ -3727,7 +1794,7 @@
</span><span class="cx">         $num = $columns[$screen-&gt;id];
</span><span class="cx"> 
</span><span class="cx">         if ( ! $screen_layout_columns )
</span><del>-                $screen_layout_columns = 2;
</del><ins>+                        $screen_layout_columns = 2;
</ins><span class="cx"> 
</span><span class="cx">         $i = 1;
</span><span class="cx">         $return = '&lt;h5&gt;' . __('Screen Layout') . &quot;&lt;/h5&gt;\n&lt;div class='columns-prefs'&gt;&quot; . __('Number of Columns:') . &quot;\n&quot;;
</span><span class="lines">@@ -3747,7 +1814,7 @@
</span><span class="cx">                 case 'edit':
</span><span class="cx">                 case 'edit-pages':
</span><span class="cx">                         $post_type = 'post';
</span><del>-                        if ( isset($_GET['post_type']) &amp;&amp; in_array( $_GET['post_type'], get_post_types( array('show_ui' =&gt; true ) ) ) )
</del><ins>+                        if ( isset($_GET['post_type']) &amp;&amp; in_array( $_GET['post_type'], get_post_types( array('public' =&gt; true ) ) ) )
</ins><span class="cx">                                 $post_type = $_GET['post_type'];
</span><span class="cx">                         $post_type_object = get_post_type_object($post_type);
</span><span class="cx">                         $per_page_label = $post_type_object-&gt;labels-&gt;name;
</span><span class="lines">@@ -3755,6 +1822,7 @@
</span><span class="cx">                 case 'ms-sites':
</span><span class="cx">                         $per_page_label = _x( 'Sites', 'sites per page (screen options)' );
</span><span class="cx">                         break;
</span><ins>+                case 'users':
</ins><span class="cx">                 case 'ms-users':
</span><span class="cx">                         $per_page_label = _x( 'Users', 'users per page (screen options)' );
</span><span class="cx">                         break;
</span><span class="lines">@@ -3904,7 +1972,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @param string $id Screen id, optional.
</span><span class="cx">  */
</span><del>-function set_current_screen( $id = '' ) {
</del><ins>+function set_current_screen( $id =  '' ) {
</ins><span class="cx">         global $current_screen, $hook_suffix, $typenow, $taxnow;
</span><span class="cx"> 
</span><span class="cx">         $action = '';
</span><span class="lines">@@ -3962,4 +2030,3 @@
</span><span class="cx">         $current_screen = apply_filters('current_screen', $current_screen);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-?&gt;
</del></span></pre></div>
<a id="trunkwpadminincludesthemeinstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/theme-install.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/theme-install.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/includes/theme-install.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -88,60 +88,7 @@
</span><span class="cx">         return $feature_list;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-add_action('install_themes_search', 'install_theme_search', 10, 1);
</del><span class="cx"> /**
</span><del>- * Display theme search results
- *
- * @since 2.8.0
- *
- * @param string $page
- */
-function install_theme_search($page) {
-        global $theme_field_defaults;
-
-        $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
-        $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
-
-        $args = array();
-
-        switch( $type ){
-                case 'tag':
-                        $terms = explode(',', $term);
-                        $terms = array_map('trim', $terms);
-                        $terms = array_map('sanitize_title_with_dashes', $terms);
-                        $args['tag'] = $terms;
-                        break;
-                case 'term':
-                        $args['search'] = $term;
-                        break;
-                case 'author':
-                        $args['author'] = $term;
-                        break;
-        }
-
-        $args['page'] = $page;
-        $args['fields'] = $theme_field_defaults;
-
-        if ( !empty( $_POST['features'] ) ) {
-                $terms = $_POST['features'];
-                $terms = array_map( 'trim', $terms );
-                $terms = array_map( 'sanitize_title_with_dashes', $terms );
-                $args['tag'] = $terms;
-                $_REQUEST['s'] = implode( ',', $terms );
-                $_REQUEST['type'] = 'tag';
-        }
-
-        $api = themes_api('query_themes', $args);
-
-        if ( is_wp_error($api) )
-                wp_die($api);
-
-        add_action('install_themes_table_header', 'install_theme_search_form');
-
-        display_themes($api-&gt;themes, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-/**
</del><span class="cx">  * Display search form for searching themes.
</span><span class="cx">  *
</span><span class="cx">  * @since 2.8.0
</span><span class="lines">@@ -152,7 +99,8 @@
</span><span class="cx">         ?&gt;
</span><span class="cx"> &lt;p class=&quot;install-help&quot;&gt;&lt;?php _e('Search for themes by keyword, author, or tag.') ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;form id=&quot;search-themes&quot; method=&quot;post&quot; action=&quot;&lt;?php echo admin_url( 'theme-install.php?tab=search' ); ?&gt;&quot;&gt;
</del><ins>+&lt;form id=&quot;search-themes&quot; method=&quot;get&quot; action=&quot;&quot;&gt;
+        &lt;input type=&quot;hidden&quot; name=&quot;tab&quot; value=&quot;search&quot; /&gt;
</ins><span class="cx">         &lt;select        name=&quot;type&quot; id=&quot;typeselector&quot;&gt;
</span><span class="cx">         &lt;option value=&quot;term&quot; &lt;?php selected('term', $type) ?&gt;&gt;&lt;?php _e('Term'); ?&gt;&lt;/option&gt;
</span><span class="cx">         &lt;option value=&quot;author&quot; &lt;?php selected('author', $type) ?&gt;&gt;&lt;?php _e('Author'); ?&gt;&lt;/option&gt;
</span><span class="lines">@@ -164,7 +112,6 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-add_action('install_themes_dashboard', 'install_themes_dashboard');
</del><span class="cx"> /**
</span><span class="cx">  * Display tags filter for themes.
</span><span class="cx">  *
</span><span class="lines">@@ -222,57 +169,8 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><ins>+add_action('install_themes_dashboard', 'install_themes_dashboard');
</ins><span class="cx"> 
</span><del>-add_action('install_themes_featured', 'install_themes_featured', 10, 1);
-/**
- * Display featured themes.
- *
- * @since 2.8.0
- *
- * @param string $page
- */
-function install_themes_featured($page = 1) {
-        global $theme_field_defaults;
-        $args = array('browse' =&gt; 'featured', 'page' =&gt; $page, 'fields' =&gt; $theme_field_defaults);
-        $api = themes_api('query_themes', $args);
-        if ( is_wp_error($api) )
-                wp_die($api);
-        display_themes($api-&gt;themes, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-add_action('install_themes_new', 'install_themes_new', 10, 1);
-/**
- * Display new themes/
- *
- * @since 2.8.0
- *
- * @param string $page
- */
-function install_themes_new($page = 1) {
-        global $theme_field_defaults;
-        $args = array('browse' =&gt; 'new', 'page' =&gt; $page, 'fields' =&gt; $theme_field_defaults);
-        $api = themes_api('query_themes', $args);
-        if ( is_wp_error($api) )
-                wp_die($api);
-        display_themes($api-&gt;themes, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-add_action('install_themes_updated', 'install_themes_updated', 10, 1);
-/**
- * Display recently updated themes.
- *
- * @since 2.8.0
- *
- * @param string $page
- */
-function install_themes_updated($page = 1) {
-        global $theme_field_defaults;
-        $args = array('browse' =&gt; 'updated', 'page' =&gt; $page, 'fields' =&gt; $theme_field_defaults);
-        $api = themes_api('query_themes', $args);
-        display_themes($api-&gt;themes, $api-&gt;info['page'], $api-&gt;info['pages']);
-}
-
-add_action('install_themes_upload', 'install_themes_upload', 10, 1);
</del><span class="cx"> function install_themes_upload($page = 1) {
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;h4&gt;&lt;?php _e('Install a theme in .zip format') ?&gt;&lt;/h4&gt;
</span><span class="lines">@@ -285,6 +183,7 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx">         &lt;?php
</span><span class="cx"> }
</span><ins>+add_action('install_themes_upload', 'install_themes_upload', 10, 1);
</ins><span class="cx"> 
</span><span class="cx"> function display_theme($theme, $actions = null, $show_details = true) {
</span><span class="cx">         global $themes_allowedtags;
</span><span class="lines">@@ -360,84 +259,17 @@
</span><span class="cx">  * Display theme content based on theme list.
</span><span class="cx">  *
</span><span class="cx">  * @since 2.8.0
</span><del>- *
- * @param array $themes List of themes.
- * @param string $page
- * @param int $totalpages Number of pages.
</del><span class="cx">  */
</span><del>-function display_themes($themes, $page = 1, $totalpages = 1) {
-        $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
-        $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
-        ?&gt;
-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;div class=&quot;alignleft actions&quot;&gt;&lt;?php do_action('install_themes_table_header'); ?&gt;&lt;/div&gt;
-        &lt;?php
-        $url = esc_url($_SERVER['REQUEST_URI']);
-        if ( ! empty($term) )
-                $url = add_query_arg('s', $term, $url);
-        if ( ! empty($type) )
-                $url = add_query_arg('type', $type, $url);
</del><ins>+function display_themes() {
+        global $table;
</ins><span class="cx"> 
</span><del>-        $page_links = paginate_links( array(
-                        'base' =&gt; add_query_arg('paged', '%#%', $url),
-                        'format' =&gt; '',
-                        'prev_text' =&gt; __('&amp;laquo;'),
-                        'next_text' =&gt; __('&amp;raquo;'),
-                        'total' =&gt; $totalpages,
-                        'current' =&gt; $page
-        ));
-
-        if ( $page_links )
-                echo &quot;\t\t&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
-        ?&gt;
-&lt;/div&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;?php
-        if ( empty($themes) ) {
-                _e('No themes found');
-                return;
-        }
-?&gt;
-&lt;table id=&quot;availablethemes&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
-&lt;?php
-        $rows = ceil(count($themes) / 3);
-        $table = array();
-        $theme_keys = array_keys($themes);
-        for ( $row = 1; $row &lt;= $rows; $row++ )
-                for ( $col = 1; $col &lt;= 3; $col++ )
-                        $table[$row][$col] = array_shift($theme_keys);
-
-        foreach ( $table as $row =&gt; $cols ) {
-        ?&gt;
-        &lt;tr&gt;
-        &lt;?php
-
-        foreach ( $cols as $col =&gt; $theme_index ) {
-                $class = array('available-theme');
-                if ( $row == 1 ) $class[] = 'top';
-                if ( $col == 1 ) $class[] = 'left';
-                if ( $row == $rows ) $class[] = 'bottom';
-                if ( $col == 3 ) $class[] = 'right';
-                ?&gt;
-                &lt;td class=&quot;&lt;?php echo join(' ', $class); ?&gt;&quot;&gt;&lt;?php
-                        if ( isset($themes[$theme_index]) )
-                                display_theme($themes[$theme_index]);
-                ?&gt;&lt;/td&gt;
-                &lt;?php } // end foreach $cols ?&gt;
-        &lt;/tr&gt;
-        &lt;?php } // end foreach $table ?&gt;
-&lt;/table&gt;
-
-&lt;div class=&quot;tablenav&quot;&gt;&lt;?php if ( $page_links )
-echo &quot;\t\t&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;; ?&gt; &lt;br
-        class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
-&lt;?php
</del><ins>+        $table-&gt;display();
</ins><span class="cx"> }
</span><ins>+add_action('install_themes_search', 'display_themes');
+add_action('install_themes_featured', 'display_themes');
+add_action('install_themes_new', 'display_themes');
+add_action('install_themes_updated', 'display_themes');
</ins><span class="cx"> 
</span><del>-add_action('install_themes_pre_theme-information', 'install_theme_information');
-
</del><span class="cx"> /**
</span><span class="cx">  * Display theme information in dialog box form.
</span><span class="cx">  *
</span><span class="lines">@@ -546,3 +378,5 @@
</span><span class="cx">         iframe_footer();
</span><span class="cx">         exit;
</span><span class="cx"> }
</span><ins>+add_action('install_themes_pre_theme-information', 'install_theme_information');
+
</ins></span></pre></div>
<a id="trunkwpadminincludesuserphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/user.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/user.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/includes/user.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -482,343 +482,6 @@
</span><span class="cx">         $user-&gt;remove_all_caps();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-if ( !class_exists('WP_User_Search') ) :
-/**
- * WordPress User Search class.
- *
- * @since unknown
- */
-class WP_User_Search {
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var unknown_type
-         */
-        var $results;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var unknown_type
-         */
-        var $search_term;
-
-        /**
-         * Page number.
-         *
-         * @since unknown
-         * @access private
-         * @var int
-         */
-        var $page;
-
-        /**
-         * Role name that users have.
-         *
-         * @since unknown
-         * @access private
-         * @var string
-         */
-        var $role;
-
-        /**
-         * Raw page number.
-         *
-         * @since unknown
-         * @access private
-         * @var int|bool
-         */
-        var $raw_page;
-
-        /**
-         * Amount of users to display per page.
-         *
-         * @since unknown
-         * @access public
-         * @var int
-         */
-        var $users_per_page = 50;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var unknown_type
-         */
-        var $first_user;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var int
-         */
-        var $last_user;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var string
-         */
-        var $query_limit;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since 3.0.0
-         * @access private
-         * @var string
-         */
-        var $query_orderby;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since 3.0.0
-         * @access private
-         * @var string
-         */
-        var $query_from;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since 3.0.0
-         * @access private
-         * @var string
-         */
-        var $query_where;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var int
-         */
-        var $total_users_for_query = 0;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var bool
-         */
-        var $too_many_total_users = false;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var unknown_type
-         */
-        var $search_errors;
-
-        /**
-         * {@internal Missing Description}}
-         *
-         * @since unknown
-         * @access private
-         * @var unknown_type
-         */
-        var $paging_text;
-
-        /**
-         * PHP4 Constructor - Sets up the object properties.
-         *
-         * @since unknown
-         *
-         * @param string $search_term Search terms string.
-         * @param int $page Optional. Page ID.
-         * @param string $role Role name.
-         * @return WP_User_Search
-         */
-        function WP_User_Search ($search_term = '', $page = '', $role = '') {
-                $this-&gt;search_term = $search_term;
-                $this-&gt;raw_page = ( '' == $page ) ? false : (int) $page;
-                $this-&gt;page = (int) ( '' == $page ) ? 1 : $page;
-                $this-&gt;role = $role;
-
-                $this-&gt;prepare_query();
-                $this-&gt;query();
-                $this-&gt;prepare_vars_for_template_usage();
-                $this-&gt;do_paging();
-        }
-
-        /**
-         * {@internal Missing Short Description}}
-         *
-         * {@internal Missing Long Description}}
-         *
-         * @since unknown
-         * @access public
-         */
-        function prepare_query() {
-                global $wpdb;
-                $this-&gt;first_user = ($this-&gt;page - 1) * $this-&gt;users_per_page;
-
-                $this-&gt;query_limit = $wpdb-&gt;prepare(&quot; LIMIT %d, %d&quot;, $this-&gt;first_user, $this-&gt;users_per_page);
-                $this-&gt;query_orderby = ' ORDER BY user_login';
-
-                $search_sql = '';
-                if ( $this-&gt;search_term ) {
-                        $searches = array();
-                        $search_sql = 'AND (';
-                        foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
-                                $searches[] = $col . &quot; LIKE '%$this-&gt;search_term%'&quot;;
-                        $search_sql .= implode(' OR ', $searches);
-                        $search_sql .= ')';
-                }
-
-                $this-&gt;query_from = &quot; FROM $wpdb-&gt;users&quot;;
-                $this-&gt;query_where = &quot; WHERE 1=1 $search_sql&quot;;
-
-                if ( $this-&gt;role ) {
-                        $this-&gt;query_from .= &quot; INNER JOIN $wpdb-&gt;usermeta ON $wpdb-&gt;users.ID = $wpdb-&gt;usermeta.user_id&quot;;
-                        $this-&gt;query_where .= $wpdb-&gt;prepare(&quot; AND $wpdb-&gt;usermeta.meta_key = '{$wpdb-&gt;prefix}capabilities' AND $wpdb-&gt;usermeta.meta_value LIKE %s&quot;, '%' . $this-&gt;role . '%');
-                } elseif ( is_multisite() ) {
-                        $level_key = $wpdb-&gt;prefix . 'capabilities'; // wpmu site admins don't have user_levels
-                        $this-&gt;query_from .= &quot;, $wpdb-&gt;usermeta&quot;;
-                        $this-&gt;query_where .= &quot; AND $wpdb-&gt;users.ID = $wpdb-&gt;usermeta.user_id AND meta_key = '{$level_key}'&quot;;
-                }
-
-                do_action_ref_array( 'pre_user_search', array( &amp;$this ) );
-        }
-
-        /**
-         * {@internal Missing Short Description}}
-         *
-         * {@internal Missing Long Description}}
-         *
-         * @since unknown
-         * @access public
-         */
-        function query() {
-                global $wpdb;
-
-                $this-&gt;results = $wpdb-&gt;get_col(&quot;SELECT DISTINCT($wpdb-&gt;users.ID)&quot; . $this-&gt;query_from . $this-&gt;query_where . $this-&gt;query_orderby . $this-&gt;query_limit);
-
-                if ( $this-&gt;results )
-                        $this-&gt;total_users_for_query = $wpdb-&gt;get_var(&quot;SELECT COUNT(DISTINCT($wpdb-&gt;users.ID))&quot; . $this-&gt;query_from . $this-&gt;query_where); // no limit
-                else
-                        $this-&gt;search_errors = new WP_Error('no_matching_users_found', __('No matching users were found!'));
-        }
-
-        /**
-         * {@internal Missing Short Description}}
-         *
-         * {@internal Missing Long Description}}
-         *
-         * @since unknown
-         * @access public
-         */
-        function prepare_vars_for_template_usage() {
-                $this-&gt;search_term = stripslashes($this-&gt;search_term); // done with DB, from now on we want slashes gone
-        }
-
-        /**
-         * {@internal Missing Short Description}}
-         *
-         * {@internal Missing Long Description}}
-         *
-         * @since unknown
-         * @access public
-         */
-        function do_paging() {
-                if ( $this-&gt;total_users_for_query &gt; $this-&gt;users_per_page ) { // have to page the results
-                        $args = array();
-                        if( ! empty($this-&gt;search_term) )
-                                $args['usersearch'] = urlencode($this-&gt;search_term);
-                        if( ! empty($this-&gt;role) )
-                                $args['role'] = urlencode($this-&gt;role);
-
-                        $this-&gt;paging_text = paginate_links( array(
-                                'total' =&gt; ceil($this-&gt;total_users_for_query / $this-&gt;users_per_page),
-                                'current' =&gt; $this-&gt;page,
-                                'base' =&gt; 'users.php?%_%',
-                                'format' =&gt; 'userspage=%#%',
-                                'add_args' =&gt; $args
-                        ) );
-                        if ( $this-&gt;paging_text ) {
-                                $this-&gt;paging_text = sprintf( '&lt;span class=&quot;displaying-num&quot;&gt;' . __( 'Displaying %s&amp;#8211;%s of %s' ) . '&lt;/span&gt;%s',
-                                        number_format_i18n( ( $this-&gt;page - 1 ) * $this-&gt;users_per_page + 1 ),
-                                        number_format_i18n( min( $this-&gt;page * $this-&gt;users_per_page, $this-&gt;total_users_for_query ) ),
-                                        number_format_i18n( $this-&gt;total_users_for_query ),
-                                        $this-&gt;paging_text
-                                );
-                        }
-                }
-        }
-
-        /**
-         * {@internal Missing Short Description}}
-         *
-         * {@internal Missing Long Description}}
-         *
-         * @since unknown
-         * @access public
-         *
-         * @return unknown
-         */
-        function get_results() {
-                return (array) $this-&gt;results;
-        }
-
-        /**
-         * Displaying paging text.
-         *
-         * @see do_paging() Builds paging text.
-         *
-         * @since unknown
-         * @access public
-         */
-        function page_links() {
-                echo $this-&gt;paging_text;
-        }
-
-        /**
-         * Whether paging is enabled.
-         *
-         * @see do_paging() Builds paging text.
-         *
-         * @since unknown
-         * @access public
-         *
-         * @return bool
-         */
-        function results_are_paged() {
-                if ( $this-&gt;paging_text )
-                        return true;
-                return false;
-        }
-
-        /**
-         * Whether there are search terms.
-         *
-         * @since unknown
-         * @access public
-         *
-         * @return bool
-         */
-        function is_search() {
-                if ( $this-&gt;search_term )
-                        return true;
-                return false;
-        }
-}
-endif;
-
</del><span class="cx"> add_action('admin_init', 'default_password_nag_handler');
</span><span class="cx"> function default_password_nag_handler($errors = false) {
</span><span class="cx">         global $user_ID;
</span></span></pre></div>
<a id="trunkwpadminjsadmintabledevjs"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/js/admin-table.dev.js (0 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/admin-table.dev.js                                (rev 0)
+++ trunk/wp-admin/js/admin-table.dev.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -0,0 +1,243 @@
</span><ins>+jQuery(document).ready(function($) {
+        $('form').each(function() {
+                this.reset();
+        });
+
+        if ( '' == $.query.GET('paged') )
+                $.query.SET('paged', 1);
+
+        var total_pages;
+        var set_total_pages = function() {
+                total_pages = parseInt($('.total-pages').eq(0).text());
+        }
+
+        set_total_pages();
+
+        var loading = false,
+                $tbody = $('#the-list, #the-comment-list'),
+                $overlay = $('&lt;div id=&quot;loading-items&gt;')
+                        .html(adminTableL10n.loading)
+                        .hide()
+                        .prependTo($('body'));
+
+        var show_overlay = function() {
+                loading = true;
+
+                $('.error.ajax').remove();
+
+                $overlay
+                        .css({
+                                width: $tbody.width() + 'px',
+                                height: $tbody.height() - 20 + 'px'
+                        })
+                        .css($tbody.offset())
+                        .show();
+        }
+
+        var hide_overlay = function() {
+                loading = false;
+                $overlay.hide();
+        }
+
+        var handle_error = function() {
+                hide_overlay();
+
+                $('h2').after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;' + adminTableL10n.error + '&lt;/p&gt;&lt;/div&gt;');
+        }
+
+        var update_rows = function(args, reset_paging, callback) {
+                if ( loading )
+                        return false;
+
+                var different = false;
+
+                $.each(args, function(key, val) {
+                        if ( val != $.query.GET(key) ) {
+                                $.query.SET(key, val);
+                                different = true;
+                        }
+                });
+                
+                if ( !different )
+                        return false;
+
+                show_overlay();
+
+                if ( reset_paging )
+                        $.query.SET('paged', 1);
+
+                var data = $.query.get();
+
+                data['action'] = 'fetch-list';
+                data['list_args'] = list_args;
+
+                $.ajax({
+                        url: 'admin-ajax.php',
+                        global: false,
+                        dataType: 'json',
+                        data: data,
+                        success: function(response) {
+                                if ( 'object' != typeof response ) {
+                                        handle_error();
+                                } else {
+                                        hide_overlay();
+
+                                        $tbody.html(response.rows);
+
+                                        $('.displaying-num').html(response.total_items);
+
+                                        $('.total-pages').html(response.total_pages);
+                                        set_total_pages();
+
+                                        $('.current-page').val($.query.GET('paged'));
+
+                                        if ( callback )
+                                                callback();
+                                }
+                        },
+                        error: handle_error
+                });
+
+                return true;
+        }
+
+        // paging
+        var change_page = function(paged) {
+                if ( paged &lt; 1 || paged &gt; total_pages )
+                        return false;
+
+                update_rows({'paged': paged});
+        }
+
+        $('.tablenav-pages a').click(function() {
+                var paged = $.query.GET('paged');
+
+                switch ( $(this).attr('class') ) {
+                        case 'first-page':
+                                paged = 1;
+                                break;
+                        case 'prev-page':
+                                paged -= 1;
+                                break;
+                        case 'next-page':
+                                paged += 1;
+                                break;
+                        case 'last-page':
+                                paged = total_pages;
+                                break;
+                }
+
+                change_page(paged);
+
+                return false;
+        });
+
+        $('.current-page').keypress(function(e) {
+                if ( 13 != e.keyCode )
+                        return;
+
+                change_page(parseInt($(this).val()));
+
+                return false;
+        });
+
+        // sorting
+        $('th a').click(function() {
+                var orderby = $.query.GET('orderby'),
+                        order = $.query.GET('order'),
+                        $th = $(this).parent('th');
+
+                if ( $th.hasClass('sortable') ) {
+                        orderby = $.query.load($(this).attr('href')).get('orderby');
+                        order = 'asc';
+
+                        $('th.sorted-desc, th.sorted-asc')
+                                .removeClass('sorted-asc')
+                                .removeClass('sorted-desc')
+                                .addClass('sortable');
+
+                        $th.removeClass('sortable').addClass('sorted-asc');
+                }
+                else if ( $th.hasClass('sorted-asc') ) {
+                        order = 'desc';
+                        $th.removeClass('sorted-asc').addClass('sorted-desc');
+                }
+                else if ( $th.hasClass('sorted-desc') ) {
+                        order = 'asc';
+                        $th.removeClass('sorted-desc').addClass('sorted-asc');
+                }
+
+                update_rows({'orderby': orderby, 'order': order}, true);
+
+                return false;
+        });
+
+        // searching
+        var htmlencode = function(value) {
+                return $('&lt;div/&gt;').text(value).html();
+        }
+
+        var change_search = function(s) {
+                update_rows({'s': s}, true, function() {
+                        $('h2 .subtitle').remove();
+
+                        if ( s )
+                                $('h2').eq(0).append($('&lt;span class=&quot;subtitle&quot;&gt;').html(adminTableL10n.search.replace('%s', htmlencode(s))));
+                });
+        }
+
+        $('.search-box :submit').click(function() {
+                change_search($(this).parent('.search-box').find(':text').val());
+
+                return false;
+        });
+
+        $('.search-box :text').keypress(function(e) {
+                if ( 13 != e.keyCode )
+                        return;
+
+                change_search($(this).val());
+
+                return false;
+        });
+
+        // tablenav dropdowns
+        $('#post-query-submit').click(function() {
+                var $this = $(this), key, val, args = {};
+
+                $this.parents('.actions').find('select[name!=&quot;action&quot;]').each(function() {
+                        args[$this.attr('name')] = $this.val();
+                });
+
+                update_rows(args, true);
+
+                return false;
+        });
+
+        // view switch
+        $('.view-switch a').click(function() {
+                var $this = $(this);
+
+                update_rows({'mode': $.query.load($this.attr('href')).get('mode')}, false, function() {
+                        $('.view-switch .current').removeClass('current');
+                        $this.addClass('current');
+                });
+
+                return false;
+        });
+
+/*
+        // problem: when switching from one to the other, columns are not always the same
+        $('.subsubsub a').click(function() {
+                var $this = $(this);
+
+                update_rows($.query.load($this.attr('href')).get(), true, function() {
+                        $('.subsubsub .current').removeClass('current');
+                        $this.addClass('current');
+                });
+
+                return false;
+        });
+/**/
+});
+
</ins><span class="cx">Property changes on: trunk/wp-admin/js/admin-table.dev.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpadminjsadmintablejs"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/js/admin-table.js (0 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/admin-table.js                                (rev 0)
+++ trunk/wp-admin/js/admin-table.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+jQuery(document).ready(function($){$(&quot;form&quot;).each(function(){this.reset()});if(&quot;&quot;==$.query.GET(&quot;paged&quot;)){$.query.SET(&quot;paged&quot;,1)}var total_pages;var set_total_pages=function(){total_pages=parseInt($(&quot;.total-pages&quot;).eq(0).text())};set_total_pages();var loading=false,$tbody=$(&quot;#the-list, #the-comment-list&quot;),$overlay=$('&lt;div id=&quot;loading-items&gt;').html(adminTableL10n.loading).hide().prependTo($(&quot;body&quot;));var show_overlay=function(){loading=true;$(&quot;.error.ajax&quot;).remove();$overlay.css({width:$tbody.width()+&quot;px&quot;,height:$tbody.height()-20+&quot;px&quot;}).css($tbody.offset()).show()};var hide_overlay=function(){loading=false;$overlay.hide()};var handle_error=function(){hide_overlay();$(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+adminTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)};var update_rows=function(args,reset_paging,callback){if(loading){return false}var different=false;$.each(args,function(key,val){if(val!=$.query.GET(key)){$.query.SET(key,val);different=true}});if(!different){return false}show_overlay();if(reset_paging){$.query.SET(&quot;paged&quot;,1)}var data=$.query.get();data.action=&quot;fetch-list&quot;;data.list_args=list_args;$.ajax({url:&quot;admin-ajax.php&quot;,global:false,dataType:&quot;json&quot;,data:data,success:function(response){if(&quot;object&quot;!=typeof response){handle_error()}else{hide_overlay();$tbody.html(response.rows);$(&quot;.displaying-num&quot;).html(response.total_items);$(&quot;.total-pages&quot;).html(response.total_pages);set_total_pages();$(&quot;.current-page&quot;).val($.query.GET(&quot;paged&quot;));if(callback){callback()}}},error:handle_error});return true};var change_page=function(paged){if(paged&lt;1||paged&gt;total_pages){return false}update_rows({paged:paged})};$(&quot;.tablenav-pages a&quot;).click(function(){var paged=$.query.GET(&quot;paged&quot;);switch($(this).attr(&quot;class&quot;)){case&quot;first-page&quot;:paged=1;break;case&quot;prev-page&quot;:paged-=1;break;case&quot;next-page&quot;:paged+=1;break;case&quot;last-page&quot;:paged=total_pages;break}change_page(paged);return false});$(&quot;.current-page&quot;).keypress(function(e){if(13!=e.keyCode){return}change_page(parseInt($(this).val()));return false});$(&quot;th a&quot;).click(function(){var orderby=$.query.GET(&quot;orderby&quot;),order=$.query.GET(&quot;order&quot;),$th=$(this).parent(&quot;th&quot;);if($th.hasClass(&quot;sortable&quot;)){orderby=$.query.load($(this).attr(&quot;href&quot;)).get(&quot;orderby&quot;);order=&quot;asc&quot;;$(&quot;th.sorted-desc, th.sorted-asc&quot;).removeClass(&quot;sorted-asc&quot;).removeClass(&quot;sorted-desc&quot;).addClass(&quot;sortable&quot;);$th.removeClass(&quot;sortable&quot;).addClass(&quot;sorted-asc&quot;)}else{if($th.hasClass(&quot;sorted-asc&quot;)){order=&quot;desc&quot;;$th.removeClass(&quot;sorted-asc&quot;).addClass(&quot;sorted-desc&quot;)}else{if($th.hasClass(&quot;sorted-desc&quot;)){order=&quot;asc&quot;;$th.removeClass(&quot;sorted-desc&quot;).addClass(&quot;sorted-asc&quot;)}}}update_rows({orderby:orderby,order:order},true);return false});var htmlencode=function(value){return $(&quot;&lt;div/&gt;&quot;).text(value).html()};var change_search=function(s){update_rows({s:s},true,function(){$(&quot;h2 .subtitle&quot;).remove();if(s){$(&quot;h2&quot;).eq(0).append($('&lt;span class=&quot;subtitle&quot;&gt;').html(adminTableL10n.search.replace(&quot;%s&quot;,htmlencode(s))))}})};$(&quot;.search-box :submit&quot;).click(function(){change_search($(this).parent(&quot;.search-box&quot;).find(&quot;:text&quot;).val());return false});$(&quot;.search-box :text&quot;).keypress(function(e){if(13!=e.keyCode){return}change_search($(this).val());return false});$(&quot;#post-query-submit&quot;).click(function(){var $this=$(this),key,val,args={};$this.parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){args[$this.attr(&quot;name&quot;)]=$this.val()});update_rows(args,true);return false});$(&quot;.view-switch a&quot;).click(function(){var $this=$(this);update_rows({mode:$.query.load($this.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){$(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);$this.addClass(&quot;current&quot;)});return false})});
</ins><span class="cx">\ No newline at end of file
</span><span class="cx">Property changes on: trunk/wp-admin/js/admin-table.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.dev.js (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.dev.js        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/js/inline-edit-post.dev.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1,22 +1,36 @@
</span><del>-
</del><span class="cx"> (function($) {
</span><span class="cx"> inlineEditPost = {
</span><span class="cx"> 
</span><del>-        init : function() {
</del><ins>+        init : function(){
</ins><span class="cx">                 var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit');
</span><span class="cx"> 
</span><del>-                t.type = $('table.widefat').hasClass('page') ? 'page' : 'post';
-                t.what = '#'+t.type+'-';
</del><ins>+                t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post';
+                t.what = '#post-';
</ins><span class="cx"> 
</span><span class="cx">                 // prepare the edit rows
</span><del>-                qeRow.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
-                bulkRow.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
</del><ins>+                qeRow.keyup(function(e){
+                        if (e.which == 27)
+                                return inlineEditPost.revert();
+                });
+                bulkRow.keyup(function(e){
+                        if (e.which == 27)
+                                return inlineEditPost.revert();
+                });
</ins><span class="cx"> 
</span><del>-                $('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); });
-                $('a.save', qeRow).click(function() { return inlineEditPost.save(this); });
-                $('td', qeRow).keydown(function(e) { if ( e.which == 13 ) return inlineEditPost.save(this); });
</del><ins>+                $('a.cancel', qeRow).click(function(){
+                        return inlineEditPost.revert();
+                });
+                $('a.save', qeRow).click(function(){
+                        return inlineEditPost.save(this);
+                });
+                $('td', qeRow).keydown(function(e){
+                        if ( e.which == 13 )
+                                return inlineEditPost.save(this);
+                });
</ins><span class="cx"> 
</span><del>-                $('a.cancel', bulkRow).click(function() { return inlineEditPost.revert(); });
</del><ins>+                $('a.cancel', bulkRow).click(function(){
+                        return inlineEditPost.revert();
+                });
</ins><span class="cx"> 
</span><span class="cx">                 $('#inline-edit .inline-edit-private input[value=private]').click( function(){
</span><span class="cx">                         var pw = $('input.inline-edit-password-input');
</span><span class="lines">@@ -28,7 +42,10 @@
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="cx">                 // add events
</span><del>-                $('a.editinline').live('click', function() { inlineEditPost.edit(this); return false; });
</del><ins>+                $('a.editinline').live('click', function(){
+                        inlineEditPost.edit(this);
+                        return false;
+                });
</ins><span class="cx"> 
</span><span class="cx">                 $('#bulk-title-div').parents('fieldset').after(
</span><span class="cx">                         $('#inline-edit fieldset.inline-edit-categories').clone()
</span><span class="lines">@@ -37,11 +54,11 @@
</span><span class="cx">                 );
</span><span class="cx"> 
</span><span class="cx">                 // hiearchical taxonomies expandable?
</span><del>-                $('span.catshow').click(function() {
</del><ins>+                $('span.catshow').click(function(){
</ins><span class="cx">                         $(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;);
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $('span.cathide').click(function() {
</del><ins>+                $('span.cathide').click(function(){
</ins><span class="cx">                         $(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;);
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="lines">@@ -61,15 +78,14 @@
</span><span class="cx">                         if ( $('form#posts-filter tr.inline-editor').length &gt; 0 )
</span><span class="cx">                                 t.revert();
</span><span class="cx">                 });
</span><del>-
</del><span class="cx">         },
</span><span class="cx"> 
</span><del>-        toggle : function(el) {
</del><ins>+        toggle : function(el){
</ins><span class="cx">                 var t = this;
</span><span class="cx">                 $(t.what+t.getId(el)).css('display') == 'none' ? t.revert() : t.edit(el);
</span><span class="cx">         },
</span><span class="cx"> 
</span><del>-        setBulk : function() {
</del><ins>+        setBulk : function(){
</ins><span class="cx">                 var te = '', type = this.type, tax, c = true;
</span><span class="cx">                 this.revert();
</span><span class="cx"> 
</span><span class="lines">@@ -90,7 +106,7 @@
</span><span class="cx">                         return this.revert();
</span><span class="cx"> 
</span><span class="cx">                 $('#bulk-titles').html(te);
</span><del>-                $('#bulk-titles a').click(function() {
</del><ins>+                $('#bulk-titles a').click(function(){
</ins><span class="cx">                         var id = $(this).attr('id').substr(1);
</span><span class="cx"> 
</span><span class="cx">                         $('table.widefat input[value=&quot;'+id+'&quot;]').attr('checked', '');
</span><span class="lines">@@ -98,7 +114,7 @@
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="cx">                 // enable autocomplete for tags
</span><del>-                if ( type == 'post' ) {
</del><ins>+                if ( 'post' == type ) {
</ins><span class="cx">                         // support multi taxonomies?
</span><span class="cx">                         tax = 'post_tag';
</span><span class="cx">                         $('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest( 'admin-ajax.php?action=ajax-tag-search&amp;tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: &quot;, &quot; } );
</span><span class="lines">@@ -106,14 +122,15 @@
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         edit : function(id) {
</span><del>-                var t = this, fields, editRow, rowData, cats, status, pageOpt, f, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
</del><ins>+                var t = this, fields, editRow, rowData, cats, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
</ins><span class="cx">                 t.revert();
</span><span class="cx"> 
</span><span class="cx">                 if ( typeof(id) == 'object' )
</span><span class="cx">                         id = t.getId(id);
</span><span class="cx"> 
</span><span class="cx">                 fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password'];
</span><del>-                if ( t.type == 'page' ) fields.push('post_parent', 'menu_order', 'page_template');
</del><ins>+                if ( t.type == 'page' )
+                        fields.push('post_parent', 'menu_order', 'page_template');
</ins><span class="cx"> 
</span><span class="cx">                 // add the new blank row
</span><span class="cx">                 editRow = $('#inline-edit').clone(true);
</span><span class="lines">@@ -130,7 +147,7 @@
</span><span class="cx">                         $(':input[name=&quot;post_author&quot;]', editRow).prepend('&lt;option value=&quot;' + $('.post_author', rowData).text() + '&quot;&gt;' + $('#' + t.type + '-' + id + ' .author').text() + '&lt;/option&gt;');
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                for ( f = 0; f &lt; fields.length; f++ ) {
</del><ins>+                for ( var f = 0; f &lt; fields.length; f++ ) {
</ins><span class="cx">                         $(':input[name=&quot;'+fields[f]+'&quot;]', editRow).val( $('.'+fields[f], rowData).text() );
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -143,16 +160,18 @@
</span><span class="cx"> 
</span><span class="cx">                 // hierarchical taxonomies
</span><span class="cx">                 $('.post_category', rowData).each(function(){
</span><del>-                        if( term_ids = $(this).text() )
-                        {
</del><ins>+                        var term_ids = $(this).text();
+
+                        if ( term_ids ) {
</ins><span class="cx">                                 taxname = $(this).attr('id').replace('_'+id, '');
</span><span class="cx">                                 $('ul.'+taxname+'-checklist :checkbox', editRow).val(term_ids.split(','));
</span><span class="cx">                         }
</span><span class="cx">                 });
</span><span class="cx">                 //flat taxonomies
</span><span class="cx">                 $('.tags_input', rowData).each(function(){
</span><del>-                        if( terms = $(this).text() )
-                        {
</del><ins>+                        var terms = $(this).text();
+
+                        if ( terms ) {
</ins><span class="cx">                                 taxname = $(this).attr('id').replace('_'+id, '');
</span><span class="cx">                                 $('textarea.tax_input_'+taxname, editRow).val(terms);
</span><span class="cx">                                 $('textarea.tax_input_'+taxname, editRow).suggest( 'admin-ajax.php?action=ajax-tag-search&amp;tax='+taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: &quot;, &quot; } );
</span><span class="lines">@@ -162,8 +181,10 @@
</span><span class="cx"> 
</span><span class="cx">                 // handle the post status
</span><span class="cx">                 status = $('._status', rowData).text();
</span><del>-                if ( status != 'future' ) $('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]', editRow).remove();
-                if ( status == 'private' ) {
</del><ins>+                if ( 'future' != status )
+                        $('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]', editRow).remove();
+
+                if ( 'private' == status ) {
</ins><span class="cx">                         $('input[name=&quot;keep_private&quot;]', editRow).attr(&quot;checked&quot;, &quot;checked&quot;);
</span><span class="cx">                         $('input.inline-edit-password-input').val('').attr('disabled', 'disabled');
</span><span class="cx">                 }
</span><span class="lines">@@ -196,7 +217,7 @@
</span><span class="cx">         save : function(id) {
</span><span class="cx">                 var params, fields, page = $('.post_status_page').val() || '';
</span><span class="cx"> 
</span><del>-                if( typeof(id) == 'object' )
</del><ins>+                if ( typeof(id) == 'object' )
</ins><span class="cx">                         id = this.getId(id);
</span><span class="cx"> 
</span><span class="cx">                 $('table.widefat .inline-edit-save .waiting').show();
</span><span class="lines">@@ -234,17 +255,17 @@
</span><span class="cx">                 return false;
</span><span class="cx">         },
</span><span class="cx"> 
</span><del>-        revert : function() {
-                var id;
</del><ins>+        revert : function(){
+                var id = $('table.widefat tr.inline-editor').attr('id');
</ins><span class="cx"> 
</span><del>-                if ( id = $('table.widefat tr.inline-editor').attr('id') ) {
</del><ins>+                if ( id ) {
</ins><span class="cx">                         $('table.widefat .inline-edit-save .waiting').hide();
</span><span class="cx"> 
</span><span class="cx">                         if ( 'bulk-edit' == id ) {
</span><span class="cx">                                 $('table.widefat #bulk-edit').removeClass('inline-editor').hide();
</span><span class="cx">                                 $('#bulk-titles').html('');
</span><span class="cx">                                 $('#inlineedit').append( $('#bulk-edit') );
</span><del>-                        } else  {
</del><ins>+                        } else {
</ins><span class="cx">                                 $('#'+id).remove();
</span><span class="cx">                                 id = id.substr( id.lastIndexOf('-') + 1 );
</span><span class="cx">                                 $(this.what+id).show();
</span><span class="lines">@@ -255,7 +276,8 @@
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         getId : function(o) {
</span><del>-                var id = o.tagName == 'TR' ? o.id : $(o).parents('tr').attr('id'), parts = id.split('-');
</del><ins>+                var id = $(o).closest('tr').attr('id'),
+                        parts = id.split('-');
</ins><span class="cx">                 return parts[parts.length - 1];
</span><span class="cx">         }
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.js (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.js        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/js/inline-edit-post.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;page&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#&quot;+c.type+&quot;-&quot;;d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a(&quot;#inline-edit .inline-edit-private input[value=private]&quot;).click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).attr(&quot;checked&quot;)){e.val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}else{e.attr(&quot;disabled&quot;,&quot;&quot;)}});a(&quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;)});a(&quot;span.cathide&quot;).click(function(){a(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;)});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#post-query-submit&quot;).click(function(f){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},setBulk:function(){var e=&quot;&quot;,d=this.type,b,f=true;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(g){if(a(this).attr(&quot;checked&quot;)){f=false;var h=a(this).val(),c;c=a(&quot;#inline_&quot;+h+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;e+='&lt;div id=&quot;ttle'+h+'&quot;&gt;&lt;a id=&quot;_'+h+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+c+&quot;&lt;/div&gt;&quot;}});if(f){return this.revert()}a(&quot;#bulk-titles&quot;).html(e);a(&quot;#bulk-titles a&quot;).click(function(){var c=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+c+'&quot;]').attr(&quot;checked&quot;,&quot;&quot;);a(&quot;#ttle&quot;+c).remove()});if(d==&quot;post&quot;){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}},edit:function(b){var o=this,j,d,g,n,i,h,k,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}d=a(&quot;#inline-edit&quot;).clone(true);a(&quot;td&quot;,d).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);if(!a(':input[name=&quot;post_author&quot;] option[value='+a(&quot;.post_author&quot;,g).text()+&quot;]&quot;,d).val()){a(':input[name=&quot;post_author&quot;]',d).prepend('&lt;option value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;&gt;'+a(&quot;#&quot;+o.type+&quot;-&quot;+b+&quot; .author&quot;).text()+&quot;&lt;/option&gt;&quot;)}for(k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.ping_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;ping_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}a(&quot;.post_category&quot;,g).each(function(){if(term_ids=a(this).text()){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;ul.&quot;+taxname+&quot;-checklist :checkbox&quot;,d).val(term_ids.split(&quot;,&quot;))}});a(&quot;.tags_input&quot;,g).each(function(){if(terms=a(this).text()){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;textarea.tax_input_&quot;+taxname,d).val(terms);a(&quot;textarea.tax_input_&quot;+taxname,d).suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+taxname,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}});i=a(&quot;._status&quot;,g).text();if(i!=&quot;future&quot;){a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',d).remove()}if(i==&quot;private&quot;){a('input[name=&quot;keep_private&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();return false},save:function(e){var d,b,c=a(&quot;.post_status_page&quot;).val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save&quot;,post_type:typenow,post_ID:e,edit_date:&quot;true&quot;,post_status:c};b=a(&quot;#edit-&quot;+e+&quot; :input&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.post(&quot;admin-ajax.php&quot;,d,function(f){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(f){if(-1!=f.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+e).remove();a(&quot;#edit-&quot;+e).before(f).remove();a(inlineEditPost.what+e).hide().fadeIn()}else{f=f.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+e+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+f+&quot;&lt;/span&gt;&quot;)}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+inlineEditL10n.error+&quot;&lt;/span&gt;&quot;)}},&quot;html&quot;);return false},revert:function(){var b;if(b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;)){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&quot;).append(a(&quot;#bulk-edit&quot;))}else{a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=c.tagName==&quot;TR&quot;?c.id:a(c).parents(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function($){inlineEditPost={init:function(){var t=this,qeRow=$(&quot;#inline-edit&quot;),bulkRow=$(&quot;#bulk-edit&quot;);t.type=$(&quot;table.widefat&quot;).hasClass(&quot;pages&quot;)?&quot;page&quot;:&quot;post&quot;;t.what=&quot;#post-&quot;;qeRow.keyup(function(e){if(e.which==27){return inlineEditPost.revert()}});bulkRow.keyup(function(e){if(e.which==27){return inlineEditPost.revert()}});$(&quot;a.cancel&quot;,qeRow).click(function(){return inlineEditPost.revert()});$(&quot;a.save&quot;,qeRow).click(function(){return inlineEditPost.save(this)});$(&quot;td&quot;,qeRow).keydown(function(e){if(e.which==13){return inlineEditPost.save(this)}});$(&quot;a.cancel&quot;,bulkRow).click(function(){return inlineEditPost.revert()});$(&quot;#inline-edit .inline-edit-private input[value=private]&quot;).click(function(){var pw=$(&quot;input.inline-edit-password-input&quot;);if($(this).attr(&quot;checked&quot;)){pw.val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}else{pw.attr(&quot;disabled&quot;,&quot;&quot;)}});$(&quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});$(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after($(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend($(&quot;#inline-edit label.inline-edit-tags&quot;).clone());$(&quot;span.catshow&quot;).click(function(){$(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;)});$(&quot;span.cathide&quot;).click(function(){$(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;)});$('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',bulkRow).remove();$(&quot;#doaction, #doaction2&quot;).click(function(e){var n=$(this).attr(&quot;id&quot;).substr(2);if($('select[name=&quot;'+n+'&quot;]').val()==&quot;edit&quot;){e.preventDefault();t.setBulk()}else{if($(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){t.revert()}}});$(&quot;#post-query-submit&quot;).click(function(e){if($(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){t.revert()}})},toggle:function(el){var t=this;$(t.what+t.getId(el)).css(&quot;display&quot;)==&quot;none&quot;?t.revert():t.edit(el)},setBulk:function(){var te=&quot;&quot;,type=this.type,tax,c=true;this.revert();$(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,$(&quot;.widefat:first thead th:visible&quot;).length);$(&quot;table.widefat tbody&quot;).prepend($(&quot;#bulk-edit&quot;));$(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();$('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(i){if($(this).attr(&quot;checked&quot;)){c=false;var id=$(this).val(),theTitle;theTitle=$(&quot;#inline_&quot;+id+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;te+='&lt;div id=&quot;ttle'+id+'&quot;&gt;&lt;a id=&quot;_'+id+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+theTitle+&quot;&lt;/div&gt;&quot;}});if(c){return this.revert()}$(&quot;#bulk-titles&quot;).html(te);$(&quot;#bulk-titles a&quot;).click(function(){var id=$(this).attr(&quot;id&quot;).substr(1);$('table.widefat input[value=&quot;'+id+'&quot;]').attr(&quot;checked&quot;,&quot;&quot;);$(&quot;#ttle&quot;+id).remove()});if(&quot;post&quot;==type){tax=&quot;post_tag&quot;;$('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+tax,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}},edit:function(id){var t=this,fields,editRow,rowData,cats,status,pageOpt,pageLevel,nextPage,pageLoop=true,nextLevel,tax;t.revert();if(typeof(id)==&quot;object&quot;){id=t.getId(id)}fields=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(t.type==&quot;page&quot;){fields.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}editRow=$(&quot;#inline-edit&quot;).clone(true);$(&quot;td&quot;,editRow).attr(&quot;colspan&quot;,$(&quot;.widefat:first thead th:visible&quot;).length);if($(t.what+id).hasClass(&quot;alternate&quot;)){$(editRow).addClass(&quot;alternate&quot;)}$(t.what+id).hide().after(editRow);rowData=$(&quot;#inline_&quot;+id);if(!$(':input[name=&quot;post_author&quot;] option[value='+$(&quot;.post_author&quot;,rowData).text()+&quot;]&quot;,editRow).val()){$(':input[name=&quot;post_author&quot;]',editRow).prepend('&lt;option value=&quot;'+$(&quot;.post_author&quot;,rowData).text()+'&quot;&gt;'+$(&quot;#&quot;+t.type+&quot;-&quot;+id+&quot; .author&quot;).text()+&quot;&lt;/option&gt;&quot;)}for(var f=0;f&lt;fields.length;f++){$(':input[name=&quot;'+fields[f]+'&quot;]',editRow).val($(&quot;.&quot;+fields[f],rowData).text())}if($(&quot;.comment_status&quot;,rowData).text()==&quot;open&quot;){$('input[name=&quot;comment_status&quot;]',editRow).attr(&quot;checked&quot;,&quot;checked&quot;)}if($(&quot;.ping_status&quot;,rowData).text()==&quot;open&quot;){$('input[name=&quot;ping_status&quot;]',editRow).attr(&quot;checked&quot;,&quot;checked&quot;)}if($(&quot;.sticky&quot;,rowData).text()==&quot;sticky&quot;){$('input[name=&quot;sticky&quot;]',editRow).attr(&quot;checked&quot;,&quot;checked&quot;)}$(&quot;.post_category&quot;,rowData).each(function(){var term_ids=$(this).text();if(term_ids){taxname=$(this).attr(&quot;id&quot;).replace(&quot;_&quot;+id,&quot;&quot;);$(&quot;ul.&quot;+taxname+&quot;-checklist :checkbox&quot;,editRow).val(term_ids.split(&quot;,&quot;))}});$(&quot;.tags_input&quot;,rowData).each(function(){var terms=$(this).text();if(terms){taxname=$(this).attr(&quot;id&quot;).replace(&quot;_&quot;+id,&quot;&quot;);$(&quot;textarea.tax_input_&quot;+taxname,editRow).val(terms);$(&quot;textarea.tax_input_&quot;+taxname,editRow).suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+taxname,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}});status=$(&quot;._status&quot;,rowData).text();if(&quot;future&quot;!=status){$('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',editRow).remove()}if(&quot;private&quot;==status){$('input[name=&quot;keep_private&quot;]',editRow).attr(&quot;checked&quot;,&quot;checked&quot;);$(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}pageOpt=$('select[name=&quot;post_parent&quot;] option[value=&quot;'+id+'&quot;]',editRow);if(pageOpt.length&gt;0){pageLevel=pageOpt[0].className.split(&quot;-&quot;)[1];nextPage=pageOpt;while(pageLoop){nextPage=nextPage.next(&quot;option&quot;);if(nextPage.length==0){break}nextLevel=nextPage[0].className.split(&quot;-&quot;)[1];if(nextLevel&lt;=pageLevel){pageLoop=false}else{nextPage.remove();nextPage=pageOpt}}pageOpt.remove()}$(editRow).attr(&quot;id&quot;,&quot;edit-&quot;+id).addClass(&quot;inline-editor&quot;).show();$(&quot;.ptitle&quot;,editRow).focus();return false},save:function(id){var params,fields,page=$(&quot;.post_status_page&quot;).val()||&quot;&quot;;if(typeof(id)==&quot;object&quot;){id=this.getId(id)}$(&quot;table.widefat .inline-edit-save .waiting&quot;).show();params={action:&quot;inline-save&quot;,post_type:typenow,post_ID:id,edit_date:&quot;true&quot;,post_status:page};fields=$(&quot;#edit-&quot;+id+&quot; :input&quot;).serialize();params=fields+&quot;&amp;&quot;+$.param(params);$.post(&quot;admin-ajax.php&quot;,params,function(r){$(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(r){if(-1!=r.indexOf(&quot;&lt;tr&quot;)){$(inlineEditPost.what+id).remove();$(&quot;#edit-&quot;+id).before(r).remove();$(inlineEditPost.what+id).hide().fadeIn()}else{r=r.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);$(&quot;#edit-&quot;+id+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+r+&quot;&lt;/span&gt;&quot;)}}else{$(&quot;#edit-&quot;+id+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+inlineEditL10n.error+&quot;&lt;/span&gt;&quot;)}},&quot;html&quot;);return false},revert:function(){var id=$(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(id){$(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==id){$(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();$(&quot;#bulk-titles&quot;).html(&quot;&quot;);$(&quot;#inlineedit&quot;).append($(&quot;#bulk-edit&quot;))}else{$(&quot;#&quot;+id).remove();id=id.substr(id.lastIndexOf(&quot;-&quot;)+1);$(this.what+id).show()}}return false},getId:function(o){var id=$(o).closest(&quot;tr&quot;).attr(&quot;id&quot;),parts=id.split(&quot;-&quot;);return parts[parts.length-1]}};$(document).ready(function(){inlineEditPost.init()})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjstagsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/tags.dev.js (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/tags.dev.js        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/js/tags.dev.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -41,9 +41,9 @@
</span><span class="cx">                         var parent = form.find('select#parent').val();
</span><span class="cx"> 
</span><span class="cx">                         if ( parent &gt; 0 &amp;&amp; $('#tag-' + parent ).length &gt; 0 ) // If the parent exists on this page, insert it below. Else insert it at the top of the list.
</span><del>-                                $('#the-list #tag-' + parent).after( res.responses[0].supplemental['noparents'] ); // As the parent exists, Insert the version with - - - prefixed
</del><ins>+                                $('.tags #tag-' + parent).after( res.responses[0].supplemental['noparents'] ); // As the parent exists, Insert the version with - - - prefixed
</ins><span class="cx">                         else
</span><del>-                                $('#the-list').prepend( res.responses[0].supplemental['parents'] ); // As the parent is not visible, Insert the version with Parent - Child - ThisTerm
</del><ins>+                                $('.tags').prepend( res.responses[0].supplemental['parents'] ); // As the parent is not visible, Insert the version with Parent - Child - ThisTerm
</ins><span class="cx"> 
</span><span class="cx">                         if ( form.find('select#parent') ) {
</span><span class="cx">                                 // Parents field exists, Add new term to the list.
</span><span class="lines">@@ -63,4 +63,4 @@
</span><span class="cx">                 return false;
</span><span class="cx">         });
</span><span class="cx"> 
</span><del>-});
</del><span class="cx">\ No newline at end of file
</span><ins>+});
</ins></span></pre></div>
<a id="trunkwpadminjstagsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/tags.js (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/tags.js        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/js/tags.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(a){a(&quot;.delete-tag&quot;).live(&quot;click&quot;,function(g){var b=a(this),f=b.parents(&quot;tr&quot;),c=true,d;if(&quot;undefined&quot;!=showNotice){c=showNotice.warn()}if(c){d=b.attr(&quot;href&quot;).replace(/[^?]*\?/,&quot;&quot;).replace(/action=delete/,&quot;action=delete-tag&quot;);a.post(ajaxurl,d,function(e){if(&quot;1&quot;==e){a(&quot;#ajax-response&quot;).empty();f.fadeOut(&quot;normal&quot;,function(){f.remove()});a(&quot;select#parent option[value=&quot;+d.match(/tag_ID=(\d+)/)[1]+&quot;]&quot;).remove();a(&quot;a.tag-link-&quot;+d.match(/tag_ID=(\d+)/)[1]).remove()}else{if(&quot;-1&quot;==e){a(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.noPerm+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);f.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}else{a(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.broken+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);f.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}}});f.children().css(&quot;backgroundColor&quot;,&quot;#f33&quot;)}return false});a(&quot;#submit&quot;).click(function(){var b=a(this).parents(&quot;form&quot;);if(!validateForm(b)){return false}a.post(ajaxurl,a(&quot;#addtag&quot;).serialize(),function(h){a(&quot;#ajax-response&quot;).empty();var f=wpAjax.parseAjaxResponse(h,&quot;ajax-response&quot;);if(!f){return}var g=b.find(&quot;select#parent&quot;).val();if(g&gt;0&amp;&amp;a(&quot;#tag-&quot;+g).length&gt;0){a(&quot;#the-list #tag-&quot;+g).after(f.responses[0].supplemental.noparents)}else{a(&quot;#the-list&quot;).prepend(f.responses[0].supplemental.parents)}if(b.find(&quot;select#parent&quot;)){var e=f.responses[1].supplemental;var c=&quot;&quot;;for(var d=0;d&lt;f.responses[1].position;d++){c+=&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;}b.find(&quot;select#parent option:selected&quot;).after('&lt;option value=&quot;'+e.term_id+'&quot;&gt;'+c+e.name+&quot;&lt;/option&gt;&quot;)}a('input[type=&quot;text&quot;]:visible, textarea:visible',b).val(&quot;&quot;)});return false})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function($){$(&quot;.delete-tag&quot;).live(&quot;click&quot;,function(e){var t=$(this),tr=t.parents(&quot;tr&quot;),r=true,data;if(&quot;undefined&quot;!=showNotice){r=showNotice.warn()}if(r){data=t.attr(&quot;href&quot;).replace(/[^?]*\?/,&quot;&quot;).replace(/action=delete/,&quot;action=delete-tag&quot;);$.post(ajaxurl,data,function(r){if(&quot;1&quot;==r){$(&quot;#ajax-response&quot;).empty();tr.fadeOut(&quot;normal&quot;,function(){tr.remove()});$(&quot;select#parent option[value=&quot;+data.match(/tag_ID=(\d+)/)[1]+&quot;]&quot;).remove();$(&quot;a.tag-link-&quot;+data.match(/tag_ID=(\d+)/)[1]).remove()}else{if(&quot;-1&quot;==r){$(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.noPerm+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);tr.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}else{$(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.broken+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);tr.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}}});tr.children().css(&quot;backgroundColor&quot;,&quot;#f33&quot;)}return false});$(&quot;#submit&quot;).click(function(){var form=$(this).parents(&quot;form&quot;);if(!validateForm(form)){return false}$.post(ajaxurl,$(&quot;#addtag&quot;).serialize(),function(r){$(&quot;#ajax-response&quot;).empty();var res=wpAjax.parseAjaxResponse(r,&quot;ajax-response&quot;);if(!res){return}var parent=form.find(&quot;select#parent&quot;).val();if(parent&gt;0&amp;&amp;$(&quot;#tag-&quot;+parent).length&gt;0){$(&quot;.tags #tag-&quot;+parent).after(res.responses[0].supplemental.noparents)}else{$(&quot;.tags&quot;).prepend(res.responses[0].supplemental.parents)}if(form.find(&quot;select#parent&quot;)){var term=res.responses[1].supplemental;var indent=&quot;&quot;;for(var i=0;i&lt;res.responses[1].position;i++){indent+=&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;}form.find(&quot;select#parent option:selected&quot;).after('&lt;option value=&quot;'+term.term_id+'&quot;&gt;'+indent+term.name+&quot;&lt;/option&gt;&quot;)}$('input[type=&quot;text&quot;]:visible, textarea:visible',form).val(&quot;&quot;)});return false})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminlinkmanagerphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/link-manager.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/link-manager.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/link-manager.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -10,37 +10,33 @@
</span><span class="cx"> require_once ('admin.php');
</span><span class="cx"> 
</span><span class="cx"> // Handle bulk deletes
</span><del>-if ( isset($_GET['action']) &amp;&amp; isset($_GET['linkcheck']) ) {
-        check_admin_referer('bulk-bookmarks');
-        $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
</del><ins>+if ( isset( $_REQUEST['action'] ) &amp;&amp; isset( $_REQUEST['linkcheck'] ) ) {
+        check_admin_referer( 'bulk-bookmarks' );
</ins><span class="cx"> 
</span><del>-        if ( ! current_user_can('manage_links') )
-                wp_die( __('You do not have sufficient permissions to edit the links for this site.') );
</del><ins>+        $doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2'];
</ins><span class="cx"> 
</span><ins>+        if ( ! current_user_can( 'manage_links' ) )
+                wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
+
</ins><span class="cx">         if ( 'delete' == $doaction ) {
</span><del>-                $bulklinks = (array) $_GET['linkcheck'];
</del><ins>+                $bulklinks = (array) $_REQUEST['linkcheck'];
</ins><span class="cx">                 foreach ( $bulklinks as $link_id ) {
</span><span class="cx">                         $link_id = (int) $link_id;
</span><span class="cx"> 
</span><del>-                        wp_delete_link($link_id);
</del><ins>+                        wp_delete_link( $link_id );
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                wp_safe_redirect( wp_get_referer() );
-                exit;
</del><ins>+                wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) );
</ins><span class="cx">         }
</span><del>-} elseif ( ! empty($_GET['_wp_http_referer']) ) {
-         wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</del><ins>+} elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {
+         wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) );
</ins><span class="cx">          exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]'));
</del><ins>+require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><del>-if ( empty($cat_id) )
-        $cat_id = 'all';
</del><ins>+$table = new WP_Links_Table;
</ins><span class="cx"> 
</span><del>-if ( empty($order_by) )
-        $order_by = 'order_name';
-
</del><span class="cx"> $title = __('Links');
</span><span class="cx"> $this_file = $parent_file = 'link-manager.php';
</span><span class="cx"> 
</span><span class="lines">@@ -59,39 +55,19 @@
</span><span class="cx"> if ( ! current_user_can('manage_links') )
</span><span class="cx">         wp_die(__(&quot;You do not have sufficient permissions to edit the links for this site.&quot;));
</span><span class="cx"> 
</span><del>-switch ($order_by) {
-        case 'order_id' :
-                $sqlorderby = 'id';
-                break;
-        case 'order_url' :
-                $sqlorderby = 'url';
-                break;
-        case 'order_desc' :
-                $sqlorderby = 'description';
-                break;
-        case 'order_owner' :
-                $sqlorderby = 'owner';
-                break;
-        case 'order_rating' :
-                $sqlorderby = 'rating';
-                break;
-        case 'order_name' :
-        default :
-                $sqlorderby = 'name';
-                break;
-} ?&gt;
</del><ins>+?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;wrap nosubsub&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title ); ?&gt; &lt;a href=&quot;link-add.php&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x('Add New', 'link'); ?&gt;&lt;/a&gt; &lt;?php
</span><del>-if ( !empty($_GET['s']) )
-        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( stripslashes($_GET['s']) ) ); ?&gt;
</del><ins>+if ( !empty($_REQUEST['s']) )
+        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( stripslashes($_REQUEST['s']) ) ); ?&gt;
</ins><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><del>-if ( isset($_GET['deleted']) ) {
</del><ins>+if ( isset($_REQUEST['deleted']) ) {
</ins><span class="cx">         echo '&lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;';
</span><del>-        $deleted = (int) $_GET['deleted'];
</del><ins>+        $deleted = (int) $_REQUEST['deleted'];
</ins><span class="cx">         printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted);
</span><span class="cx">         echo '&lt;/p&gt;&lt;/div&gt;';
</span><span class="cx">         $_SERVER['REQUEST_URI'] = remove_query_arg(array('deleted'), $_SERVER['REQUEST_URI']);
</span><span class="lines">@@ -107,185 +83,11 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx"> 
</span><del>-&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
-&lt;div class=&quot;tablenav&quot;&gt;
-
-&lt;?php
-if ( 'all' == $cat_id )
-        $cat_id = '';
-$args = array( 'category' =&gt; $cat_id, 'hide_invisible' =&gt; 0, 'orderby' =&gt; $sqlorderby, 'hide_empty' =&gt; 0 );
-if ( ! empty( $_GET['s'] ) )
-        $args['search'] = $_GET['s'];
-$links = get_bookmarks( $args );
-if ( $links ) {
-?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action&quot;&gt;
-&lt;option value=&quot;&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;/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
-$categories = get_terms('link_category', array(&quot;hide_empty&quot; =&gt; 1));
-$select_cat = &quot;&lt;select name=\&quot;cat_id\&quot;&gt;\n&quot;;
-$select_cat .= '&lt;option value=&quot;all&quot;'  . (($cat_id == 'all') ? &quot; selected='selected'&quot; : '') . '&gt;' . __('View all Categories') . &quot;&lt;/option&gt;\n&quot;;
-foreach ((array) $categories as $cat)
-        $select_cat .= '&lt;option value=&quot;' . esc_attr($cat-&gt;term_id) . '&quot;' . (($cat-&gt;term_id == $cat_id) ? &quot; selected='selected'&quot; : '') . '&gt;' . sanitize_term_field('name', $cat-&gt;name, $cat-&gt;term_id, 'link_category', 'display') . &quot;&lt;/option&gt;\n&quot;;
-$select_cat .= &quot;&lt;/select&gt;\n&quot;;
-
-$select_order = &quot;&lt;select name=\&quot;order_by\&quot;&gt;\n&quot;;
-$select_order .= '&lt;option value=&quot;order_id&quot;' . (($order_by == 'order_id') ? &quot; selected='selected'&quot; : '') . '&gt;' .  __('Order by Link ID') . &quot;&lt;/option&gt;\n&quot;;
-$select_order .= '&lt;option value=&quot;order_name&quot;' . (($order_by == 'order_name') ? &quot; selected='selected'&quot; : '') . '&gt;' .  __('Order by Name') . &quot;&lt;/option&gt;\n&quot;;
-$select_order .= '&lt;option value=&quot;order_url&quot;' . (($order_by == 'order_url') ? &quot; selected='selected'&quot; : '') . '&gt;' .  __('Order by Address') . &quot;&lt;/option&gt;\n&quot;;
-$select_order .= '&lt;option value=&quot;order_rating&quot;' . (($order_by == 'order_rating') ? &quot; selected='selected'&quot; : '') . '&gt;' .  __('Order by Rating') . &quot;&lt;/option&gt;\n&quot;;
-$select_order .= &quot;&lt;/select&gt;\n&quot;;
-
-echo $select_cat;
-echo $select_order;
-
-?&gt;
-&lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e('Filter'); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
-
-&lt;/div&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-
-&lt;?php
-        $link_columns = get_column_headers('link-manager');
-        $hidden = get_hidden_columns('link-manager');
-?&gt;
-
-&lt;?php wp_nonce_field('bulk-bookmarks') ?&gt;
-&lt;table class=&quot;widefat fixed&quot; cellspacing=&quot;0&quot;&gt;
-        &lt;thead&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers('link-manager'); ?&gt;
-        &lt;/tr&gt;
-        &lt;/thead&gt;
-
-        &lt;tfoot&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers('link-manager', false); ?&gt;
-        &lt;/tr&gt;
-        &lt;/tfoot&gt;
-
-        &lt;tbody&gt;
-&lt;?php
-        $alt = 0;
-
-        foreach ($links as $link) {
-                $link = sanitize_bookmark($link);
-                $link-&gt;link_name = esc_attr($link-&gt;link_name);
-                $link-&gt;link_category = wp_get_link_cats($link-&gt;link_id);
-                $short_url = str_replace('http://', '', $link-&gt;link_url);
-                $short_url = preg_replace('/^www\./i', '', $short_url);
-                if ('/' == substr($short_url, -1))
-                        $short_url = substr($short_url, 0, -1);
-                if (strlen($short_url) &gt; 35)
-                        $short_url = substr($short_url, 0, 32).'...';
-                $visible = ($link-&gt;link_visible == 'Y') ? __('Yes') : __('No');
-                $rating  = $link-&gt;link_rating;
-                $style = ($alt % 2) ? '' : ' class=&quot;alternate&quot;';
-                ++ $alt;
-                $edit_link = get_edit_bookmark_link();
-                ?&gt;&lt;tr id=&quot;link-&lt;?php echo $link-&gt;link_id; ?&gt;&quot; valign=&quot;middle&quot; &lt;?php echo $style; ?&gt;&gt;&lt;?php
-                foreach($link_columns as $column_name=&gt;$column_display_name) {
-                        $class = &quot;class=\&quot;column-$column_name\&quot;&quot;;
-
-                        $style = '';
-                        if ( in_array($column_name, $hidden) )
-                                $style = ' style=&quot;display:none;&quot;';
-
-                        $attributes = &quot;$class$style&quot;;
-
-                        switch($column_name) {
-                                case 'cb':
-                                        echo '&lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;linkcheck[]&quot; value=&quot;'. esc_attr($link-&gt;link_id) .'&quot; /&gt;&lt;/th&gt;';
-                                        break;
-                                case 'name':
-
-                                        echo &quot;&lt;td $attributes&gt;&lt;strong&gt;&lt;a class='row-title' href='$edit_link' title='&quot; . esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $link-&gt;link_name)) . &quot;'&gt;$link-&gt;link_name&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
-                                        $actions = array();
-                                        $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                                        $actions['delete'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;link.php?action=delete&amp;amp;link_id=$link-&gt;link_id&quot;, 'delete-bookmark_' . $link-&gt;link_id) . &quot;' onclick=\&quot;if ( confirm('&quot; . esc_js(sprintf( __(&quot;You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete.&quot;), $link-&gt;link_name )) . &quot;') ) { return true;}return false;\&quot;&gt;&quot; . __('Delete') . &quot;&lt;/a&gt;&quot;;
-                                        $action_count = count($actions);
-                                        $i = 0;
-                                        echo '&lt;div class=&quot;row-actions&quot;&gt;';
-                                        foreach ( $actions as $action =&gt; $linkaction ) {
-                                                ++$i;
-                                                ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                                                echo &quot;&lt;span class='$action'&gt;$linkaction$sep&lt;/span&gt;&quot;;
-                                        }
-                                        echo '&lt;/div&gt;';
-                                        echo '&lt;/td&gt;';
-                                        break;
-                                case 'url':
-                                        echo &quot;&lt;td $attributes&gt;&lt;a href='$link-&gt;link_url' title='&quot;.sprintf(__('Visit %s'), $link-&gt;link_name).&quot;'&gt;$short_url&lt;/a&gt;&lt;/td&gt;&quot;;
-                                        break;
-                                case 'categories':
-                                        ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
-                                        $cat_names = array();
-                                        foreach ($link-&gt;link_category as $category) {
-                                                $cat = get_term($category, 'link_category', OBJECT, 'display');
-                                                if ( is_wp_error( $cat ) )
-                                                        echo $cat-&gt;get_error_message();
-                                                $cat_name = $cat-&gt;name;
-                                                if ( $cat_id != $category )
-                                                        $cat_name = &quot;&lt;a href='link-manager.php?cat_id=$category'&gt;$cat_name&lt;/a&gt;&quot;;
-                                                $cat_names[] = $cat_name;
-                                        }
-                                        echo implode(', ', $cat_names);
-                                        ?&gt;&lt;/td&gt;&lt;?php
-                                        break;
-                                case 'rel':
-                                        ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo empty($link-&gt;link_rel) ? '&lt;br /&gt;' : $link-&gt;link_rel; ?&gt;&lt;/td&gt;&lt;?php
-                                        break;
-                                case 'visible':
-                                        ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo $visible; ?&gt;&lt;/td&gt;&lt;?php
-                                        break;
-                                case 'rating':
-                                         ?&gt;&lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php echo $rating; ?&gt;&lt;/td&gt;&lt;?php
-                                        break;
-                                default:
-                                        ?&gt;
-                                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php do_action('manage_link_custom_column', $column_name, $link-&gt;link_id); ?&gt;&lt;/td&gt;
-                                        &lt;?php
-                                        break;
-
-                        }
-                }
-                echo &quot;\n    &lt;/tr&gt;\n&quot;;
-        }
-?&gt;
-        &lt;/tbody&gt;
-&lt;/table&gt;
-
-&lt;div class=&quot;tablenav&quot;&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action2&quot;&gt;
-&lt;option value=&quot;&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;/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;?php } else { ?&gt;
-&lt;p&gt;&lt;?php _e( 'No links found.' ) ?&gt;&lt;/p&gt;
-&lt;?php } ?&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
</del><ins>+&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
+&lt;?php $table-&gt;display(); ?&gt;
+&lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
-
</del><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span></span></pre></div>
<a id="trunkwpadminmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/menu.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/menu.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/menu.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx">         $submenu['link-manager.php'][5] = array( __('Links'), 'manage_links', 'link-manager.php' );
</span><span class="cx">         /* translators: add new links */
</span><span class="cx">         $submenu['link-manager.php'][10] = array( _x('Add New', 'link'), 'manage_links', 'link-add.php' );
</span><del>-        $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' );
</del><ins>+        $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
</ins><span class="cx"> 
</span><span class="cx"> $menu[20] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page', '', 'menu-top menu-icon-page', 'menu-pages', 'div' );
</span><span class="cx">         $submenu['edit.php?post_type=page'][5] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page' );
</span></span></pre></div>
<a id="trunkwpadminnetworksitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/sites.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/sites.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/network/sites.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> $title = __( 'Sites' );
</span><span class="cx"> $parent_file = 'sites.php';
</span><span class="cx"> 
</span><del>-if ( isset( $_GET['action'] ) &amp;&amp; 'editblog' == $_GET['action'] ) {
</del><ins>+if ( isset( $_REQUEST['action'] ) &amp;&amp; 'editblog' == $_REQUEST['action'] ) {
</ins><span class="cx">         add_contextual_help($current_screen,
</span><span class="cx">                 '&lt;p&gt;' . __('This extensive list of options has five modules: Site Info, Site Options, allowing Site Themes for this given site, changing user roles and passwords for that site, adding a new user, and Miscellaneous Site Actions (upload size limits).') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('Note that some fields in Site Options are grayed out and say Serialized Data. These are stored values in the database which you cannot change from here.') . '&lt;/p&gt;' .
</span><span class="lines">@@ -46,17 +46,13 @@
</span><span class="cx">         );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-wp_enqueue_script( 'admin-forms' );
</del><ins>+$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
</ins><span class="cx"> 
</span><del>-require_once( '../admin-header.php' );
-
-$id = isset( $_GET['id'] ) ? intval( $_GET['id'] ) : 0;
-
-if ( isset( $_GET['updated'] ) &amp;&amp; $_GET['updated'] == 'true' &amp;&amp; ! empty( $_GET['action'] ) ) {
</del><ins>+if ( isset( $_REQUEST['updated'] ) &amp;&amp; $_REQUEST['updated'] == 'true' &amp;&amp; ! empty( $_REQUEST['action'] ) ) {
</ins><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;
</span><span class="cx">                 &lt;?php
</span><del>-                switch ( $_GET['action'] ) {
</del><ins>+                switch ( $_REQUEST['action'] ) {
</ins><span class="cx">                         case 'all_notspam':
</span><span class="cx">                                 _e( 'Sites removed from spam.' );
</span><span class="cx">                         break;
</span><span class="lines">@@ -99,7 +95,7 @@
</span><span class="cx">         &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$action = isset( $_GET['action'] ) ? $_GET['action'] : 'list';
</del><ins>+$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'list';
</ins><span class="cx"> 
</span><span class="cx"> switch ( $action ) {
</span><span class="cx">         // Edit site
</span><span class="lines">@@ -112,11 +108,13 @@
</span><span class="cx"> 
</span><span class="cx">                 $editblog_roles = get_blog_option( $id, &quot;{$blog_prefix}user_roles&quot; );
</span><span class="cx">                 $is_main_site = is_main_site( $id );
</span><ins>+
+                require_once( './admin-header.php' );
</ins><span class="cx">                 ?&gt;
</span><span class="cx">                 &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">                 &lt;?php screen_icon(); ?&gt;
</span><span class="cx">                 &lt;h2&gt;&lt;?php _e( 'Edit Site' ); ?&gt; - &lt;a href=&quot;&lt;?php echo esc_url( get_home_url( $id ) ); ?&gt;&quot;&gt;&lt;?php echo esc_url( get_home_url( $id ) ); ?&gt;&lt;/a&gt;&lt;/h2&gt;
</span><del>-                &lt;form method=&quot;post&quot; action=&quot;edit.php?action=updateblog&quot;&gt;
</del><ins>+                &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=updateblog&quot;&gt;
</ins><span class="cx">                         &lt;?php wp_nonce_field( 'editblog' ); ?&gt;
</span><span class="cx">                         &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;&lt;?php echo esc_attr( $id ) ?&gt;&quot; /&gt;
</span><span class="cx">                         &lt;div class=&quot;metabox-holder&quot; style=&quot;width:49%;float:left;&quot;&gt;
</span><span class="lines">@@ -350,82 +348,23 @@
</span><span class="cx">         // List sites
</span><span class="cx">         case 'list':
</span><span class="cx">         default:
</span><del>-                $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
-                if ( empty($pagenum) )
-                        $pagenum = 1;
</del><ins>+                require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><del>-                $per_page = (int) get_user_option( 'ms_sites_per_page' );
-                if ( empty( $per_page ) || $per_page &lt; 1 )
-                        $per_page = 15;
</del><ins>+                $table = new WP_Sites_Table;
</ins><span class="cx"> 
</span><del>-                $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 ) );
-
-                $query = &quot;SELECT * FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;;
-
-                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;;
-                        }
-                }
-
-                $order_by = isset( $_GET['sortby'] ) ? $_GET['sortby'] : 'id';
-                if ( $order_by == 'registered' ) {
-                        $query .= ' ORDER BY registered ';
-                } elseif ( $order_by == 'lastupdated' ) {
-                        $query .= ' ORDER BY last_updated ';
-                } elseif ( $order_by == 'blogname' ) {
-                        $query .= ' ORDER BY domain ';
-                } else {
-                        $order_by = 'id';
-                        $query .= &quot; ORDER BY {$wpdb-&gt;blogs}.blog_id &quot;;
-                }
-
-                $order = ( isset( $_GET['order'] ) &amp;&amp; 'DESC' == $_GET['order'] ) ? &quot;DESC&quot; : &quot;ASC&quot;;
-                $query .= $order;
-
-                $total = $wpdb-&gt;get_var( str_replace( 'SELECT *', 'SELECT COUNT(blog_id)', $query ) );
-
-                $query .= &quot; LIMIT &quot; . intval( ( $pagenum - 1 ) * $per_page ) . &quot;, &quot; . intval( $per_page );
-                $blog_list = $wpdb-&gt;get_results( $query, ARRAY_A );
-
-                $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';
-                else
-                        $mode = esc_attr( $_GET['mode'] );
</del><ins>+                require_once( './admin-header.php' );
</ins><span class="cx">                 ?&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">                 &lt;?php screen_icon(); ?&gt;
</span><span class="cx">                 &lt;h2&gt;&lt;?php _e('Sites') ?&gt;
</span><span class="cx">                 &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;
</span><del>-                &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;
</del><ins>+                &lt;?php if ( isset( $_REQUEST['s'] ) &amp;&amp; $_REQUEST['s'] ) {
+                        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __( 'Search results for &amp;#8220;%s&amp;#8221;' ) . '&lt;/span&gt;', esc_html( $s ) );
+                } ?&gt;
</ins><span class="cx">                 &lt;/h2&gt;
</span><span class="cx"> 
</span><del>-                &lt;form action=&quot;sites.php&quot; method=&quot;get&quot; id=&quot;ms-search&quot;&gt;
</del><ins>+                &lt;form action=&quot;ms-sites.php&quot; method=&quot;get&quot; id=&quot;ms-search&quot;&gt;
</ins><span class="cx">                 &lt;p class=&quot;search-box&quot;&gt;
</span><span class="cx">                 &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;blogs&quot; /&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr( $s ); ?&gt;&quot; /&gt;
</span><span class="lines">@@ -438,278 +377,14 @@
</span><span class="cx">                 &lt;/p&gt;
</span><span class="cx">                 &lt;/form&gt;
</span><span class="cx"> 
</span><del>-                &lt;form id=&quot;form-site-list&quot; action=&quot;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;
-                &lt;div class=&quot;tablenav&quot;&gt;
-                &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 _ex( 'Mark as Spam', 'site' ); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'site' ); ?&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-ms-sites', '_wpnonce_bulk-ms-sites' ); ?&gt;
-                &lt;/div&gt;
-
-                &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, $total ) ),
-                number_format_i18n( $total ),
-                $page_links
-                ); echo $page_links_text; ?&gt;
-                &lt;/div&gt;
-                &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;
-
-                &lt;/div&gt;
-
-                &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-
-                &lt;?php
-                // define the columns to display, the syntax is 'internal name' =&gt; 'display name'
-                $blogname_columns = ( is_subdomain_install() ) ? __( 'Domain' ) : __( 'Path' );
-                $sites_columns = array(
-                        'id'           =&gt; __( 'ID' ),
-                        'blogname'     =&gt; $blogname_columns,
-                        'lastupdated'  =&gt; __( 'Last Updated'),
-                        'registered'   =&gt; _x( 'Registered', 'site' ),
-                        'users'        =&gt; __( 'Users' )
-                );
-
-                if ( has_filter( 'wpmublogsaction' ) )
-                        $sites_columns['plugins'] = __( 'Actions' );
-
-                $sites_columns = apply_filters( 'wpmu_blogs_columns', $sites_columns );
-                ?&gt;
-
-                &lt;table class=&quot;widefat&quot;&gt;
-                        &lt;thead&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
-                                $col_url = '';
-                                foreach($sites_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 .= '&lt;th scope=&quot;col&quot;&gt;' . ( ( $column_id == 'users' || $column_id == 'plugins' ) ? $column_display_name : $column_link ) . '&lt;/th&gt;';
-                                }
-                                echo $col_url ?&gt;
-                                &lt;/tr&gt;
-                        &lt;/thead&gt;
-                        &lt;tfoot&gt;
-                                &lt;tr&gt;
-                                &lt;th class=&quot;manage-column column-cb check-column&quot; id=&quot;cb1&quot; scope=&quot;col&quot;&gt;
-                                        &lt;input type=&quot;checkbox&quot; /&gt;
-                                &lt;/th&gt;
-                                        &lt;?php echo $col_url ?&gt;
-                                &lt;/tr&gt;
-                        &lt;/tfoot&gt;
-                        &lt;tbody id=&quot;the-site-list&quot; class=&quot;list:site&quot;&gt;
-                        &lt;?php
-                        $status_list = array( 'archived' =&gt; array( 'site-archived', __( 'Archived' ) ), 'spam' =&gt; array( 'site-spammed', _x( 'Spam', 'site' ) ), 'deleted' =&gt; array( 'site-deleted', __( 'Deleted' ) ), 'mature' =&gt; array( 'site-mature', __( 'Mature' ) ) );
-                        if ( $blog_list ) {
-                                $class = '';
-                                foreach ( $blog_list as $blog ) {
-                                        $class = ( 'alternate' == $class ) ? '' : 'alternate';
-                                        reset( $status_list );
-
-                                        $blog_states = array();
-                                        foreach ( $status_list as $status =&gt; $col ) {
-                                                if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) {
-                                                        $class = $col[0];
-                                                        $blog_states[] = $col[1];
-                                                }
-                                        }
-                                        $blog_state = '';
-                                        if ( ! empty( $blog_states ) ) {
-                                                $state_count = count( $blog_states );
-                                                $i = 0;
-                                                $blog_state .= ' - ';
-                                                foreach ( $blog_states as $state ) {
-                                                        ++$i;
-                                                        ( $i == $state_count ) ? $sep = '' : $sep = ', ';
-                                                        $blog_state .= &quot;&lt;span class='post-state'&gt;$state$sep&lt;/span&gt;&quot;;
-                                                }
-                                        }
-                                        echo &quot;&lt;tr class='$class'&gt;&quot;;
-
-                                        $blogname = ( is_subdomain_install() ) ? str_replace( '.'.$current_site-&gt;domain, '', $blog['domain'] ) : $blog['path'];
-                                        foreach ( $sites_columns as $column_name=&gt;$column_display_name ) {
-                                                switch ( $column_name ) {
-                                                        case 'id': ?&gt;
-                                                                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;
-                                                                        &lt;input type=&quot;checkbox&quot; id=&quot;blog_&lt;?php echo $blog['blog_id'] ?&gt;&quot; name=&quot;allblogs[]&quot; value=&quot;&lt;?php echo esc_attr( $blog['blog_id'] ) ?&gt;&quot; /&gt;
-                                                                &lt;/th&gt;
-                                                                &lt;th valign=&quot;top&quot; scope=&quot;row&quot;&gt;
-                                                                        &lt;?php echo $blog['blog_id'] ?&gt;
-                                                                &lt;/th&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'blogname': ?&gt;
-                                                                &lt;td class=&quot;column-title&quot;&gt;
-                                                                        &lt;a href=&quot;&lt;?php echo esc_url( network_admin_url( 'sites.php?action=editblog&amp;amp;id=' . $blog['blog_id'] ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo $blogname . $blog_state; ?&gt;&lt;/a&gt;
-                                                                        &lt;?php
-                                                                        if ( 'list' != $mode )
-                                                                                echo '&lt;p&gt;' . sprintf( _x( '%1$s &amp;#8211; &lt;em&gt;%2$s&lt;/em&gt;', '%1$s: site name. %2$s: site tagline.' ), get_blog_option( $blog['blog_id'], 'blogname' ), get_blog_option( $blog['blog_id'], 'blogdescription ' ) ) . '&lt;/p&gt;';
-
-                                                                        // 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( network_admin_url( '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;';
-                                                                        if ( $current_site-&gt;blog_id != $blog['blog_id'] ) {
-                                                                                if ( get_blog_status( $blog['blog_id'], 'deleted' ) == '1' )
-                                                                                        $actions['activate']        = '&lt;span class=&quot;activate&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=activateblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to activate the site %s' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Activate' ) . '&lt;/a&gt;&lt;/span&gt;';
-                                                                                else
-                                                                                        $actions['deactivate']        = '&lt;span class=&quot;activate&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=deactivateblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to deactivate the site %s' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Deactivate' ) . '&lt;/a&gt;&lt;/span&gt;';
-
-                                                                                if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
-                                                                                        $actions['unarchive']        = '&lt;span class=&quot;archive&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=unarchiveblog&amp;amp;id=' .  $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Unarchive' ) . '&lt;/a&gt;&lt;/span&gt;';
-                                                                                else
-                                                                                        $actions['archive']        = '&lt;span class=&quot;archive&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=archiveblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . _x( 'Archive', 'verb; site' ) . '&lt;/a&gt;&lt;/span&gt;';
-
-                                                                                if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' )
-                                                                                        $actions['unspam']        = '&lt;span class=&quot;spam&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=unspamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . _x( 'Not Spam', 'site' ) . '&lt;/a&gt;&lt;/span&gt;';
-                                                                                else
-                                                                                        $actions['spam']        = '&lt;span class=&quot;spam&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=spamblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to mark the site %s as spam.' ), $blogname ) ) ) ) . '&quot;&gt;' . _x( 'Spam', 'site' ) . '&lt;/a&gt;&lt;/span&gt;';
-
-                                                                                $actions['delete']        = '&lt;span class=&quot;delete&quot;&gt;&lt;a href=&quot;' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;amp;action2=deleteblog&amp;amp;id=' . $blog['blog_id'] . '&amp;amp;msg=' . urlencode( sprintf( __( 'You are about to delete the site %s.' ), $blogname ) ) ) ) . '&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;&lt;/span&gt;';
-                                                                        }
-
-                                                                        $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;&lt;/span&gt;';
-                                                                        $actions = array_filter( $actions );
-                                                                        if ( count( $actions ) ) : ?&gt;
-                                                                        &lt;div class=&quot;row-actions&quot;&gt;
-                                                                                &lt;?php echo implode( ' | ', $actions ); ?&gt;
-                                                                        &lt;/div&gt;
-                                                                        &lt;?php endif; ?&gt;
-                                                                &lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'lastupdated': ?&gt;
-                                                                &lt;td valign=&quot;top&quot;&gt;
-                                                                        &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' ) ? __( 'Never' ) : mysql2date( __( $date ), $blog['last_updated'] ); ?&gt;
-                                                                &lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-                                                case 'registered': ?&gt;
-                                                                &lt;td valign=&quot;top&quot;&gt;
-                                                                &lt;?php
-                                                                if ( $blog['registered'] == '0000-00-00 00:00:00' )
-                                                                        echo '&amp;#x2014;';
-                                                                else
-                                                                        echo mysql2date( __( $date ), $blog['registered'] );
-                                                                ?&gt;
-                                                                &lt;/td&gt;
-                                                &lt;?php
-                                                break;
-                                                        case 'users': ?&gt;
-                                                                &lt;td valign=&quot;top&quot;&gt;
-                                                                        &lt;?php
-                                                                        $blogusers = get_users_of_blog( $blog['blog_id'] );
-                                                                        if ( is_array( $blogusers ) ) {
-                                                                                $blogusers_warning = '';
-                                                                                if ( count( $blogusers ) &gt; 5 ) {
-                                                                                        $blogusers = array_slice( $blogusers, 0, 5 );
-                                                                                        $blogusers_warning = __( 'Only showing first 5 users.' ) . ' &lt;a href=&quot;' . esc_url( get_admin_url( $blog['blog_id'], 'users.php' ) ) . '&quot;&gt;' . __( 'More' ) . '&lt;/a&gt;';
-                                                                                }
-                                                                                foreach ( $blogusers as $key =&gt; $val ) {
-                                                                                        echo '&lt;a href=&quot;' . esc_url( admin_url( 'user-edit.php?user_id=' . $val-&gt;user_id ) ) . '&quot;&gt;' . esc_html( $val-&gt;user_login ) . '&lt;/a&gt; ';
-                                                                                        if ( 'list' != $mode )
-                                                                                                echo '(' . $val-&gt;user_email . ')';
-                                                                                        echo '&lt;br /&gt;';
-                                                                                }
-                                                                                if ( $blogusers_warning != '' )
-                                                                                        echo '&lt;strong&gt;' . $blogusers_warning . '&lt;/strong&gt;&lt;br /&gt;';
-                                                                        }
-                                                                        ?&gt;
-                                                                &lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'plugins': ?&gt;
-                                                                &lt;?php if ( has_filter( 'wpmublogsaction' ) ) { ?&gt;
-                                                                &lt;td valign=&quot;top&quot;&gt;
-                                                                        &lt;?php do_action( 'wpmublogsaction', $blog['blog_id'] ); ?&gt;
-                                                                &lt;/td&gt;
-                                                                &lt;?php } ?&gt;
-                                                        &lt;?php break;
-
-                                                        default: ?&gt;
-                                                                &lt;?php if ( has_filter( 'manage_blogs_custom_column' ) ) { ?&gt;
-                                                                &lt;td valign=&quot;top&quot;&gt;
-                                                                        &lt;?php do_action( 'manage_blogs_custom_column', $column_name, $blog['blog_id'] ); ?&gt;
-                                                                &lt;/td&gt;
-                                                                &lt;?php } ?&gt;
-                                                        &lt;?php break;
-                                                }
-                                        }
-                                        ?&gt;
-                                        &lt;/tr&gt;
-                                        &lt;?php
-                                }
-                        } else { ?&gt;
-                                &lt;tr&gt;
-                                        &lt;td colspan=&quot;&lt;?php echo (int) count( $sites_columns ); ?&gt;&quot;&gt;&lt;?php _e( 'No sites found.' ) ?&gt;&lt;/td&gt;
-                                &lt;/tr&gt;
-                        &lt;?php
-                        } // end if ($blogs)
-                        ?&gt;
-
-                        &lt;/tbody&gt;
-                &lt;/table&gt;
-                &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 _ex( 'Mark as Spam', 'site' ); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'site' ); ?&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;
-
</del><ins>+                &lt;form id=&quot;form-site-list&quot; action=&quot;ms-edit.php?action=allblogs&quot; method=&quot;post&quot;&gt;
+                        &lt;?php $table-&gt;display(); ?&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 id=&quot;form-add-site&quot; class=&quot;wrap&quot;&gt;
</span><span class="cx">                         &lt;h3&gt;&lt;?php _e( 'Add Site' ) ?&gt;&lt;/h3&gt;
</span><del>-                        &lt;form method=&quot;post&quot; action=&quot;edit.php?action=addblog&quot;&gt;
</del><ins>+                        &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=addblog&quot;&gt;
</ins><span class="cx">                                 &lt;?php wp_nonce_field( 'add-blog', '_wpnonce_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><span class="lines">@@ -744,4 +419,4 @@
</span><span class="cx">         break;
</span><span class="cx"> } // end switch( $action )
</span><span class="cx"> 
</span><del>-include( '../admin-footer.php' ); ?&gt;
</del><ins>+include( './admin-footer.php' ); ?&gt;
</ins></span></pre></div>
<a id="trunkwpadminnetworkusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/users.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/users.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/network/users.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -32,15 +32,17 @@
</span><span class="cx">         '&lt;p&gt;' . __('&lt;a href=&quot;http://wordpress.org/support/&quot; target=&quot;_blank&quot;&gt;Support Forums&lt;/a&gt;') . '&lt;/p&gt;'
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-wp_enqueue_script( 'admin-forms' );
</del><ins>+require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><del>-require_once( '../admin-header.php' );
</del><ins>+$table = new WP_MS_Users_Table;
</ins><span class="cx"> 
</span><del>-if ( isset( $_GET['updated'] ) &amp;&amp; $_GET['updated'] == 'true' &amp;&amp; ! empty( $_GET['action'] ) ) {
</del><ins>+require_once( './admin-header.php' );
+
+if ( isset( $_REQUEST['updated'] ) &amp;&amp; $_REQUEST['updated'] == 'true' &amp;&amp; ! empty( $_REQUEST['action'] ) ) {
</ins><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;
</span><span class="cx">                 &lt;?php
</span><del>-                switch ( $_GET['action'] ) {
</del><ins>+                switch ( $_REQUEST['action'] ) {
</ins><span class="cx">                         case 'delete':
</span><span class="cx">                                 _e( 'User deleted.' );
</span><span class="cx">                         break;
</span><span class="lines">@@ -61,300 +63,35 @@
</span><span class="cx">         &lt;/p&gt;&lt;/div&gt;
</span><span class="cx">         &lt;?php
</span><span class="cx"> }
</span><del>-
-        $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0;
-        if ( empty( $pagenum ) )
-                $pagenum = 1;
-
-        $per_page = (int) get_user_option( 'ms_users_per_page' );
-        if ( empty( $per_page ) || $per_page &lt; 1 )
-                $per_page = 15;
-
-        $per_page = apply_filters( 'ms_users_per_page', $per_page );
-
-        $s = isset( $_GET['s'] ) ? stripslashes( trim( $_GET[ 's' ] ) ) : '';
-        $like_s = esc_sql( like_escape( $s ) );
-
-        $query = &quot;SELECT * FROM {$wpdb-&gt;users}&quot;;
-
-        if ( !empty( $like_s ) ) {
-                $query .= &quot; WHERE user_login LIKE '%$like_s%' OR user_email LIKE '%$like_s%'&quot;;
-        }
-
-        $order_by = isset( $_GET['sortby'] ) ? $_GET['sortby'] : 'id';
-        if ( $order_by == 'email' ) {
-                $query .= ' ORDER BY user_email ';
-        } elseif ( $order_by == 'login' ) {
-                $query .= ' ORDER BY user_login ';
-        } elseif ( $order_by == 'name' ) {
-                $query .= ' ORDER BY display_name ';
-        } elseif ( $order_by == 'registered' ) {
-                $query .= ' ORDER BY user_registered ';
-        } else {
-                $order_by = 'id';
-                $query .= ' ORDER BY ID ';
-        }
-
-        $order = ( isset( $_GET['order'] ) &amp;&amp; 'DESC' == $_GET['order'] ) ? 'DESC' : 'ASC';
-        $query .= $order;
-
-        $total = $wpdb-&gt;get_var( str_replace( 'SELECT *', 'SELECT COUNT(ID)', $query ) );
-
-        $query .= &quot; LIMIT &quot; . intval( ( $pagenum - 1 ) * $per_page) . &quot;, &quot; . intval( $per_page );
-
-        $user_list = $wpdb-&gt;get_results( $query, ARRAY_A );
-
-        $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';
-        else
-                $mode = esc_attr( $_GET['mode'] );
-
</del><span class="cx">         ?&gt;
</span><del>-        &lt;div class=&quot;wrap&quot;&gt;
</del><ins>+&lt;div class=&quot;wrap&quot;&gt;
</ins><span class="cx">         &lt;?php screen_icon(); ?&gt;
</span><span class="cx">         &lt;h2&gt;&lt;?php esc_html_e( 'Users' ); ?&gt;
</span><span class="cx">         &lt;a href=&quot;#form-add-user&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x( 'Add New' , 'users'); ?&gt;&lt;/a&gt;
</span><span class="cx">         &lt;?php
</span><del>-        if ( isset( $_GET['s'] ) &amp;&amp; $_GET['s'] )
</del><ins>+        if ( isset( $_REQUEST['s'] ) &amp;&amp; $_REQUEST['s'] )
</ins><span class="cx">         printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __( 'Search results for &amp;#8220;%s&amp;#8221;' ) . '&lt;/span&gt;', esc_html( $s ) );
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;/h2&gt;
</span><span class="cx"> 
</span><del>-        &lt;form action=&quot;users.php&quot; method=&quot;get&quot; class=&quot;search-form&quot;&gt;
</del><ins>+        &lt;form action=&quot;ms-users.php&quot; method=&quot;get&quot; class=&quot;search-form&quot;&gt;
</ins><span class="cx">                 &lt;p class=&quot;search-box&quot;&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr( $s ); ?&gt;&quot; class=&quot;search-input&quot; id=&quot;user-search-input&quot; /&gt;
</span><span class="cx">                 &lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e( 'Search Users' ) ?&gt;&quot; class=&quot;button&quot; /&gt;
</span><span class="cx">                 &lt;/p&gt;
</span><span class="cx">         &lt;/form&gt;
</span><span class="cx"> 
</span><del>-        &lt;form id=&quot;form-user-list&quot; action='edit.php?action=allusers' method='post'&gt;
-                &lt;input type=&quot;hidden&quot; name=&quot;mode&quot; value=&quot;&lt;?php echo esc_attr( $mode ); ?&gt;&quot; /&gt;
-                &lt;div class=&quot;tablenav&quot;&gt;
-                        &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 _ex( 'Mark as Spam', 'user' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'user' ); ?&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-ms-users', '_wpnonce_bulk-ms-users' ); ?&gt;
-                        &lt;/div&gt;
</del><ins>+        &lt;form id=&quot;form-user-list&quot; action='ms-edit.php?action=allusers' method='post'&gt;
+                &lt;?php $table-&gt;display(); ?&gt;
+        &lt;/form&gt;
+&lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                        &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, $total ) ),
-                        number_format_i18n( $total ),
-                        $page_links
-                        ); echo $page_links_text; ?&gt;
-                        &lt;/div&gt;
-                        &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;
-                &lt;/div&gt;
-                &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-
-                &lt;?php
-                // define the columns to display, the syntax is 'internal name' =&gt; 'display name'
-                $users_columns = array(
-                        'id'           =&gt; __( 'ID' ),
-                        'login'      =&gt; __( 'Username' ),
-                        'name'       =&gt; __( 'Name' ),
-                        'email'      =&gt; __( 'E-mail' ),
-                        'registered' =&gt; _x( 'Registered', 'user' ),
-                        'blogs'      =&gt; __( 'Sites' )
-                );
-                $users_columns = apply_filters( 'wpmu_users_columns', $users_columns );
-                ?&gt;
-                &lt;table class=&quot;widefat&quot;&gt;
-                        &lt;thead&gt;
-                        &lt;tr&gt;
-                                &lt;th class=&quot;manage-column column-cb check-column&quot; scope=&quot;col&quot;&gt;
-                                        &lt;input type=&quot;checkbox&quot; /&gt;
-                                &lt;/th&gt;
-                                &lt;?php
-                                $col_url = '';
-                                foreach($users_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 .= '&lt;th scope=&quot;col&quot;&gt;' . ( $column_id == 'blogs' ? $column_display_name : $column_link ) . '&lt;/th&gt;';
-                                }
-                                echo $col_url; ?&gt;
-                        &lt;/tr&gt;
-                        &lt;/thead&gt;
-                        &lt;tfoot&gt;
-                        &lt;tr&gt;
-                                &lt;th class=&quot;manage-column column-cb check-column&quot; scope=&quot;col&quot;&gt;
-                                        &lt;input type=&quot;checkbox&quot; /&gt;
-                                &lt;/th&gt;
-                                &lt;?php echo $col_url; ?&gt;
-                        &lt;/tr&gt;
-                        &lt;/tfoot&gt;
-                        &lt;tbody id=&quot;the-user-list&quot; class=&quot;list:user&quot;&gt;
-                        &lt;?php if ( $user_list ) {
-                                $class = '';
-                                $super_admins = get_super_admins();
-                                foreach ( (array) $user_list as $user ) {
-                                        $class = ( 'alternate' == $class ) ? '' : 'alternate';
-
-                                        $status_list = array( 'spam' =&gt; 'site-spammed', 'deleted' =&gt; 'site-deleted' );
-
-                                        foreach ( $status_list as $status =&gt; $col ) {
-                                                if ( $user[$status] )
-                                                        $class = $col;
-                                        }
-
-                                        ?&gt;
-                                        &lt;tr class=&quot;&lt;?php echo $class; ?&gt;&quot;&gt;
-                                        &lt;?php
-                                        foreach( (array) $users_columns as $column_name=&gt;$column_display_name ) :
-                                                switch( $column_name ) {
-                                                        case 'id': ?&gt;
-                                                                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;
-                                                                        &lt;input type=&quot;checkbox&quot; id=&quot;blog_&lt;?php echo $user['ID'] ?&gt;&quot; name=&quot;allusers[]&quot; value=&quot;&lt;?php echo esc_attr( $user['ID'] ) ?&gt;&quot; /&gt;
-                                                                &lt;/th&gt;
-                                                                &lt;th valign=&quot;top&quot; scope=&quot;row&quot;&gt;
-                                                                        &lt;?php echo $user['ID'] ?&gt;
-                                                                &lt;/th&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'login':
-                                                                $avatar        = get_avatar( $user['user_email'], 32 );
-                                                                $edit_link = ( $current_user-&gt;ID == $user['ID'] ) ? 'profile.php' : 'user-edit.php?user_id=' . $user['ID'];
-                                                                ?&gt;
-                                                                &lt;td class=&quot;username column-username&quot;&gt;
-                                                                        &lt;?php echo $avatar; ?&gt;&lt;strong&gt;&lt;a href=&quot;&lt;?php echo esc_url( network_admin_url( $edit_link ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo stripslashes( $user['user_login'] ); ?&gt;&lt;/a&gt;&lt;?php
-                                                                        if ( in_array( $user['user_login'], $super_admins ) )
-                                                                                echo ' - ' . __( 'Super admin' );
-                                                                        ?&gt;&lt;/strong&gt;
-                                                                        &lt;br/&gt;
-                                                                        &lt;div class=&quot;row-actions&quot;&gt;
-                                                                                &lt;span class=&quot;edit&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url( network_admin_url( $edit_link ) ); ?&gt;&quot;&gt;&lt;?php _e( 'Edit' ); ?&gt;&lt;/a&gt;&lt;/span&gt;
-                                                                                &lt;?php if ( ! in_array( $user['user_login'], $super_admins ) ) { ?&gt;
-                                                                                | &lt;span class=&quot;delete&quot;&gt;&lt;a href=&quot;&lt;?php echo $delete        = esc_url( admin_url( add_query_arg( '_wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'edit.php', 'deleteuser' ) . '&amp;amp;action=deleteuser&amp;amp;id=' . $user['ID'] ) ) ); ?&gt;&quot; class=&quot;delete&quot;&gt;&lt;?php _e( 'Delete' ); ?&gt;&lt;/a&gt;&lt;/span&gt;
-                                                                                &lt;?php } ?&gt;
-                                                                        &lt;/div&gt;
-                                                                &lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'name': ?&gt;
-                                                                &lt;td class=&quot;name column-name&quot;&gt;&lt;?php echo $user['display_name'] ?&gt;&lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'email': ?&gt;
-                                                                &lt;td class=&quot;email column-email&quot;&gt;&lt;a href=&quot;mailto:&lt;?php echo $user['user_email'] ?&gt;&quot;&gt;&lt;?php echo $user['user_email'] ?&gt;&lt;/a&gt;&lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'registered':
-                                                                if ( 'list' == $mode )
-                                                                        $date = 'Y/m/d';
-                                                                else
-                                                                        $date = 'Y/m/d \&lt;\b\r \/\&gt; g:i:s a';
-                                                        ?&gt;
-                                                                &lt;td&gt;&lt;?php echo mysql2date( __( $date ), $user['user_registered'] ); ?&gt;&lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        case 'blogs':
-                                                                $blogs = get_blogs_of_user( $user['ID'], true );
-                                                                ?&gt;
-                                                                &lt;td&gt;
-                                                                        &lt;?php
-                                                                        if ( is_array( $blogs ) ) {
-                                                                                foreach ( (array) $blogs as $key =&gt; $val ) {
-                                                                                        $path        = ( $val-&gt;path == '/' ) ? '' : $val-&gt;path;
-                                                                                        echo '&lt;a href=&quot;'. esc_url( network_admin_url( 'sites.php?action=editblog&amp;amp;id=' . $val-&gt;userblog_id  ) ) .'&quot;&gt;' . str_replace( '.' . $current_site-&gt;domain, '', $val-&gt;domain . $path ) . '&lt;/a&gt;';
-                                                                                        echo ' &lt;small class=&quot;row-actions&quot;&gt;';
-
-                                                                                        // Edit
-                                                                                        echo '&lt;a href=&quot;'. esc_url( network_admin_url( 'sites.php?action=editblog&amp;amp;id=' . $val-&gt;userblog_id  ) ) .'&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt; | ';
-
-                                                                                        // View
-                                                                                        echo '&lt;a ';
-                                                                                        if ( get_blog_status( $val-&gt;userblog_id, 'spam' ) == 1 )
-                                                                                                echo 'style=&quot;background-color: #faa&quot; ';
-                                                                                        echo 'href=&quot;' .  esc_url( get_home_url( $val-&gt;userblog_id ) )  . '&quot;&gt;' . __( 'View' ) . '&lt;/a&gt;';
-
-                                                                                        echo '&lt;/small&gt;&lt;br /&gt;';
-                                                                                }
-                                                                        }
-                                                                        ?&gt;
-                                                                &lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-
-                                                        default: ?&gt;
-                                                                &lt;td&gt;&lt;?php do_action( 'manage_users_custom_column', $column_name, $user['ID'] ); ?&gt;&lt;/td&gt;
-                                                        &lt;?php
-                                                        break;
-                                                }
-                                        endforeach
-                                        ?&gt;
-                                        &lt;/tr&gt;
-                                        &lt;?php
-                                }
-                        } else {
-                        ?&gt;
-                                &lt;tr&gt;
-                                        &lt;td colspan=&quot;&lt;?php echo (int) count($users_columns); ?&gt;&quot;&gt;&lt;?php _e( 'No users found.' ) ?&gt;&lt;/td&gt;
-                                &lt;/tr&gt;
-                                &lt;?php
-                        } // end if ($users)
-                        ?&gt;
-                        &lt;/tbody&gt;
-                &lt;/table&gt;
-
-                &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 _ex( 'Mark as Spam', 'user' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'user' ); ?&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;
-
-                &lt;/form&gt;
-                &lt;/div&gt;
-
</del><span class="cx"> &lt;?php
</span><span class="cx"> if ( apply_filters( 'show_adduser_fields', true ) ) :
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;div class=&quot;wrap&quot; id=&quot;form-add-user&quot;&gt;
</span><span class="cx">         &lt;h3&gt;&lt;?php _e( 'Add User' ) ?&gt;&lt;/h3&gt;
</span><del>-        &lt;form action=&quot;edit.php?action=adduser&quot; method=&quot;post&quot;&gt;
</del><ins>+        &lt;form action=&quot;ms-edit.php?action=adduser&quot; method=&quot;post&quot;&gt;
</ins><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><span class="cx">                         &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Username' ) ?&gt;&lt;/th&gt;
</span><span class="lines">@@ -375,4 +112,4 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php include( '../admin-footer.php' ); ?&gt;
</del><ins>+&lt;?php include( './admin-footer.php' ); ?&gt;
</ins></span></pre></div>
<a id="trunkwpadminplugininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/plugin-install.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/plugin-install.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/plugin-install.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -12,37 +12,13 @@
</span><span class="cx"> if ( ! current_user_can('install_plugins') )
</span><span class="cx">         wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
</span><span class="cx"> 
</span><del>-include(ABSPATH . 'wp-admin/includes/plugin-install.php');
</del><ins>+require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><ins>+$table = new WP_Plugin_Install_Table;
+
</ins><span class="cx"> $title = __('Install Plugins');
</span><span class="cx"> $parent_file = 'plugins.php';
</span><span class="cx"> 
</span><del>-wp_reset_vars( array('tab', 'paged') );
-
-//These are the tabs which are shown on the page,
-$tabs = array();
-$tabs['dashboard'] = __('Search');
-if ( 'search' == $tab )
-        $tabs['search']        = __('Search Results');
-$tabs['upload'] = __('Upload');
-$tabs['featured'] = _x('Featured','Plugin Installer');
-$tabs['popular']  = _x('Popular','Plugin Installer');
-$tabs['new']      = _x('Newest','Plugin Installer');
-$tabs['updated']  = _x('Recently Updated','Plugin Installer');
-
-$nonmenu_tabs = array('plugin-information'); //Valid actions to perform which do not have a Menu item.
-
-$tabs = apply_filters('install_plugins_tabs', $tabs );
-$nonmenu_tabs = apply_filters('install_plugins_nonmenu_tabs', $nonmenu_tabs);
-
-//If a non-valid menu tab has been selected, And its not a non-menu action.
-if ( empty($tab) || ( ! isset($tabs[ $tab ]) &amp;&amp; ! in_array($tab, (array)$nonmenu_tabs) ) ) {
-        $tab_actions = array_keys($tabs);
-        $tab = $tab_actions[0];
-}
-if ( empty($paged) )
-        $paged = 1;
-
</del><span class="cx"> wp_enqueue_style( 'plugin-install' );
</span><span class="cx"> wp_enqueue_script( 'plugin-install' );
</span><span class="cx"> if ( 'plugin-information' != $tab )
</span><span class="lines">@@ -71,7 +47,7 @@
</span><span class="cx">         &lt;ul class=&quot;subsubsub&quot;&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> $display_tabs = array();
</span><del>-foreach ( (array)$tabs as $action =&gt; $text ) {
</del><ins>+foreach ( (array) $tabs as $action =&gt; $text ) {
</ins><span class="cx">         $sep = ( end($tabs) != $text ) ? ' | ' : '';
</span><span class="cx">         $class = ( $action == $tab ) ? ' class=&quot;current&quot;' : '';
</span><span class="cx">         $href = admin_url('plugin-install.php?tab=' . $action);
</span></span></pre></div>
<a id="trunkwpadminpluginsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/plugins.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/plugins.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/plugins.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -31,17 +31,6 @@
</span><span class="cx"> 
</span><span class="cx"> $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : '';
</span><span class="cx"> 
</span><del>-$default_status = get_user_option('plugins_last_view');
-if ( empty($default_status) )
-        $default_status = 'all';
-$status = isset($_REQUEST['plugin_status']) ? $_REQUEST['plugin_status'] : $default_status;
-if ( !in_array($status, array('all', 'active', 'inactive', 'recent', 'upgrade', 'network', 'mustuse', 'dropins', 'search')) )
-        $status = 'all';
-if ( $status != $default_status &amp;&amp; 'search' != $status )
-        update_user_meta($current_user-&gt;ID, 'plugins_last_view', $status);
-
-$page = isset($_REQUEST['paged']) ? $_REQUEST['paged'] : 1;
-
</del><span class="cx"> //Clean up request URI from temporary args for screen options/paging uri's to work as expected.
</span><span class="cx"> $_SERVER['REQUEST_URI'] = remove_query_arg(array('error', 'deleted', 'activate', 'activate-multi', 'deactivate', 'deactivate-multi', '_error_nonce'), $_SERVER['REQUEST_URI']);
</span><span class="cx"> 
</span><span class="lines">@@ -85,7 +74,7 @@
</span><span class="cx">                         if ( ! current_user_can('activate_plugins') )
</span><span class="cx">                                 wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
</span><span class="cx"> 
</span><del>-                        check_admin_referer('bulk-manage-plugins');
</del><ins>+                        check_admin_referer('bulk-plugins');
</ins><span class="cx"> 
</span><span class="cx">                         $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
</span><span class="cx">                         $plugins = array_filter($plugins, create_function('$plugin', 'return !is_plugin_active($plugin);') ); // Only activate plugins which are not already active.
</span><span class="lines">@@ -108,7 +97,7 @@
</span><span class="cx">                         break;
</span><span class="cx">                 case 'update-selected' :
</span><span class="cx"> 
</span><del>-                        check_admin_referer( 'bulk-manage-plugins' );
</del><ins>+                        check_admin_referer( 'bulk-plugins' );
</ins><span class="cx"> 
</span><span class="cx">                         if ( isset( $_GET['plugins'] ) )
</span><span class="cx">                                 $plugins = explode( ',', $_GET['plugins'] );
</span><span class="lines">@@ -120,7 +109,7 @@
</span><span class="cx">                         $title = __( 'Upgrade Plugins' );
</span><span class="cx">                         $parent_file = 'plugins.php';
</span><span class="cx"> 
</span><del>-                        require_once( ABSPATH . 'wp-admin/admin-header.php' );
</del><ins>+                        require_once(ABSPATH . 'wp-admin/admin-header.php');
</ins><span class="cx"> 
</span><span class="cx">                         echo '&lt;div class=&quot;wrap&quot;&gt;';
</span><span class="cx">                         screen_icon();
</span><span class="lines">@@ -132,7 +121,7 @@
</span><span class="cx"> 
</span><span class="cx">                         echo &quot;&lt;iframe src='$url' style='width: 100%; height:100%; min-height:850px;'&gt;&lt;/iframe&gt;&quot;;
</span><span class="cx">                         echo '&lt;/div&gt;';
</span><del>-                        require_once( './admin-footer.php' );
</del><ins>+                        require_once(ABSPATH . 'wp-admin/admin-footer.php');
</ins><span class="cx">                         exit;
</span><span class="cx">                         break;
</span><span class="cx">                 case 'error_scrape':
</span><span class="lines">@@ -178,7 +167,7 @@
</span><span class="cx">                         if ( ! current_user_can('activate_plugins') )
</span><span class="cx">                                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
</span><span class="cx"> 
</span><del>-                        check_admin_referer('bulk-manage-plugins');
</del><ins>+                        check_admin_referer('bulk-plugins');
</ins><span class="cx"> 
</span><span class="cx">                         $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
</span><span class="cx">                         $plugins = array_filter($plugins, 'is_plugin_active'); //Do not deactivate plugins which are already deactivated.
</span><span class="lines">@@ -201,7 +190,7 @@
</span><span class="cx">                         if ( ! current_user_can('delete_plugins') )
</span><span class="cx">                                 wp_die(__('You do not have sufficient permissions to delete plugins for this site.'));
</span><span class="cx"> 
</span><del>-                        check_admin_referer('bulk-manage-plugins');
</del><ins>+                        check_admin_referer('bulk-plugins');
</ins><span class="cx"> 
</span><span class="cx">                         //$_POST = from the plugin form; $_GET = from the FTP details screen.
</span><span class="cx">                         $plugins = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array();
</span><span class="lines">@@ -236,8 +225,8 @@
</span><span class="cx">                                                                 $files_to_delete = array_merge($files_to_delete, $files);
</span><span class="cx">                                                         }
</span><span class="cx">                                                         // Get plugins list from that folder
</span><del>-                                                        if ( $folder_plugins = get_plugins( '/' . dirname($plugin)) ) {
-                                                                foreach( $folder_plugins as $plugin_file =&gt; $data ) {
</del><ins>+                                                        if ( $plugins['folder'] = get_plugins( '/' . dirname($plugin)) ) {
+                                                                foreach( $plugins['folder'] as $plugin_file =&gt; $data ) {
</ins><span class="cx">                                                                         $plugin_info[ $plugin_file ] = $data;
</span><span class="cx">                                                                         $plugin_info[ $plugin_file ]['is_uninstallable'] = is_uninstallable_plugin( $plugin );
</span><span class="cx">                                                                 }
</span><span class="lines">@@ -274,10 +263,10 @@
</span><span class="cx">                                         &lt;input type=&quot;hidden&quot; name=&quot;verify-delete&quot; value=&quot;1&quot; /&gt;
</span><span class="cx">                                         &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;delete-selected&quot; /&gt;
</span><span class="cx">                                         &lt;?php
</span><del>-                                                foreach ( (array)$plugins as $plugin )
</del><ins>+                                                foreach ( (array) $plugins as $plugin )
</ins><span class="cx">                                                         echo '&lt;input type=&quot;hidden&quot; name=&quot;checked[]&quot; value=&quot;' . esc_attr($plugin) . '&quot; /&gt;';
</span><span class="cx">                                         ?&gt;
</span><del>-                                        &lt;?php wp_nonce_field('bulk-manage-plugins') ?&gt;
</del><ins>+                                        &lt;?php wp_nonce_field('bulk-plugins') ?&gt;
</ins><span class="cx">                                         &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&lt;?php $data_to_delete ? esc_attr_e('Yes, Delete these files and data') : esc_attr_e('Yes, Delete these files') ?&gt;&quot; class=&quot;button&quot; /&gt;
</span><span class="cx">                                 &lt;/form&gt;
</span><span class="cx">                                 &lt;form method=&quot;post&quot; action=&quot;&lt;?php echo esc_url(wp_get_referer()); ?&gt;&quot; style=&quot;display:inline;&quot;&gt;
</span><span class="lines">@@ -295,7 +284,7 @@
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx">                                 &lt;?php
</span><del>-                                require_once('./admin-footer.php');
</del><ins>+                                require_once(ABSPATH . 'wp-admin/admin-footer.php');
</ins><span class="cx">                                 exit;
</span><span class="cx">                         } //Endif verify-delete
</span><span class="cx">                         $delete_result = delete_plugins($plugins);
</span><span class="lines">@@ -310,6 +299,19 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+if ( is_multisite() &amp;&amp; is_super_admin() ) {
+        $menu_perms = get_site_option('menu_items', array());
+        if ( empty($menu_perms['plugins']) )
+                add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
+        unset($menu_perms);
+}
+
+$invalid = validate_active_plugins();
+
+require_once( ABSPATH . 'wp-admin/includes/default-list-tables.php' );
+
+$table = new WP_Plugins_Table;
+
</ins><span class="cx"> wp_enqueue_script('plugin-install');
</span><span class="cx"> add_thickbox();
</span><span class="cx"> 
</span><span class="lines">@@ -328,7 +330,6 @@
</span><span class="cx"> 
</span><span class="cx"> require_once(ABSPATH . 'wp-admin/admin-header.php');
</span><span class="cx"> 
</span><del>-$invalid = validate_active_plugins();
</del><span class="cx"> if ( !empty($invalid) )
</span><span class="cx">         foreach ( $invalid as $plugin_file =&gt; $error )
</span><span class="cx">                 echo '&lt;div id=&quot;message&quot; class=&quot;error&quot;&gt;&lt;p&gt;' . sprintf(__('The plugin &lt;code&gt;%s&lt;/code&gt; has been &lt;strong&gt;deactivated&lt;/strong&gt; due to an error: %s'), esc_html($plugin_file), $error-&gt;get_error_message()) . '&lt;/p&gt;&lt;/div&gt;';
</span><span class="lines">@@ -374,325 +375,6 @@
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title ); if ( current_user_can('install_plugins') ) { ?&gt; &lt;a href=&quot;plugin-install.php&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x('Add New', 'plugin'); ?&gt;&lt;/a&gt;&lt;?php } ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-&lt;?php
-
-$all_plugins = apply_filters( 'all_plugins', get_plugins() );
-$search_plugins = array();
-$active_plugins = array();
-$inactive_plugins = array();
-$recent_plugins = array();
-$recently_activated = get_option('recently_activated', array());
-$upgrade_plugins = array();
-$mustuse_plugins = $dropins_plugins = array();
-if ( ! is_multisite() || ( is_network_admin() &amp;&amp; current_user_can('manage_network_plugins') ) ) {
-        if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) )
-                $mustuse_plugins = get_mu_plugins();
-        if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) )
-                $dropins_plugins = get_dropins();
-}
-
-set_transient( 'plugin_slugs', array_keys($all_plugins), 86400 );
-
-// Clean out any plugins which were deactivated over a week ago.
-foreach ( $recently_activated as $key =&gt; $time )
-        if ( $time + (7*24*60*60) &lt; time() ) //1 week
-                unset($recently_activated[ $key ]);
-if ( $recently_activated != get_option('recently_activated') ) //If array changed, update it.
-        update_option('recently_activated', $recently_activated);
-$current = get_site_transient( 'update_plugins' );
-
-foreach ( array( 'all_plugins', 'mustuse_plugins', 'dropins_plugins' ) as $plugin_array_name) {
-        foreach ( (array) $$plugin_array_name as $plugin_file =&gt; $plugin_data ) {
-                // Translate, Apply Markup, Sanitize HTML
-                $plugin_data = _get_plugin_data_markup_translate($plugin_file, $plugin_data, false, true);
-                ${$plugin_array_name}[ $plugin_file ] = $plugin_data;
-        }
-}
-unset( $plugin_array_name );
-
-foreach ( (array) $all_plugins as $plugin_file =&gt; $plugin_data) {
-        if ( is_network_admin() )
-                $is_active = is_plugin_active_for_network($plugin_file);
-        else
-                $is_active = is_plugin_active($plugin_file);
-        // Filter into individual sections
-        if ( is_plugin_active_for_network($plugin_file) &amp;&amp; !is_network_admin() ) {
-                unset( $all_plugins[ $plugin_file ] );
-                continue;
-        } elseif ( is_multisite() &amp;&amp; is_network_only_plugin( $plugin_file ) &amp;&amp; !current_user_can( 'manage_network_plugins' ) ) {
-                unset( $all_plugins[ $plugin_file ] );
-                continue;
-        } elseif ( $is_active ) {
-                $active_plugins[ $plugin_file ] = $plugin_data;
-        } else {
-                if ( !is_network_admin() &amp;&amp; isset( $recently_activated[ $plugin_file ] ) ) // Was the plugin recently activated?
-                        $recent_plugins[ $plugin_file ] = $plugin_data;
-                $inactive_plugins[ $plugin_file ] = $plugin_data;
-        }
-
-        if ( isset( $current-&gt;response[ $plugin_file ] ) )
-                $upgrade_plugins[ $plugin_file ] = $plugin_data;
-}
-
-if ( !current_user_can('update_plugins') )
-        $upgrade_plugins = array();
-
-$total_all_plugins = count($all_plugins);
-$total_inactive_plugins = count($inactive_plugins);
-$total_active_plugins = count($active_plugins);
-$total_recent_plugins = count($recent_plugins);
-$total_upgrade_plugins = count($upgrade_plugins);
-$total_mustuse_plugins = count($mustuse_plugins);
-$total_dropins_plugins = count($dropins_plugins);
-
-// Searching.
-if ( !empty($_GET['s']) ) {
-        function _search_plugins_filter_callback($plugin) {
-                static $term;
-                if ( is_null($term) )
-                        $term = stripslashes($_GET['s']);
-                if (         stripos($plugin['Name'], $term) !== false ||
-                                stripos($plugin['Description'], $term) !== false ||
-                                stripos($plugin['Author'], $term) !== false ||
-                                stripos($plugin['PluginURI'], $term) !== false ||
-                                stripos($plugin['AuthorURI'], $term) !== false ||
-                                stripos($plugin['Version'], $term) !== false )
-                        return true;
-                else
-                        return false;
-        }
-        $status = 'search';
-        $search_plugins = array_filter($all_plugins, '_search_plugins_filter_callback');
-        $total_search_plugins = count($search_plugins);
-}
-
-$plugin_array_name = &quot;${status}_plugins&quot;;
-if ( empty($$plugin_array_name) &amp;&amp; !in_array($status, array('all', 'search')) ) {
-        $status = 'all';
-        $plugin_array_name = &quot;${status}_plugins&quot;;
-}
-
-$plugins = &amp;$$plugin_array_name;
-
-// Paging.
-$total_this_page = &quot;total_{$status}_plugins&quot;;
-$total_this_page = $$total_this_page;
-$plugins_per_page = (int) get_user_option( 'plugins_per_page' );
-if ( empty( $plugins_per_page ) || $plugins_per_page &lt; 1 )
-        $plugins_per_page = 999;
-$plugins_per_page = apply_filters( 'plugins_per_page', $plugins_per_page );
-
-$start = ($page - 1) * $plugins_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; ceil($total_this_page / $plugins_per_page),
-        'current' =&gt; $page
-));
-$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( $start + 1 ),
-        number_format_i18n( min( $page * $plugins_per_page, $total_this_page ) ),
-        '&lt;span class=&quot;total-type-count&quot;&gt;' . number_format_i18n( $total_this_page ) . '&lt;/span&gt;',
-        $page_links
-);
-
-/**
- * @ignore
- *
- * @param array $plugins
- * @param string $context
- */
-function print_plugins_table($plugins, $context = '') {
-        global $page;
-        $checkbox = ! in_array( $context, array( 'mustuse', 'dropins' ) ) ? '&lt;input type=&quot;checkbox&quot; /&gt;' : '';
-?&gt;
-&lt;table class=&quot;widefat&quot; cellspacing=&quot;0&quot; id=&quot;&lt;?php echo $context ?&gt;-plugins-table&quot;&gt;
-        &lt;thead&gt;
-        &lt;tr&gt;
-                &lt;th scope=&quot;col&quot; class=&quot;manage-column check-column&quot;&gt;&lt;?php echo $checkbox; ?&gt;&lt;/th&gt;
-                &lt;th scope=&quot;col&quot; class=&quot;manage-column&quot;&gt;&lt;?php _e('Plugin'); ?&gt;&lt;/th&gt;
-                &lt;th scope=&quot;col&quot; class=&quot;manage-column&quot;&gt;&lt;?php _e('Description'); ?&gt;&lt;/th&gt;
-        &lt;/tr&gt;
-        &lt;/thead&gt;
-
-        &lt;tfoot&gt;
-        &lt;tr&gt;
-                &lt;th scope=&quot;col&quot; class=&quot;manage-column check-column&quot;&gt;&lt;?php echo $checkbox; ?&gt;&lt;/th&gt;
-                &lt;th scope=&quot;col&quot; class=&quot;manage-column&quot;&gt;&lt;?php _e('Plugin'); ?&gt;&lt;/th&gt;
-                &lt;th scope=&quot;col&quot; class=&quot;manage-column&quot;&gt;&lt;?php _e('Description'); ?&gt;&lt;/th&gt;
-        &lt;/tr&gt;
-        &lt;/tfoot&gt;
-
-        &lt;tbody class=&quot;plugins&quot;&gt;
-&lt;?php
-
-        if ( empty($plugins) ) {
-                echo '&lt;tr&gt;
-                        &lt;td colspan=&quot;3&quot;&gt;' . __('No plugins to show') . '&lt;/td&gt;
-                &lt;/tr&gt;';
-        }
-        foreach ( (array)$plugins as $plugin_file =&gt; $plugin_data) {
-                // preorder
-                $actions = array(
-                        'network_deactivate' =&gt; '', 'deactivate' =&gt; '',
-                        'network_only' =&gt; '', 'activate' =&gt; '',
-                        'network_activate' =&gt; '',
-                        'edit' =&gt; '',
-                        'delete' =&gt; '',
-                );
-
-                if ( 'mustuse' == $context ) {
-                        if ( is_multisite() &amp;&amp; !is_network_admin() )
-                                continue;
-                        $is_active = true;
-                } elseif ( 'dropins' == $context ) {
-                        if ( is_multisite() &amp;&amp; !is_network_admin() )
-                                continue;
-                        $dropins = _get_dropins();
-                        $plugin_name = $plugin_file;
-                        if ( $plugin_file != $plugin_data['Name'] )
-                                $plugin_name .= '&lt;br/&gt;' . $plugin_data['Name'];
-                        if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant
-                                $is_active = true;
-                                $description = '&lt;p&gt;&lt;strong&gt;' . $dropins[ $plugin_file ][0] . '&lt;/strong&gt;&lt;/p&gt;';
-                        } elseif ( constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true
-                                $is_active = true;
-                                $description = '&lt;p&gt;&lt;strong&gt;' . $dropins[ $plugin_file ][0] . '&lt;/strong&gt;&lt;/p&gt;';
-                        } else {
-                                $is_active = false;
-                                $description = '&lt;p&gt;&lt;strong&gt;' . $dropins[ $plugin_file ][0] . ' &lt;span class=&quot;attention&quot;&gt;' . __('Inactive:') . '&lt;/span&gt;&lt;/strong&gt; ' . sprintf( __( 'Requires &lt;code&gt;%s&lt;/code&gt; in &lt;code&gt;wp-config.php&lt;/code&gt;.' ), &quot;define('&quot; . $dropins[ $plugin_file ][1] . &quot;', true);&quot; ) . '&lt;/p&gt;';
-                        }
-                        if ( $plugin_data['Description'] )
-                                $description .= '&lt;p&gt;' . $plugin_data['Description'] . '&lt;/p&gt;';
-                } else {
-                        $is_active_for_network = is_plugin_active_for_network($plugin_file);
-                        if ( is_network_admin() )
-                                $is_active = $is_active_for_network;
-                        else
-                                $is_active = is_plugin_active( $plugin_file );
-
-                        if ( $is_active_for_network &amp;&amp; !is_super_admin() &amp;&amp; !is_network_admin() )
-                                continue;
-
-                        if ( is_network_admin() ) {
-                                if ( $is_active_for_network ) {
-                                        if ( current_user_can( 'manage_network_plugins' ) )
-                                                $actions['network_deactivate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=deactivate&amp;amp;networkwide=1&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'deactivate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Deactivate this plugin') . '&quot;&gt;' . __('Network Deactivate') . '&lt;/a&gt;';
-                                } else {
-                                        if ( current_user_can( 'manage_network_plugins' ) )
-                                                $actions['network_activate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=activate&amp;amp;networkwide=1&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'activate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Activate this plugin for all sites in this network') . '&quot; class=&quot;edit&quot;&gt;' . __('Network Activate') . '&lt;/a&gt;';
-                                        if ( current_user_can('delete_plugins') )
-                                                $actions['delete'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=delete-selected&amp;amp;checked[]=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'bulk-manage-plugins') . '&quot; title=&quot;' . __('Delete this plugin') . '&quot; class=&quot;delete&quot;&gt;' . __('Delete') . '&lt;/a&gt;';
-                                }
-                        } else {
-                                if ( $is_active ) {
-                                        $actions['deactivate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=deactivate&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'deactivate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Deactivate this plugin') . '&quot;&gt;' . __('Deactivate') . '&lt;/a&gt;';
-                                } else {
-                                        if ( is_network_only_plugin( $plugin_file ) &amp;&amp; !is_network_admin() )
-                                                continue;
-
-                                        $actions['activate'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=activate&amp;amp;plugin=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'activate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Activate this plugin') . '&quot; class=&quot;edit&quot;&gt;' . __('Activate') . '&lt;/a&gt;';
-
-                                        if ( current_user_can('delete_plugins') )
-                                                $actions['delete'] = '&lt;a href=&quot;' . wp_nonce_url('plugins.php?action=delete-selected&amp;amp;checked[]=' . $plugin_file . '&amp;amp;plugin_status=' . $context . '&amp;amp;paged=' . $page, 'bulk-manage-plugins') . '&quot; title=&quot;' . __('Delete this plugin') . '&quot; class=&quot;delete&quot;&gt;' . __('Delete') . '&lt;/a&gt;';
-                                } // end if $is_active
-                         } // end if is_network_admin()
-
-                        if ( current_user_can('edit_plugins') &amp;&amp; is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
-                                $actions['edit'] = '&lt;a href=&quot;plugin-editor.php?file=' . $plugin_file . '&quot; title=&quot;' . __('Open this file in the Plugin Editor') . '&quot; class=&quot;edit&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                } // end if $context
-
-                $actions = apply_filters( 'plugin_action_links', array_filter( $actions ), $plugin_file, $plugin_data, $context );
-                $actions = apply_filters( &quot;plugin_action_links_$plugin_file&quot;, $actions, $plugin_file, $plugin_data, $context );
-
-                $class = $is_active ? 'active' : 'inactive';
-                $checkbox = in_array( $context, array( 'mustuse', 'dropins' ) ) ? '' : &quot;&lt;input type='checkbox' name='checked[]' value='&quot; . esc_attr($plugin_file) . &quot;' /&gt;&quot;;
-                if ( 'dropins' != $context ) {
-                        $description = '&lt;p&gt;' . $plugin_data['Description'] . '&lt;/p&gt;';
-                        $plugin_name = $plugin_data['Name'];
-                }
-                echo &quot;
-        &lt;tr class='$class'&gt;
-                &lt;th scope='row' class='check-column'&gt;$checkbox&lt;/th&gt;
-                &lt;td class='plugin-title'&gt;&lt;strong&gt;$plugin_name&lt;/strong&gt;&lt;/td&gt;
-                &lt;td class='desc'&gt;$description&lt;/td&gt;
-        &lt;/tr&gt;
-        &lt;tr class='$class second'&gt;
-                &lt;td&gt;&lt;/td&gt;
-                &lt;td class='plugin-title'&gt;&quot;;
-                echo '&lt;div class=&quot;row-actions-visible&quot;&gt;';
-                foreach ( $actions as $action =&gt; $link ) {
-                        $sep = end($actions) == $link ? '' : ' | ';
-                        echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                }
-                echo &quot;&lt;/div&gt;&lt;/td&gt;
-                &lt;td class='desc'&gt;&quot;;
-                $plugin_meta = array();
-                if ( !empty($plugin_data['Version']) )
-                        $plugin_meta[] = sprintf(__('Version %s'), $plugin_data['Version']);
-                if ( !empty($plugin_data['Author']) ) {
-                        $author = $plugin_data['Author'];
-                        if ( !empty($plugin_data['AuthorURI']) )
-                                $author = '&lt;a href=&quot;' . $plugin_data['AuthorURI'] . '&quot; title=&quot;' . __( 'Visit author homepage' ) . '&quot;&gt;' . $plugin_data['Author'] . '&lt;/a&gt;';
-                        $plugin_meta[] = sprintf( __('By %s'), $author );
-                }
-                if ( ! empty($plugin_data['PluginURI']) )
-                        $plugin_meta[] = '&lt;a href=&quot;' . $plugin_data['PluginURI'] . '&quot; title=&quot;' . __( 'Visit plugin site' ) . '&quot;&gt;' . __('Visit plugin site') . '&lt;/a&gt;';
-
-                $plugin_meta = apply_filters('plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $context);
-                echo implode(' | ', $plugin_meta);
-                echo &quot;&lt;/td&gt;
-        &lt;/tr&gt;\n&quot;;
-
-                do_action( 'after_plugin_row', $plugin_file, $plugin_data, $context );
-                do_action( &quot;after_plugin_row_$plugin_file&quot;, $plugin_file, $plugin_data, $context );
-        }
-?&gt;
-        &lt;/tbody&gt;
-&lt;/table&gt;
-&lt;?php
-} //End print_plugins_table()
-
-/**
- * @ignore
- *
- * @param string $context
- */
-function print_plugin_actions($context, $field_name = 'action' ) {
-        if ( in_array( $context, array( 'mustuse', 'dropins' ) ) )
-                return;
-?&gt;
-        &lt;div class=&quot;alignleft actions&quot;&gt;
-                &lt;select name=&quot;&lt;?php echo $field_name; ?&gt;&quot;&gt;
-                        &lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-        &lt;?php if ( 'active' != $context ) : ?&gt;
-                        &lt;option value=&quot;activate-selected&quot;&gt;&lt;?php _e('Activate'); ?&gt;&lt;/option&gt;
-        &lt;?php endif; ?&gt;
-        &lt;?php if ( is_multisite() &amp;&amp; 'network' != $context ) : ?&gt;
-                        &lt;option value=&quot;network-activate-selected&quot;&gt;&lt;?php _e('Network Activate'); ?&gt;&lt;/option&gt;
-        &lt;?php endif; ?&gt;
-        &lt;?php if ( 'inactive' != $context &amp;&amp; 'recent' != $context ) : ?&gt;
-                        &lt;option value=&quot;deactivate-selected&quot;&gt;&lt;?php _e('Deactivate'); ?&gt;&lt;/option&gt;
-        &lt;?php endif; ?&gt;
-        &lt;?php if ( current_user_can( 'update_plugins' ) ) : ?&gt;
-                        &lt;option value=&quot;update-selected&quot;&gt;&lt;?php _e( 'Upgrade' ); ?&gt;&lt;/option&gt;
-        &lt;?php endif; ?&gt;
-        &lt;?php if ( current_user_can('delete_plugins') &amp;&amp; ( 'active' != $context ) ) : ?&gt;
-                        &lt;option value=&quot;delete-selected&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
-        &lt;?php endif; ?&gt;
-                &lt;/select&gt;
-                &lt;input type=&quot;submit&quot; name=&quot;doaction_active&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; class=&quot;button-secondary action&quot; /&gt;
-        &lt;?php if ( 'recent' == $context ) : ?&gt;
-                &lt;input type=&quot;submit&quot; name=&quot;clear-recent-list&quot; value=&quot;&lt;?php esc_attr_e('Clear List') ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
-        &lt;?php endif; ?&gt;
-        &lt;/div&gt;
-&lt;?php
-}
-?&gt;
-
</del><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;&quot;&gt;
</span><span class="cx"> &lt;p class=&quot;search-box&quot;&gt;
</span><span class="cx">         &lt;label class=&quot;screen-reader-text&quot; for=&quot;plugin-search-input&quot;&gt;&lt;?php _e( 'Search Plugins' ); ?&gt;:&lt;/label&gt;
</span><span class="lines">@@ -701,51 +383,56 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;?php do_action( 'pre_current_active_plugins', $all_plugins ) ?&gt;
</del><ins>+&lt;?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;form method=&quot;post&quot; action=&quot;plugins.php&quot;&gt;
-&lt;?php wp_nonce_field('bulk-manage-plugins') ?&gt;
</del><ins>+&lt;form method=&quot;post&quot; action=&quot;&quot;&gt;
</ins><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;plugin_status&quot; value=&quot;&lt;?php echo esc_attr($status) ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;paged&quot; value=&quot;&lt;?php echo esc_attr($page) ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;ul class=&quot;subsubsub&quot;&gt;
</span><span class="cx"> &lt;?php
</span><ins>+
</ins><span class="cx"> $status_links = array();
</span><del>-$class = ( 'all' == $status ) ? ' class=&quot;current&quot;' : '';
-$status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=all' $class&gt;&quot; . sprintf( _nx( 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_all_plugins, 'plugins' ), number_format_i18n( $total_all_plugins ) ) . '&lt;/a&gt;';
-if ( ! empty($active_plugins) ) {
-        $class = ( 'active' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=active' $class&gt;&quot; . sprintf( _n( 'Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_active_plugins ), number_format_i18n( $total_active_plugins ) ) . '&lt;/a&gt;';
</del><ins>+foreach ( $totals as $type =&gt; $count ) {
+        if ( !$count )
+                continue;
+
+        switch ( $type ) {
+                case 'all':
+                        $text = _nx( 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count, 'plugins' );
+                        break;
+                case 'active':
+                        $text = _n( 'Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'recently_activated':
+                        $text = _n( 'Recently Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Recently Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'inactive':
+                        $text = _n( 'Inactive &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Inactive &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'network':
+                        $text = _n( 'Network &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Network &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'mustuse':
+                        $text = _n( 'Must-Use &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Must-Use &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'dropins':
+                        $text = _n( 'Drop-ins &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Drop-ins &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'upgrade':
+                        $text = _n( 'Upgrade Available &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Upgrade Available &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+                case 'search':
+                        $text = _n( 'Search Results &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Search Results &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                        break;
+        }
+
+        $status_links[] = sprintf( &quot;&lt;li&gt;&lt;a href='%s' %s&gt;%s&lt;/a&gt;&quot;, 
+                add_query_arg('plugin_status', $type, 'plugins.php'),
+                ( $type == $status ) ? ' class=&quot;current&quot;' : '',
+                sprintf( $text, number_format_i18n( $count ) )
+        );
</ins><span class="cx"> }
</span><del>-if ( ! empty($recent_plugins) ) {
-        $class = ( 'recent' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=recent' $class&gt;&quot; . sprintf( _n( 'Recently Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Recently Active &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_recent_plugins ), number_format_i18n( $total_recent_plugins ) ) . '&lt;/a&gt;';
-}
-if ( ! empty($inactive_plugins) ) {
-        $class = ( 'inactive' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=inactive' $class&gt;&quot; . sprintf( _n( 'Inactive &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Inactive &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_inactive_plugins ), number_format_i18n( $total_inactive_plugins ) ) . '&lt;/a&gt;';
-}
-if ( ! empty($network_plugins) ) {
-        $class = ( 'network' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=network' $class&gt;&quot; . sprintf( _n( 'Network &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Network &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_network_plugins ), number_format_i18n( $total_network_plugins ) ) . '&lt;/a&gt;';
-}
-if ( ! empty($mustuse_plugins) ) {
-        $class = ( 'mustuse' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=mustuse' $class&gt;&quot; . sprintf( _n( 'Must-Use &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Must-Use &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_mustuse_plugins ), number_format_i18n( $total_mustuse_plugins ) ) . '&lt;/a&gt;';
-}
-if ( ! empty($dropins_plugins) ) {
-        $class = ( 'dropins' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=dropins' $class&gt;&quot; . sprintf( _n( 'Drop-ins &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Drop-ins &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_dropins_plugins ), number_format_i18n( $total_dropins_plugins ) ) . '&lt;/a&gt;';
-}
-if ( ! empty($upgrade_plugins) ) {
-        $class = ( 'upgrade' == $status ) ? ' class=&quot;current&quot;' : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?plugin_status=upgrade' $class&gt;&quot; . sprintf( _n( 'Upgrade Available &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Upgrade Available &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_upgrade_plugins ), number_format_i18n( $total_upgrade_plugins ) ) . '&lt;/a&gt;';
-}
-if ( ! empty($search_plugins) ) {
-        $class = ( 'search' == $status ) ? ' class=&quot;current&quot;' : '';
-        $term = isset($_REQUEST['s']) ? urlencode(stripslashes($_REQUEST['s'])) : '';
-        $status_links[] = &quot;&lt;li&gt;&lt;a href='plugins.php?s=$term' $class&gt;&quot; . sprintf( _n( 'Search Results &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Search Results &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_search_plugins ), number_format_i18n( $total_search_plugins ) ) . '&lt;/a&gt;';
-}
</del><span class="cx"> echo implode( &quot; |&lt;/li&gt;\n&quot;, $status_links ) . '&lt;/li&gt;';
</span><span class="cx"> unset( $status_links );
</span><span class="cx"> ?&gt;
</span><span class="lines">@@ -753,49 +440,15 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><span class="cx"> if ( 'mustuse' == $status )
</span><del>-        echo '&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;p&gt;' . __( 'Files in the &lt;code&gt;/wp-content/mu-plugins&lt;/code&gt; directory are executed automatically.' ) . '&lt;/p&gt;';
</del><ins>+        echo '&lt;br class=&quot;clear&quot;&gt;&lt;p&gt;' . __( 'Files in the &lt;code&gt;/wp-content/mu-plugins&lt;/code&gt; directory are executed automatically.' ) . '&lt;/p&gt;';
</ins><span class="cx"> elseif ( 'dropins' == $status )
</span><del>-        echo '&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;p&gt;' . __( 'Drop-ins are advanced plugins in the &lt;code&gt;/wp-content&lt;/code&gt; directory that replace WordPress functionality when present.' ) . '&lt;/p&gt;';
-
-if ( !empty( $plugins ) &amp;&amp; ( ! in_array( $status, array( 'mustuse', 'dropins' ) ) || $page_links ) ) :
</del><ins>+        echo '&lt;br class=&quot;clear&quot;&gt;&lt;p&gt;' . __( 'Drop-ins are advanced plugins in the &lt;code&gt;/wp-content&lt;/code&gt; directory that replace WordPress functionality when present.' ) . '&lt;/p&gt;';
</ins><span class="cx"> ?&gt;
</span><del>-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php
-if ( $page_links )
-        echo '&lt;div class=&quot;tablenav-pages&quot;&gt;', $page_links_text, '&lt;/div&gt;';
</del><span class="cx"> 
</span><del>-print_plugin_actions($status);
-?&gt;
-&lt;/div&gt;
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-&lt;?php
-endif;
-
-if ( $total_this_page &gt; $plugins_per_page )
-        $plugins = array_slice($plugins, $start, $plugins_per_page);
-
-print_plugins_table($plugins, $status);
-
-if ( !empty( $plugins ) &amp;&amp; ! in_array( $status, array( 'mustuse', 'dropins' ) ) || $page_links ) {
-?&gt;
-&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;;
-
-print_plugin_actions($status, &quot;action2&quot;);
-?&gt;
-&lt;/div&gt;
-&lt;?php } ?&gt;
</del><ins>+&lt;?php $table-&gt;display(); ?&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( empty($all_plugins) ) : ?&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;p&gt;&lt;?php _e('You do not appear to have any plugins available at this time.') ?&gt;&lt;/p&gt;
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><span class="cx"> include(ABSPATH . 'wp-admin/admin-footer.php');
</span><del>-?&gt;
</del></span></pre></div>
<a id="trunkwpadminthemeinstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/theme-install.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/theme-install.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/theme-install.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -12,43 +12,20 @@
</span><span class="cx"> if ( ! current_user_can('install_themes') )
</span><span class="cx">         wp_die(__('You do not have sufficient permissions to install themes on this site.'));
</span><span class="cx"> 
</span><del>-include(ABSPATH . 'wp-admin/includes/theme-install.php');
</del><ins>+require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><ins>+$table = new WP_Theme_Install_Table;
+
</ins><span class="cx"> $title = __('Install Themes');
</span><span class="cx"> $parent_file = 'themes.php';
</span><span class="cx"> $submenu_file = 'themes.php';
</span><span class="cx"> 
</span><del>-wp_reset_vars( array('tab', 'paged') );
</del><span class="cx"> wp_enqueue_style( 'theme-install' );
</span><span class="cx"> wp_enqueue_script( 'theme-install' );
</span><span class="cx"> 
</span><span class="cx"> add_thickbox();
</span><span class="cx"> wp_enqueue_script( 'theme-preview' );
</span><span class="cx"> 
</span><del>-//These are the tabs which are shown on the page,
-$tabs = array();
-$tabs['dashboard'] = __('Search');
-if ( 'search' == $tab )
-        $tabs['search']        = __('Search Results');
-$tabs['upload'] = __('Upload');
-$tabs['featured'] = _x('Featured','Theme Installer');
-//$tabs['popular']  = _x('Popular','Theme Installer');
-$tabs['new']      = _x('Newest','Theme Installer');
-$tabs['updated']  = _x('Recently Updated','Theme Installer');
-
-$nonmenu_tabs = array('theme-information'); //Valid actions to perform which do not have a Menu item.
-
-$tabs = apply_filters('install_themes_tabs', $tabs );
-$nonmenu_tabs = apply_filters('install_themes_nonmenu_tabs', $nonmenu_tabs);
-
-//If a non-valid menu tab has been selected, And its not a non-menu action.
-if ( empty($tab) || ( ! isset($tabs[ $tab ]) &amp;&amp; ! in_array($tab, (array)$nonmenu_tabs) ) ) {
-        $tab_actions = array_keys($tabs);
-        $tab = $tab_actions[0];
-}
-if ( empty($paged) )
-        $paged = 1;
-
</del><span class="cx"> $body_id = $tab;
</span><span class="cx"> 
</span><span class="cx"> do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
</span><span class="lines">@@ -70,7 +47,7 @@
</span><span class="cx">         &lt;ul class=&quot;subsubsub&quot;&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> $display_tabs = array();
</span><del>-foreach ( (array)$tabs as $action =&gt; $text ) {
</del><ins>+foreach ( (array) $tabs as $action =&gt; $text ) {
</ins><span class="cx">         $sep = ( end($tabs) != $text ) ? ' | ' : '';
</span><span class="cx">         $class = ( $action == $tab ) ? ' class=&quot;current&quot;' : '';
</span><span class="cx">         $href = admin_url('theme-install.php?tab='. $action);
</span><span class="lines">@@ -83,3 +60,4 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> include('./admin-footer.php');
</span><ins>+
</ins></span></pre></div>
<a id="trunkwpadminthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/themes.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/themes.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/themes.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -28,6 +28,10 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+require_once( './includes/default-list-tables.php' );
+
+$table = new WP_Themes_Table;
+
</ins><span class="cx"> $title = __('Manage Themes');
</span><span class="cx"> $parent_file = 'themes.php';
</span><span class="cx"> 
</span><span class="lines">@@ -65,35 +69,7 @@
</span><span class="cx">         elseif ( isset($_GET['deleted']) ) : ?&gt;
</span><span class="cx"> &lt;div id=&quot;message3&quot; class=&quot;updated&quot;&gt;&lt;p&gt;&lt;?php _e('Theme deleted.') ?&gt;&lt;/p&gt;&lt;/div&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><del>-&lt;?php
-$themes = get_allowed_themes();
-$ct = current_theme_info();
-unset($themes[$ct-&gt;name]);
</del><span class="cx"> 
</span><del>-uksort( $themes, &quot;strnatcasecmp&quot; );
-$theme_total = count( $themes );
-$per_page = 15;
-
-if ( isset( $_GET['pagenum'] ) )
-        $page = absint( $_GET['pagenum'] );
-
-if ( empty($page) )
-        $page = 1;
-
-$start = $offset = ( $page - 1 ) * $per_page;
-
-$page_links = paginate_links( array(
-        'base' =&gt; add_query_arg( 'pagenum', '%#%' ) . '#themenav',
-        'format' =&gt; '',
-        'prev_text' =&gt; __('&amp;laquo;'),
-        'next_text' =&gt; __('&amp;raquo;'),
-        'total' =&gt; ceil($theme_total / $per_page),
-        'current' =&gt; $page
-));
-
-$themes = array_slice( $themes, $start, $per_page );
-?&gt;
-
</del><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;a href=&quot;themes.php&quot; class=&quot;nav-tab nav-tab-active&quot;&gt;&lt;?php echo esc_html( $title ); ?&gt;&lt;/a&gt;&lt;?php if ( current_user_can('install_themes') ) { ?&gt;&lt;a href=&quot;theme-install.php&quot; class=&quot;nav-tab&quot;&gt;&lt;?php echo esc_html_x('Install Themes', 'theme'); ?&gt;&lt;/a&gt;&lt;?php } ?&gt;&lt;/h2&gt;
</span><span class="lines">@@ -119,7 +95,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;br class=&quot;clear&quot;&gt;
</ins><span class="cx"> &lt;?php
</span><span class="cx"> if ( ! current_user_can( 'switch_themes' ) ) {
</span><span class="cx">         echo '&lt;/div&gt;';
</span><span class="lines">@@ -128,122 +104,11 @@
</span><span class="cx"> }
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;h3&gt;&lt;?php _e('Available Themes'); ?&gt;&lt;/h3&gt;
</span><del>-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
</del><span class="cx"> 
</span><del>-&lt;?php if ( $theme_total ) { ?&gt;
</del><ins>+&lt;?php $table-&gt;display(); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;?php if ( $page_links ) : ?&gt;
-&lt;div class=&quot;tablenav&quot;&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( $start + 1 ),
-        number_format_i18n( min( $page * $per_page, $theme_total ) ),
-        number_format_i18n( $theme_total ),
-        $page_links
-); echo $page_links_text; ?&gt;&lt;/div&gt;
-&lt;/div&gt;
-&lt;?php endif; ?&gt;
-
-&lt;table id=&quot;availablethemes&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
-&lt;?php
-$style = '';
-
-$theme_names = array_keys($themes);
-natcasesort($theme_names);
-
-$table = array();
-$rows = ceil(count($theme_names) / 3);
-for ( $row = 1; $row &lt;= $rows; $row++ )
-        for ( $col = 1; $col &lt;= 3; $col++ )
-                $table[$row][$col] = array_shift($theme_names);
-
-foreach ( $table as $row =&gt; $cols ) {
-?&gt;
-&lt;tr&gt;
-&lt;?php
-foreach ( $cols as $col =&gt; $theme_name ) {
-        $class = array('available-theme');
-        if ( $row == 1 ) $class[] = 'top';
-        if ( $col == 1 ) $class[] = 'left';
-        if ( $row == $rows ) $class[] = 'bottom';
-        if ( $col == 3 ) $class[] = 'right';
-?&gt;
-        &lt;td class=&quot;&lt;?php echo join(' ', $class); ?&gt;&quot;&gt;
-&lt;?php if ( !empty($theme_name) ) :
-        $template = $themes[$theme_name]['Template'];
-        $stylesheet = $themes[$theme_name]['Stylesheet'];
-        $title = $themes[$theme_name]['Title'];
-        $version = $themes[$theme_name]['Version'];
-        $description = $themes[$theme_name]['Description'];
-        $author = $themes[$theme_name]['Author'];
-        $screenshot = $themes[$theme_name]['Screenshot'];
-        $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
-        $template_dir = $themes[$theme_name]['Template Dir'];
-        $parent_theme = $themes[$theme_name]['Parent Theme'];
-        $theme_root = $themes[$theme_name]['Theme Root'];
-        $theme_root_uri = $themes[$theme_name]['Theme Root URI'];
-        $preview_link = esc_url(get_option('home') . '/');
-        if ( is_ssl() )
-                $preview_link = str_replace( 'http://', 'https://', $preview_link );
-        $preview_link = htmlspecialchars( add_query_arg( array('preview' =&gt; 1, 'template' =&gt; $template, 'stylesheet' =&gt; $stylesheet, 'TB_iframe' =&gt; 'true' ), $preview_link ) );
-        $preview_text = esc_attr( sprintf( __('Preview of &amp;#8220;%s&amp;#8221;'), $title ) );
-        $tags = $themes[$theme_name]['Tags'];
-        $thickbox_class = 'thickbox thickbox-preview';
-        $activate_link = wp_nonce_url(&quot;themes.php?action=activate&amp;amp;template=&quot;.urlencode($template).&quot;&amp;amp;stylesheet=&quot;.urlencode($stylesheet), 'switch-theme_' . $template);
-        $activate_text = esc_attr( sprintf( __('Activate &amp;#8220;%s&amp;#8221;'), $title ) );
-        $actions = array();
-        $actions[] = '&lt;a href=&quot;' . $activate_link .  '&quot; class=&quot;activatelink&quot; title=&quot;' . $activate_text . '&quot;&gt;' . __('Activate') . '&lt;/a&gt;';
-        $actions[] = '&lt;a href=&quot;' . $preview_link . '&quot; class=&quot;thickbox thickbox-preview&quot; title=&quot;' . esc_attr(sprintf(__('Preview &amp;#8220;%s&amp;#8221;'), $theme_name)) . '&quot;&gt;' . __('Preview') . '&lt;/a&gt;';
-        if ( current_user_can('delete_themes') )
-                $actions[] = '&lt;a class=&quot;submitdelete deletion&quot; href=&quot;' . wp_nonce_url(&quot;themes.php?action=delete&amp;amp;template=$stylesheet&quot;, 'delete-theme_' . $stylesheet) . '&quot; onclick=&quot;' . &quot;return confirm('&quot; . esc_js(sprintf( __(&quot;You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete.&quot;), $theme_name )) . &quot;');&quot; . '&quot;&gt;' . __('Delete') . '&lt;/a&gt;';
-        $actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]);
-
-        $actions = implode ( ' | ', $actions );
-?&gt;
-                &lt;a href=&quot;&lt;?php echo $preview_link; ?&gt;&quot; class=&quot;&lt;?php echo $thickbox_class; ?&gt; screenshot&quot;&gt;
-&lt;?php if ( $screenshot ) : ?&gt;
-                        &lt;img src=&quot;&lt;?php echo $theme_root_uri . '/' . $stylesheet . '/' . $screenshot; ?&gt;&quot; alt=&quot;&quot; /&gt;
-&lt;?php endif; ?&gt;
-                &lt;/a&gt;
-&lt;h3&gt;&lt;?php
-        /* translators: 1: theme title, 2: theme version, 3: theme author */
-        printf(__('%1$s %2$s by %3$s'), $title, $version, $author) ; ?&gt;&lt;/h3&gt;
-&lt;p class=&quot;description&quot;&gt;&lt;?php echo $description; ?&gt;&lt;/p&gt;
-&lt;span class='action-links'&gt;&lt;?php echo $actions ?&gt;&lt;/span&gt;
-        &lt;?php if ( current_user_can('edit_themes') &amp;&amp; $parent_theme ) {
-        /* translators: 1: theme title, 2:  template dir, 3: stylesheet_dir, 4: theme title, 5: parent_theme */ ?&gt;
-        &lt;p&gt;&lt;?php printf(__('The template files are located in &lt;code&gt;%2$s&lt;/code&gt;. The stylesheet files are located in &lt;code&gt;%3$s&lt;/code&gt;. &lt;strong&gt;%4$s&lt;/strong&gt; uses templates from &lt;strong&gt;%5$s&lt;/strong&gt;. Changes made to the templates will affect both themes.'), $title, str_replace( WP_CONTENT_DIR, '', $template_dir ), str_replace( WP_CONTENT_DIR, '', $stylesheet_dir ), $title, $parent_theme); ?&gt;&lt;/p&gt;
-&lt;?php } else { ?&gt;
-        &lt;p&gt;&lt;?php printf(__('All of this theme&amp;#8217;s files are located in &lt;code&gt;%2$s&lt;/code&gt;.'), $title, str_replace( WP_CONTENT_DIR, '', $template_dir ), str_replace( WP_CONTENT_DIR, '', $stylesheet_dir ) ); ?&gt;&lt;/p&gt;
-&lt;?php } ?&gt;
-&lt;?php if ( $tags ) : ?&gt;
-&lt;p&gt;&lt;?php _e('Tags:'); ?&gt; &lt;?php echo join(', ', $tags); ?&gt;&lt;/p&gt;
-&lt;?php endif; ?&gt;
-                &lt;?php theme_update_available( $themes[$theme_name] ); ?&gt;
-&lt;?php endif; // end if not empty theme_name ?&gt;
-        &lt;/td&gt;
-&lt;?php } // end foreach $cols ?&gt;
-&lt;/tr&gt;
-&lt;?php } // end foreach $table ?&gt;
-&lt;/table&gt;
-&lt;?php } else { ?&gt;
-&lt;p&gt;&lt;?php
-        if ( current_user_can('install_themes') )
-                printf(__('You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the &lt;em&gt;&lt;a href=&quot;%s&quot;&gt;Install Themes&lt;/a&gt;&lt;/em&gt; tab above.'), 'theme-install.php');
-        else
-                printf(__('Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.'), get_site_option('site_name'));
-        ?&gt;&lt;/p&gt;
-&lt;?php } // end if $theme_total?&gt;
</del><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $page_links ) : ?&gt;
-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php echo &quot;&lt;div class='tablenav-pages'&gt;$page_links_text&lt;/div&gt;&quot;; ?&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-&lt;?php endif; ?&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-
</del><span class="cx"> &lt;?php
</span><span class="cx"> // List broken themes, if any.
</span><span class="cx"> $broken_themes = get_broken_themes();
</span></span></pre></div>
<a id="trunkwpadminuploadphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/upload.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/upload.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/upload.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -7,162 +7,121 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /** WordPress Administration Bootstrap */
</span><del>-require_once('./admin.php');
-wp_enqueue_script( 'wp-ajax-response' );
-wp_enqueue_script( 'jquery-ui-draggable' );
</del><ins>+require_once( './admin.php' );
</ins><span class="cx"> 
</span><span class="cx"> if ( !current_user_can('upload_files') )
</span><span class="cx">         wp_die(__('You do not have permission to upload files.'));
</span><span class="cx"> 
</span><del>-if ( isset($_GET['find_detached']) ) {
-        check_admin_referer('bulk-media');
</del><ins>+// Handle bulk actions
+if ( isset( $_REQUEST['found_post_id'] ) &amp;&amp; isset( $_REQUEST['media'] ) ) {
+        check_admin_referer( 'bulk-media' );
</ins><span class="cx"> 
</span><del>-        if ( !current_user_can('edit_posts') )
-                wp_die( __('You are not allowed to scan for lost attachments.') );
-
-        $lost = $wpdb-&gt;get_col(&quot;SELECT ID FROM $wpdb-&gt;posts WHERE post_type = 'attachment' AND post_parent &gt; '0' and post_parent NOT IN ( SELECT ID FROM $wpdb-&gt;posts WHERE post_type NOT IN ('attachment', '&quot; . join(&quot;', '&quot;, get_post_types( array( 'public' =&gt; false ) ) ) . &quot;') )&quot;);
-
-        $_GET['detached'] = 1;
-
-} elseif ( isset($_GET['found_post_id']) &amp;&amp; isset($_GET['media']) ) {
-        check_admin_referer('bulk-media');
-
-        if ( ! ( $parent_id = (int) $_GET['found_post_id'] ) )
</del><ins>+        $parent_id = (int) $_REQUEST['found_post_id'];
+        if ( !$parent_id )
</ins><span class="cx">                 return;
</span><span class="cx"> 
</span><del>-        $parent = &amp;get_post($parent_id);
-        if ( !current_user_can('edit_post', $parent_id) )
-                wp_die( __('You are not allowed to edit this post.') );
</del><ins>+        $parent = &amp;get_post( $parent_id );
+        if ( !current_user_can( 'edit_post', $parent_id ) )
+                wp_die( __( 'You are not allowed to edit this post.' ) );
</ins><span class="cx"> 
</span><span class="cx">         $attach = array();
</span><del>-        foreach( (array) $_GET['media'] as $att_id ) {
</del><ins>+        foreach ( (array) $_REQUEST['media'] as $att_id ) {
</ins><span class="cx">                 $att_id = (int) $att_id;
</span><span class="cx"> 
</span><del>-                if ( !current_user_can('edit_post', $att_id) )
</del><ins>+                if ( !current_user_can( 'edit_post', $att_id ) )
</ins><span class="cx">                         continue;
</span><span class="cx"> 
</span><span class="cx">                 $attach[] = $att_id;
</span><del>-                clean_attachment_cache($att_id);
</del><ins>+                clean_attachment_cache( $att_id );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( ! empty($attach) ) {
-                $attach = implode(',', $attach);
-                $attached = $wpdb-&gt;query( $wpdb-&gt;prepare(&quot;UPDATE $wpdb-&gt;posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ($attach)&quot;, $parent_id) );
</del><ins>+        if ( ! empty( $attach ) ) {
+                $attach = implode( ',', $attach );
+                $attached = $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE $wpdb-&gt;posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ( $attach )&quot;, $parent_id ) );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( isset($attached) ) {
</del><ins>+        if ( isset( $attached ) ) {
</ins><span class="cx">                 $location = 'upload.php';
</span><span class="cx">                 if ( $referer = wp_get_referer() ) {
</span><del>-                        if ( false !== strpos($referer, 'upload.php') )
</del><ins>+                        if ( false !== strpos( $referer, 'upload.php' ) )
</ins><span class="cx">                                 $location = $referer;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 $location = add_query_arg( array( 'attached' =&gt; $attached ) , $location );
</span><del>-                wp_redirect($location);
</del><ins>+                wp_redirect( $location );
</ins><span class="cx">                 exit;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-} elseif ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) {
-        check_admin_referer('bulk-media');
</del><ins>+} elseif ( isset( $_REQUEST['doaction'] ) || isset( $_REQUEST['doaction2'] ) || isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
+        check_admin_referer( 'bulk-media' );
</ins><span class="cx"> 
</span><del>-        if ( isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) {
</del><ins>+        if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
</ins><span class="cx">                 $post_ids = $wpdb-&gt;get_col( &quot;SELECT ID FROM $wpdb-&gt;posts WHERE post_type='attachment' AND post_status = 'trash'&quot; );
</span><span class="cx">                 $doaction = 'delete';
</span><del>-        } elseif ( ( $_GET['action'] != -1 || $_GET['action2'] != -1 ) &amp;&amp; ( isset($_GET['media']) || isset($_GET['ids']) ) ) {
-                $post_ids = isset($_GET['media']) ? $_GET['media'] : explode(',', $_GET['ids']);
-                $doaction = ($_GET['action'] != -1) ? $_GET['action'] : $_GET['action2'];
</del><ins>+        } elseif ( ( $_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1 ) &amp;&amp; ( isset( $_REQUEST['media'] ) || isset( $_REQUEST['ids'] ) ) ) {
+                $post_ids = isset( $_REQUEST['media'] ) ? $_REQUEST['media'] : explode( ',', $_REQUEST['ids'] );
+                $doaction = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2'];
</ins><span class="cx">         } else {
</span><del>-                wp_redirect($_SERVER['HTTP_REFERER']);
</del><ins>+                wp_redirect( $_SERVER['HTTP_REFERER'] );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $location = 'upload.php';
</span><span class="cx">         if ( $referer = wp_get_referer() ) {
</span><del>-                if ( false !== strpos($referer, 'upload.php') )
-                        $location = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'message', 'ids', 'posted'), $referer );
</del><ins>+                if ( false !== strpos( $referer, 'upload.php' ) )
+                        $location = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'message', 'ids', 'posted' ), $referer );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         switch ( $doaction ) {
</span><span class="cx">                 case 'trash':
</span><del>-                        foreach( (array) $post_ids as $post_id ) {
-                                if ( !current_user_can('delete_post', $post_id) )
-                                        wp_die( __('You are not allowed to move this post to the trash.') );
</del><ins>+                        foreach ( (array) $post_ids as $post_id ) {
+                                if ( !current_user_can( 'delete_post', $post_id ) )
+                                        wp_die( __( 'You are not allowed to move this post to the trash.' ) );
</ins><span class="cx"> 
</span><del>-                                if ( !wp_trash_post($post_id) )
-                                        wp_die( __('Error in moving to trash...') );
</del><ins>+                                if ( !wp_trash_post( $post_id ) )
+                                        wp_die( __( 'Error in moving to trash...' ) );
</ins><span class="cx">                         }
</span><del>-                        $location = add_query_arg( array( 'trashed' =&gt; count($post_ids), 'ids' =&gt; join(',', $post_ids) ), $location );
</del><ins>+                        $location = add_query_arg( array( 'trashed' =&gt; count( $post_ids ), 'ids' =&gt; join( ',', $post_ids ) ), $location );
</ins><span class="cx">                         break;
</span><span class="cx">                 case 'untrash':
</span><del>-                        foreach( (array) $post_ids as $post_id ) {
-                                if ( !current_user_can('delete_post', $post_id) )
-                                        wp_die( __('You are not allowed to move this post out of the trash.') );
</del><ins>+                        foreach ( (array) $post_ids as $post_id ) {
+                                if ( !current_user_can( 'delete_post', $post_id ) )
+                                        wp_die( __( 'You are not allowed to move this post out of the trash.' ) );
</ins><span class="cx"> 
</span><del>-                                if ( !wp_untrash_post($post_id) )
-                                        wp_die( __('Error in restoring from trash...') );
</del><ins>+                                if ( !wp_untrash_post( $post_id ) )
+                                        wp_die( __( 'Error in restoring from trash...' ) );
</ins><span class="cx">                         }
</span><del>-                        $location = add_query_arg('untrashed', count($post_ids), $location);
</del><ins>+                        $location = add_query_arg( 'untrashed', count( $post_ids ), $location );
</ins><span class="cx">                         break;
</span><span class="cx">                 case 'delete':
</span><del>-                        foreach( (array) $post_ids as $post_id_del ) {
-                                if ( !current_user_can('delete_post', $post_id_del) )
-                                        wp_die( __('You are not allowed to delete this post.') );
</del><ins>+                        foreach ( (array) $post_ids as $post_id_del ) {
+                                if ( !current_user_can( 'delete_post', $post_id_del ) )
+                                        wp_die( __( 'You are not allowed to delete this post.' ) );
</ins><span class="cx"> 
</span><del>-                                if ( !wp_delete_attachment($post_id_del) )
-                                        wp_die( __('Error in deleting...') );
</del><ins>+                                if ( !wp_delete_attachment( $post_id_del ) )
+                                        wp_die( __( 'Error in deleting...' ) );
</ins><span class="cx">                         }
</span><del>-                        $location = add_query_arg('deleted', count($post_ids), $location);
</del><ins>+                        $location = add_query_arg( 'deleted', count( $post_ids ), $location );
</ins><span class="cx">                         break;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        wp_redirect($location);
</del><ins>+        wp_redirect( $location );
</ins><span class="cx">         exit;
</span><del>-} elseif ( ! empty($_GET['_wp_http_referer']) ) {
-         wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</del><ins>+} elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {
+         wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) );
</ins><span class="cx">          exit;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+require_once( './includes/default-list-tables.php' );
+
+$table = new WP_Media_Table;
+
</ins><span class="cx"> $title = __('Media Library');
</span><span class="cx"> $parent_file = 'upload.php';
</span><span class="cx"> 
</span><del>-if ( ! isset( $_GET['paged'] ) || $_GET['paged'] &lt; 1 )
-        $_GET['paged'] = 1;
</del><ins>+wp_enqueue_script( 'wp-ajax-response' );
+wp_enqueue_script( 'jquery-ui-draggable' );
+wp_enqueue_script( 'media' );
</ins><span class="cx"> 
</span><del>-if ( isset($_GET['detached']) ) {
-
-        $media_per_page = (int) get_user_option( 'upload_per_page' );
-        if ( empty($media_per_page) || $media_per_page &lt; 1 )
-                $media_per_page = 20;
-        $media_per_page = apply_filters( 'upload_per_page', $media_per_page );
-
-        if ( !empty($lost) ) {
-                $start = ( (int) $_GET['paged'] - 1 ) * $media_per_page;
-                $page_links_total = ceil(count($lost) / $media_per_page);
-                $lost = implode(',', $lost);
-
-                $orphans = $wpdb-&gt;get_results( $wpdb-&gt;prepare( &quot;SELECT * FROM $wpdb-&gt;posts WHERE post_type = 'attachment' AND ID IN (%s) LIMIT %d, %d&quot;, $lost, $start, $media_per_page ) );
-        } else {
-                $start = ( (int) $_GET['paged'] - 1 ) * $media_per_page;
-                $orphans = $wpdb-&gt;get_results( $wpdb-&gt;prepare( &quot;SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb-&gt;posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent &lt; 1 LIMIT %d, %d&quot;, $start, $media_per_page ) );
-                $total_orphans = $wpdb-&gt;get_var( &quot;SELECT FOUND_ROWS()&quot; );
-                $page_links_total = ceil( $total_orphans / $media_per_page );
-                $wp_query-&gt;found_posts = $total_orphans;
-                $wp_query-&gt;query_vars['posts_per_page'] = $media_per_page;
-        }
-
-        $post_mime_types = get_post_mime_types();
-        $avail_post_mime_types = get_available_post_mime_types('attachment');
-
-        if ( isset($_GET['post_mime_type']) &amp;&amp; !array_intersect( (array) $_GET['post_mime_type'], array_keys($post_mime_types) ) )
-                unset($_GET['post_mime_type']);
-
-} else {
-        list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
-}
-
-$is_trash = ( isset($_GET['status']) &amp;&amp; $_GET['status'] == 'trash' );
-
-wp_enqueue_script('media');
-
</del><span class="cx"> add_contextual_help( $current_screen,
</span><span class="cx">         '&lt;p&gt;' . __('All the files you&amp;#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the &lt;em&gt;Screen Options&lt;/em&gt; tab to customize the display of this screen.') . '&lt;/p&gt;' .
</span><span class="cx">         '&lt;p&gt;' . __('You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.') . '&lt;/p&gt;' .
</span><span class="lines">@@ -239,7 +198,7 @@
</span><span class="cx">         foreach ( $reals as $real )
</span><span class="cx">                 $num_posts[$type] = ( isset( $num_posts[$type] ) ) ? $num_posts[$type] + $_num_posts[$real] : $_num_posts[$real];
</span><span class="cx"> 
</span><del>-$class = ( empty($_GET['post_mime_type']) &amp;&amp; !isset($_GET['detached']) &amp;&amp; !isset($_GET['status']) ) ? ' class=&quot;current&quot;' : '';
</del><ins>+$class = ( empty($_GET['post_mime_type']) &amp;&amp; !$detached &amp;&amp; !isset($_GET['status']) ) ? ' class=&quot;current&quot;' : '';
</ins><span class="cx"> $type_links[] = &quot;&lt;li&gt;&lt;a href='upload.php'$class&gt;&quot; . sprintf( _nx( 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'All &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $_total_posts, 'uploaded files' ), number_format_i18n( $_total_posts ) ) . '&lt;/a&gt;';
</span><span class="cx"> foreach ( $post_mime_types as $mime_type =&gt; $label ) {
</span><span class="cx">         $class = '';
</span><span class="lines">@@ -252,7 +211,7 @@
</span><span class="cx">         if ( !empty( $num_posts[$mime_type] ) )
</span><span class="cx">                 $type_links[] = &quot;&lt;li&gt;&lt;a href='upload.php?post_mime_type=$mime_type'$class&gt;&quot; . sprintf( _n( $label[2][0], $label[2][1], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '&lt;/a&gt;';
</span><span class="cx"> }
</span><del>-$type_links[] = '&lt;li&gt;&lt;a href=&quot;upload.php?detached=1&quot;' . ( isset($_GET['detached']) ? ' class=&quot;current&quot;' : '' ) . '&gt;' . sprintf( _nx( 'Unattached &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Unattached &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_orphans, 'detached files' ), number_format_i18n( $total_orphans ) ) . '&lt;/a&gt;';
</del><ins>+$type_links[] = '&lt;li&gt;&lt;a href=&quot;upload.php?detached=1&quot;' . ( $detached ? ' class=&quot;current&quot;' : '' ) . '&gt;' . sprintf( _nx( 'Unattached &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Unattached &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $total_orphans, 'detached files' ), number_format_i18n( $total_orphans ) ) . '&lt;/a&gt;';
</ins><span class="cx"> 
</span><span class="cx"> if ( !empty($_num_posts['trash']) )
</span><span class="cx">         $type_links[] = '&lt;li&gt;&lt;a href=&quot;upload.php?status=trash&quot;' . ( (isset($_GET['status']) &amp;&amp; $_GET['status'] == 'trash' ) ? ' class=&quot;current&quot;' : '') . '&gt;' . sprintf( _nx( 'Trash &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Trash &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $_num_posts['trash'], 'uploaded files' ), number_format_i18n( $_num_posts['trash'] ) ) . '&lt;/a&gt;';
</span><span class="lines">@@ -270,234 +229,12 @@
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
-&lt;?php wp_nonce_field('bulk-media'); ?&gt;
-&lt;?php if ( have_posts() || isset( $orphans ) ) { ?&gt;
-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php
-if ( ! isset($page_links_total) )
-        $page_links_total =  $wp_query-&gt;max_num_pages;
-
-$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; $page_links_total,
-        'current' =&gt; $_GET['paged']
-));
-
-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( ( $_GET['paged'] - 1 ) * $wp_query-&gt;query_vars['posts_per_page'] + 1 ),
-        number_format_i18n( min( $_GET['paged'] * $wp_query-&gt;query_vars['posts_per_page'], $wp_query-&gt;found_posts ) ),
-        number_format_i18n( $wp_query-&gt;found_posts ),
-        $page_links
-); echo $page_links_text; ?&gt;&lt;/div&gt;
-&lt;?php endif; ?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;?php if ( ! isset( $orphans ) || ! empty( $orphans ) ) { ?&gt;
-&lt;select name=&quot;action&quot; class=&quot;select-action&quot;&gt;
-&lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-&lt;?php if ( $is_trash ) { ?&gt;
-&lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
-&lt;?php } if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
-&lt;?php } if ( isset($orphans) ) { ?&gt;
-&lt;option value=&quot;attach&quot;&gt;&lt;?php _e('Attach to a post'); ?&gt;&lt;/option&gt;
-&lt;?php } ?&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
-if ( !is_singular() &amp;&amp; !isset($_GET['detached']) &amp;&amp; !$is_trash ) {
-        $arc_query = &quot;SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb-&gt;posts WHERE post_type = 'attachment' ORDER BY post_date DESC&quot;;
-
-        $arc_result = $wpdb-&gt;get_results( $arc_query );
-
-        $month_count = count($arc_result);
-
-        if ( $month_count &amp;&amp; !( 1 == $month_count &amp;&amp; 0 == $arc_result[0]-&gt;mmonth ) ) : ?&gt;
-&lt;select name='m'&gt;
-&lt;option value='0'&gt;&lt;?php _e('Show all dates'); ?&gt;&lt;/option&gt;
-&lt;?php
-foreach ($arc_result as $arc_row) {
-        if ( $arc_row-&gt;yyear == 0 )
-                continue;
-        $arc_row-&gt;mmonth = zeroise( $arc_row-&gt;mmonth, 2 );
-
-        if ( isset($_GET['m']) &amp;&amp; ( $arc_row-&gt;yyear . $arc_row-&gt;mmonth == $_GET['m'] ) )
-                $default = ' selected=&quot;selected&quot;';
-        else
-                $default = '';
-
-        echo &quot;&lt;option$default value='&quot; . esc_attr(&quot;$arc_row-&gt;yyear$arc_row-&gt;mmonth&quot;) . &quot;'&gt;&quot;;
-        echo $wp_locale-&gt;get_month($arc_row-&gt;mmonth) . &quot; $arc_row-&gt;yyear&quot;;
-        echo &quot;&lt;/option&gt;\n&quot;;
-}
-?&gt;
-&lt;/select&gt;
-&lt;?php endif; // month_count ?&gt;
-
-&lt;?php do_action('restrict_manage_posts'); ?&gt;
-
-&lt;input type=&quot;submit&quot; id=&quot;post-query-submit&quot; value=&quot;&lt;?php esc_attr_e('Filter'); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
-
-&lt;?php } // ! is_singular ?&gt;
-
-&lt;?php
-
-} // ! empty( $orphans )
-
-if ( isset($_GET['detached']) ) { ?&gt;
-        &lt;input type=&quot;submit&quot; id=&quot;find_detached&quot; name=&quot;find_detached&quot; value=&quot;&lt;?php esc_attr_e('Scan for lost attachments'); ?&gt;&quot; class=&quot;button-secondary&quot; /&gt;
-&lt;?php } elseif ( isset($_GET['status']) &amp;&amp; $_GET['status'] == 'trash' &amp;&amp; current_user_can('edit_others_posts') ) { ?&gt;
-        &lt;input type=&quot;submit&quot; id=&quot;delete_all&quot; name=&quot;delete_all&quot; value=&quot;&lt;?php esc_attr_e('Empty Trash'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } ?&gt;
-
-&lt;/div&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
-&lt;?php } // have_posts() || !empty( $orphans ) ?&gt;
-
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-
-&lt;?php if ( ! empty( $orphans ) ) { ?&gt;
-&lt;table class=&quot;widefat&quot; cellspacing=&quot;0&quot;&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-        &lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; /&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Media', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Author', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Date Added', 'media column name'); ?&gt;&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-
-&lt;tfoot&gt;
-&lt;tr&gt;
-        &lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; /&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Media', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Author', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Date Added', 'media column name'); ?&gt;&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/tfoot&gt;
-
-&lt;tbody id=&quot;the-list&quot; class=&quot;list:post&quot;&gt;
-&lt;?php
-                foreach ( $orphans as $post ) {
-                        $class = 'alternate' == $class ? '' : 'alternate';
-                        $att_title = esc_html( _draft_or_post_title($post-&gt;ID) );
-?&gt;
-        &lt;tr id='post-&lt;?php echo $post-&gt;ID; ?&gt;' class='&lt;?php echo $class; ?&gt;' valign=&quot;top&quot;&gt;
-                &lt;th scope=&quot;row&quot; class=&quot;check-column&quot;&gt;&lt;?php if ( current_user_can('edit_post', $post-&gt;ID) ) { ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;media[]&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;ID); ?&gt;&quot; /&gt;&lt;?php } ?&gt;&lt;/th&gt;
-
-                &lt;td class=&quot;media-icon&quot;&gt;&lt;?php
-                if ( $thumb = wp_get_attachment_image( $post-&gt;ID, array(80, 60), true ) ) { ?&gt;
-                        &lt;a href=&quot;media.php?action=edit&amp;amp;attachment_id=&lt;?php echo $post-&gt;ID; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $att_title)); ?&gt;&quot;&gt;&lt;?php echo $thumb; ?&gt;&lt;/a&gt;
-&lt;?php        } ?&gt;&lt;/td&gt;
-
-                &lt;td class=&quot;media column-media&quot;&gt;&lt;strong&gt;&lt;a href=&quot;&lt;?php echo get_edit_post_link( $post-&gt;ID ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $att_title)); ?&gt;&quot;&gt;&lt;?php echo $att_title; ?&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;
-                &lt;?php
-                if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post-&gt;ID ), $matches ) )
-                        echo esc_html( strtoupper( $matches[1] ) );
-                else
-                        echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
-                ?&gt;
-
-                &lt;div class=&quot;row-actions&quot;&gt;
-                &lt;?php
-                $actions = array();
-                if ( current_user_can('edit_post', $post-&gt;ID) )
-                        $actions['edit'] = '&lt;a href=&quot;' . get_edit_post_link($post-&gt;ID, true) . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-                if ( current_user_can('delete_post', $post-&gt;ID) )
-                        if ( EMPTY_TRASH_DAYS &amp;&amp; MEDIA_TRASH ) {
-                                $actions['trash'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;post.php?action=trash&amp;amp;post=$post-&gt;ID&quot;, 'trash-attachment_' . $post-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . &quot;&lt;/a&gt;&quot;;
-                        } else {
-                                $delete_ays = !MEDIA_TRASH ? &quot; onclick='return showNotice.warn();'&quot; : '';
-                                $actions['delete'] = &quot;&lt;a class='submitdelete'$delete_ays href='&quot; . wp_nonce_url(&quot;post.php?action=delete&amp;amp;post=$post-&gt;ID&quot;, 'delete-attachment_' . $post-&gt;ID) . &quot;'&gt;&quot; . __('Delete Permanently') . &quot;&lt;/a&gt;&quot;;
-                        }
-                $actions['view'] = '&lt;a href=&quot;' . get_permalink($post-&gt;ID) . '&quot; title=&quot;' . esc_attr(sprintf(__('View &amp;#8220;%s&amp;#8221;'), $title)) . '&quot; rel=&quot;permalink&quot;&gt;' . __('View') . '&lt;/a&gt;';
-                if ( current_user_can('edit_post', $post-&gt;ID) )
-                        $actions['attach'] = '&lt;a href=&quot;#the-list&quot; onclick=&quot;findPosts.open(\'media[]\',\''.$post-&gt;ID.'\');return false;&quot; class=&quot;hide-if-no-js&quot;&gt;'.__('Attach').'&lt;/a&gt;';
-                $actions = apply_filters( 'media_row_actions', $actions, $post );
-                $action_count = count($actions);
-                $i = 0;
-                foreach ( $actions as $action =&gt; $link ) {
-                        ++$i;
-                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                        echo &quot;&lt;span class='$action'&gt;$link$sep&lt;/span&gt;&quot;;
-                } ?&gt;
-                &lt;/div&gt;&lt;/td&gt;
-                &lt;td class=&quot;author column-author&quot;&gt;&lt;?php $author = get_userdata($post-&gt;post_author); echo $author-&gt;display_name; ?&gt;&lt;/td&gt;
-&lt;?php        if ( '0000-00-00 00:00:00' == $post-&gt;post_date &amp;&amp; 'date' == $column_name ) {
-                        $t_time = $h_time = __('Unpublished');
-                } else {
-                        $t_time = get_the_time(__('Y/m/d g:i:s A'));
-                        $m_time = $post-&gt;post_date;
-                        $time = get_post_time( 'G', true );
-                        if ( ( abs($t_diff = time() - $time) ) &lt; 86400 ) {
-                                if ( $t_diff &lt; 0 )
-                                        $h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
-                                else
-                                        $h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
-                        } else {
-                                $h_time = mysql2date(__('Y/m/d'), $m_time);
-                        }
-                } ?&gt;
-                &lt;td class=&quot;date column-date&quot;&gt;&lt;?php echo $h_time ?&gt;&lt;/td&gt;
-        &lt;/tr&gt;
-&lt;?php        } ?&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-
-&lt;?php
-
-} else {
-        include( './edit-attachment-rows.php' );
-} ?&gt;
-
</del><ins>+&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
+&lt;?php $table-&gt;display(); ?&gt;
</ins><span class="cx"> &lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
</span><del>-
-&lt;div class=&quot;tablenav&quot;&gt;
-
-&lt;?php
-if ( have_posts() || ! empty( $orphans ) ) {
-
-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; class=&quot;select-action&quot;&gt;
-&lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-&lt;?php if ($is_trash) { ?&gt;
-&lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
-&lt;?php } if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
-&lt;?php } if (isset($orphans)) { ?&gt;
-&lt;option value=&quot;attach&quot;&gt;&lt;?php _e('Attach to a post'); ?&gt;&lt;/option&gt;
-&lt;?php } ?&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;?php if ( isset($_GET['status']) &amp;&amp; $_GET['status'] == 'trash' &amp;&amp; current_user_can('edit_others_posts') ) { ?&gt;
-        &lt;input type=&quot;submit&quot; id=&quot;delete_all2&quot; name=&quot;delete_all2&quot; value=&quot;&lt;?php esc_attr_e('Empty Trash'); ?&gt;&quot; class=&quot;button-secondary apply&quot; /&gt;
-&lt;?php } ?&gt;
-&lt;/div&gt;
-
-&lt;?php } ?&gt;
</del><ins>+&lt;?php find_posts_div(); ?&gt;
</ins><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;?php find_posts_div(); ?&gt;
</del><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/users.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/users.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-admin/users.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /** WordPress Administration Bootstrap */
</span><del>-require_once('./admin.php');
</del><ins>+require_once( './admin.php' );
</ins><span class="cx"> 
</span><span class="cx"> /** WordPress Registration API */
</span><span class="cx"> require_once( ABSPATH . WPINC . '/registration.php');
</span><span class="lines">@@ -306,21 +306,12 @@
</span><span class="cx">                 exit;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        include('./admin-header.php');
</del><ins>+        require_once( './includes/default-list-tables.php' );
</ins><span class="cx"> 
</span><del>-        $usersearch = isset($_GET['usersearch']) ? $_GET['usersearch'] : null;
-        $userspage = isset($_GET['userspage']) ? $_GET['userspage'] : null;
-        $role = isset($_GET['role']) ? $_GET['role'] : null;
</del><ins>+        $table = new WP_Users_Table;
</ins><span class="cx"> 
</span><del>-        // Query the user IDs for this page
-        $wp_user_search = new WP_User_Search($usersearch, $userspage, $role);
</del><ins>+        include('./admin-header.php');
</ins><span class="cx"> 
</span><del>-        // Query the post counts for this page
-        $post_counts = count_many_users_posts($wp_user_search-&gt;get_results());
-
-        // Query the users for this page
-        cache_users($wp_user_search-&gt;get_results());
-
</del><span class="cx">         $messages = array();
</span><span class="cx">         if ( isset($_GET['update']) ) :
</span><span class="cx">                 switch($_GET['update']) {
</span><span class="lines">@@ -372,8 +363,8 @@
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title ); if ( current_user_can( 'create_users' ) ) { ?&gt;  &lt;a href=&quot;user-new.php&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x('Add New', 'user'); ?&gt;&lt;/a&gt;&lt;?php }
</span><del>-if ( isset($_GET['usersearch']) &amp;&amp; $_GET['usersearch'] )
-        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( $_GET['usersearch'] ) ); ?&gt;
</del><ins>+if ( $usersearch )
+        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( $usersearch ) ); ?&gt;
</ins><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;filter&quot;&gt;
</span><span class="lines">@@ -415,109 +406,14 @@
</span><span class="cx"> &lt;form class=&quot;search-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</span><span class="cx"> &lt;p class=&quot;search-box&quot;&gt;
</span><span class="cx">         &lt;label class=&quot;screen-reader-text&quot; for=&quot;user-search-input&quot;&gt;&lt;?php _e( 'Search Users' ); ?&gt;:&lt;/label&gt;
</span><del>-        &lt;input type=&quot;text&quot; id=&quot;user-search-input&quot; name=&quot;usersearch&quot; value=&quot;&lt;?php echo esc_attr($wp_user_search-&gt;search_term); ?&gt;&quot; /&gt;
</del><ins>+        &lt;input type=&quot;text&quot; id=&quot;user-search-input&quot; name=&quot;usersearch&quot; value=&quot;&lt;?php echo esc_attr($usersearch); ?&gt;&quot; /&gt;
</ins><span class="cx">         &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Search Users' ); ?&gt;&quot; class=&quot;button&quot; /&gt;
</span><span class="cx"> &lt;/p&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><del>-&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
-&lt;div class=&quot;tablenav&quot;&gt;
-
-&lt;?php if ( $wp_user_search-&gt;results_are_paged() ) : ?&gt;
-        &lt;div class=&quot;tablenav-pages&quot;&gt;&lt;?php $wp_user_search-&gt;page_links(); ?&gt;&lt;/div&gt;
-&lt;?php endif; ?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action&quot;&gt;
-&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-&lt;?php if ( !is_multisite() &amp;&amp; current_user_can('delete_users') ) { ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;remove&quot;&gt;&lt;?php _e('Remove'); ?&gt;&lt;/option&gt;
-&lt;?php } ?&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;label class=&quot;screen-reader-text&quot; for=&quot;new_role&quot;&gt;&lt;?php _e('Change role to&amp;hellip;') ?&gt;&lt;/label&gt;&lt;select name=&quot;new_role&quot; id=&quot;new_role&quot;&gt;&lt;option value=''&gt;&lt;?php _e('Change role to&amp;hellip;') ?&gt;&lt;/option&gt;&lt;?php wp_dropdown_roles(); ?&gt;&lt;/select&gt;
-&lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Change'); ?&gt;&quot; name=&quot;changeit&quot; class=&quot;button-secondary&quot; /&gt;
-&lt;?php wp_nonce_field('bulk-users'); ?&gt;
-&lt;/div&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
-        &lt;?php if ( is_wp_error( $wp_user_search-&gt;search_errors ) ) : ?&gt;
-                &lt;div class=&quot;error&quot;&gt;
-                        &lt;ul&gt;
-                        &lt;?php
-                                foreach ( $wp_user_search-&gt;search_errors-&gt;get_error_messages() as $message )
-                                        echo &quot;&lt;li&gt;$message&lt;/li&gt;&quot;;
-                        ?&gt;
-                        &lt;/ul&gt;
-                &lt;/div&gt;
-        &lt;?php endif; ?&gt;
-
-
-&lt;?php if ( $wp_user_search-&gt;get_results() ) : ?&gt;
-
-        &lt;?php if ( $wp_user_search-&gt;is_search() ) : ?&gt;
-                &lt;p&gt;&lt;a href=&quot;users.php&quot;&gt;&lt;?php _e('&amp;larr; Back to All Users'); ?&gt;&lt;/a&gt;&lt;/p&gt;
-        &lt;?php endif; ?&gt;
-
-&lt;table class=&quot;widefat fixed&quot; cellspacing=&quot;0&quot;&gt;
-&lt;thead&gt;
-&lt;tr class=&quot;thead&quot;&gt;
-&lt;?php print_column_headers('users') ?&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-
-&lt;tfoot&gt;
-&lt;tr class=&quot;thead&quot;&gt;
-&lt;?php print_column_headers('users', false) ?&gt;
-&lt;/tr&gt;
-&lt;/tfoot&gt;
-
-&lt;tbody id=&quot;users&quot; class=&quot;list:user user-list&quot;&gt;
-&lt;?php
-$style = '';
-foreach ( $wp_user_search-&gt;get_results() as $userid ) {
-        $user_object = new WP_User($userid);
-        $roles = $user_object-&gt;roles;
-        $role = array_shift($roles);
-
-        if ( is_multisite() &amp;&amp; empty( $role ) )
-                continue;
-
-        $style = ( ' class=&quot;alternate&quot;' == $style ) ? '' : ' class=&quot;alternate&quot;';
-        echo &quot;\n\t&quot;, user_row( $user_object, $style, $role, $post_counts[ $userid ] );
-}
-?&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-
-&lt;div class=&quot;tablenav&quot;&gt;
-
-&lt;?php if ( $wp_user_search-&gt;results_are_paged() ) : ?&gt;
-        &lt;div class=&quot;tablenav-pages&quot;&gt;&lt;?php $wp_user_search-&gt;page_links(); ?&gt;&lt;/div&gt;
-&lt;?php endif; ?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action2&quot;&gt;
-&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-&lt;?php if ( !is_multisite() &amp;&amp; current_user_can('delete_users') ) { ?&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
-&lt;?php } else { ?&gt;
-&lt;option value=&quot;remove&quot;&gt;&lt;?php _e('Remove'); ?&gt;&lt;/option&gt;
-&lt;?php } ?&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;
-
-&lt;?php endif; ?&gt;
-
</del><ins>+&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
+&lt;?php $table-&gt;display(); ?&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><del>-&lt;/div&gt;
</del><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><span class="cx"> if ( is_multisite() ) {
</span><span class="lines">@@ -536,4 +432,3 @@
</span><span class="cx"> } // end of the $doaction switch
</span><span class="cx"> 
</span><span class="cx"> include('./admin-footer.php');
</span><del>-?&gt;
</del></span></pre></div>
<a id="trunkwpincludescommentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/comment.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/comment.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-includes/comment.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -204,6 +204,8 @@
</span><span class="cx">                 'status' =&gt; '',
</span><span class="cx">                 'type' =&gt; '',
</span><span class="cx">                 'user_id' =&gt; '',
</span><ins>+                'search' =&gt; '',
+                'count' =&gt; false
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $args = wp_parse_args( $args, $defaults );
</span><span class="lines">@@ -235,7 +237,7 @@
</span><span class="cx">         else
</span><span class="cx">                 $approved = &quot;( comment_approved = '0' OR comment_approved = '1' )&quot;;
</span><span class="cx"> 
</span><del>-        $order = ( 'ASC' == $order ) ? 'ASC' : 'DESC';
</del><ins>+        $order = ( 'ASC' == strtoupper($order) ) ? 'ASC' : 'DESC';
</ins><span class="cx"> 
</span><span class="cx">         if ( ! empty( $orderby ) ) {
</span><span class="cx">                 $ordersby = is_array($orderby) ? $orderby : preg_split('/[,\s]/', $orderby);
</span><span class="lines">@@ -269,32 +271,37 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !empty($number) ) {
</span><span class="cx">                 if ( $offset )
</span><del>-                        $number = 'LIMIT ' . $offset . ',' . $number;
</del><ins>+                        $limit = 'LIMIT ' . $offset . ',' . $number;
</ins><span class="cx">                 else
</span><del>-                        $number = 'LIMIT ' . $number;
-
</del><ins>+                        $limit = 'LIMIT ' . $number;
</ins><span class="cx">         } else {
</span><del>-                $number = '';
</del><ins>+                $limit = '';
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $post_where = '';
</del><ins>+        $post_where = &quot;WHERE $approved&quot;;
</ins><span class="cx"> 
</span><span class="cx">         if ( ! empty($post_id) )
</span><del>-                $post_where .= $wpdb-&gt;prepare( 'comment_post_ID = %d AND ', $post_id );
</del><ins>+                $post_where .= $wpdb-&gt;prepare( ' AND comment_post_ID = %d', $post_id );
</ins><span class="cx">         if ( '' !== $author_email )
</span><del>-                $post_where .= $wpdb-&gt;prepare( 'comment_author_email = %s AND ', $author_email );
</del><ins>+                $post_where .= $wpdb-&gt;prepare( 'AND comment_author_email = %s', $author_email );
</ins><span class="cx">         if ( '' !== $karma )
</span><del>-                $post_where .= $wpdb-&gt;prepare( 'comment_karma = %d AND ', $karma );
</del><ins>+                $post_where .= $wpdb-&gt;prepare( 'AND comment_karma = %d', $karma );
</ins><span class="cx">         if ( 'comment' == $type )
</span><del>-                $post_where .= &quot;comment_type = '' AND &quot;;
</del><ins>+                $post_where .= &quot; AND comment_type = ''&quot;;
</ins><span class="cx">         elseif ( ! empty( $type ) )
</span><del>-                $post_where .= $wpdb-&gt;prepare( 'comment_type = %s AND ', $type );
</del><ins>+                $post_where .= $wpdb-&gt;prepare( ' AND comment_type = %s', $type );
</ins><span class="cx">         if ( '' !== $parent )
</span><del>-                $post_where .= $wpdb-&gt;prepare( 'comment_parent = %d AND ', $parent );
</del><ins>+                $post_where .= $wpdb-&gt;prepare( ' AND comment_parent = %d', $parent );
</ins><span class="cx">         if ( '' !== $user_id )
</span><del>-                $post_where .= $wpdb-&gt;prepare( 'user_id = %d AND ', $user_id );
</del><ins>+                $post_where .= $wpdb-&gt;prepare( ' AND user_id = %d', $user_id );
+        if ( '' !== $search )
+                $post_where .= _wp_search_sql($search, array('comment_author', 'comment_author_email', 'comment_author_url', 'comment_author_IP', 'comment_content'));
</ins><span class="cx"> 
</span><del>-        $comments = $wpdb-&gt;get_results( &quot;SELECT * FROM $wpdb-&gt;comments WHERE $post_where $approved ORDER BY $orderby $order $number&quot; );
</del><ins>+        if ( $count )
+                return $wpdb-&gt;get_var( &quot;SELECT COUNT(*) FROM $wpdb-&gt;comments $post_where ORDER BY $orderby $order $limit&quot; );
+
+        $comments = $wpdb-&gt;get_results( &quot;SELECT * FROM $wpdb-&gt;comments $post_where ORDER BY $orderby $order $limit&quot; );
+
</ins><span class="cx">         wp_cache_add( $cache_key, $comments, 'comment' );
</span><span class="cx"> 
</span><span class="cx">         return $comments;
</span><span class="lines">@@ -1282,7 +1289,7 @@
</span><span class="cx">                 $post = &amp;get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment
</span><span class="cx"> 
</span><span class="cx">                 if ( get_option('comments_notify') &amp;&amp; $commentdata['comment_approved'] &amp;&amp; ( ! isset( $commentdata['user_id'] ) || $post-&gt;post_author != $commentdata['user_id'] ) )
</span><del>-                        wp_notify_postauthor($comment_ID, empty( $commentdata['comment_type'] ) ? $commentdata['comment_type'] : '' );
</del><ins>+                        wp_notify_postauthor($comment_ID, isset( $commentdata['comment_type'] ) ? $commentdata['comment_type'] : '' );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         return $comment_ID;
</span></span></pre></div>
<a id="trunkwpincludesfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/functions.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/functions.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-includes/functions.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -4194,7 +4194,28 @@
</span><span class="cx"> 
</span><span class="cx">         return $file_data;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> /*
</span><ins>+ * Used internally to generate an SQL string for searching across multiple columns
+ *
+ * @access private
+ * @since 3.1.0
+ *
+ * @param string $string
+ * @param array $cols
+ * @return string
+ */
+function _wp_search_sql($string, $cols) {
+        $string = esc_sql($string);
+
+        $searches = array();
+        foreach ( $cols as $col )
+                $searches[] = &quot;$col LIKE '%$string%'&quot;;
+
+        return ' AND (' . implode(' OR ', $searches) . ')';
+}
+
+/*
</ins><span class="cx">  * Used internally to tidy up the search terms
</span><span class="cx">  *
</span><span class="cx">  * @access private
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryjqueryqueryjs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/jquery/jquery.query.js (0 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/jquery.query.js                                (rev 0)
+++ trunk/wp-includes/js/jquery/jquery.query.js        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -0,0 +1,224 @@
</span><ins>+/**
+ * jQuery.query - Query String Modification and Creation for jQuery
+ * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
+ * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
+ * Date: 2009/8/13
+ *
+ * @author Blair Mitchelmore
+ * @version 2.1.7
+ *
+ **/
+new function(settings) { 
+  // Various Settings
+  var $separator = settings.separator || '&amp;';
+  var $spaces = settings.spaces === false ? false : true;
+  var $suffix = settings.suffix === false ? '' : '[]';
+  var $prefix = settings.prefix === false ? false : true;
+  var $hash = $prefix ? settings.hash === true ? &quot;#&quot; : &quot;?&quot; : &quot;&quot;;
+  var $numbers = settings.numbers === false ? false : true;
+  
+  jQuery.query = new function() {
+    var is = function(o, t) {
+      return o != undefined &amp;&amp; o !== null &amp;&amp; (!!t ? o.constructor == t : true);
+    };
+    var parse = function(path) {
+      var m, rx = /\[([^[]*)\]/g, match = /^([^[]+)(\[.*\])?$/.exec(path), base = match[1], tokens = [];
+      while (m = rx.exec(match[2])) tokens.push(m[1]);
+      return [base, tokens];
+    };
+    var set = function(target, tokens, value) {
+      var o, token = tokens.shift();
+      if (typeof target != 'object') target = null;
+      if (token === &quot;&quot;) {
+        if (!target) target = [];
+        if (is(target, Array)) {
+          target.push(tokens.length == 0 ? value : set(null, tokens.slice(0), value));
+        } else if (is(target, Object)) {
+          var i = 0;
+          while (target[i++] != null);
+          target[--i] = tokens.length == 0 ? value : set(target[i], tokens.slice(0), value);
+        } else {
+          target = [];
+          target.push(tokens.length == 0 ? value : set(null, tokens.slice(0), value));
+        }
+      } else if (token &amp;&amp; token.match(/^\s*[0-9]+\s*$/)) {
+        var index = parseInt(token, 10);
+        if (!target) target = [];
+        target[index] = tokens.length == 0 ? value : set(target[index], tokens.slice(0), value);
+      } else if (token) {
+        var index = token.replace(/^\s*|\s*$/g, &quot;&quot;);
+        if (!target) target = {};
+        if (is(target, Array)) {
+          var temp = {};
+          for (var i = 0; i &lt; target.length; ++i) {
+            temp[i] = target[i];
+          }
+          target = temp;
+        }
+        target[index] = tokens.length == 0 ? value : set(target[index], tokens.slice(0), value);
+      } else {
+        return value;
+      }
+      return target;
+    };
+    
+    var queryObject = function(a) {
+      var self = this;
+      self.keys = {};
+      
+      if (a.queryObject) {
+        jQuery.each(a.get(), function(key, val) {
+          self.SET(key, val);
+        });
+      } else {
+        jQuery.each(arguments, function() {
+          var q = &quot;&quot; + this;
+          q = q.replace(/^[?#]/,''); // remove any leading ? || #
+          q = q.replace(/[;&amp;]$/,''); // remove any trailing &amp; || ;
+          if ($spaces) q = q.replace(/[+]/g,' '); // replace +'s with spaces
+          
+          jQuery.each(q.split(/[&amp;;]/), function(){
+            var key = decodeURIComponent(this.split('=')[0] || &quot;&quot;);
+            var val = decodeURIComponent(this.split('=')[1] || &quot;&quot;);
+            
+            if (!key) return;
+            
+            if ($numbers) {
+              if (/^[+-]?[0-9]+\.[0-9]*$/.test(val)) // simple float regex
+                val = parseFloat(val);
+              else if (/^[+-]?[0-9]+$/.test(val)) // simple int regex
+                val = parseInt(val, 10);
+            }
+            
+            val = (!val &amp;&amp; val !== 0) ? true : val;
+            
+            if (val !== false &amp;&amp; val !== true &amp;&amp; typeof val != 'number')
+              val = val;
+            
+            self.SET(key, val);
+          });
+        });
+      }
+      return self;
+    };
+    
+    queryObject.prototype = {
+      queryObject: true,
+      has: function(key, type) {
+        var value = this.get(key);
+        return is(value, type);
+      },
+      GET: function(key) {
+        if (!is(key)) return this.keys;
+        var parsed = parse(key), base = parsed[0], tokens = parsed[1];
+        var target = this.keys[base];
+        while (target != null &amp;&amp; tokens.length != 0) {
+          target = target[tokens.shift()];
+        }
+        return typeof target == 'number' ? target : target || &quot;&quot;;
+      },
+      get: function(key) {
+        var target = this.GET(key);
+        if (is(target, Object))
+          return jQuery.extend(true, {}, target);
+        else if (is(target, Array))
+          return target.slice(0);
+        return target;
+      },
+      SET: function(key, val) {
+        var value = !is(val) ? null : val;
+        var parsed = parse(key), base = parsed[0], tokens = parsed[1];
+        var target = this.keys[base];
+        this.keys[base] = set(target, tokens.slice(0), value);
+        return this;
+      },
+      set: function(key, val) {
+        return this.copy().SET(key, val);
+      },
+      REMOVE: function(key) {
+        return this.SET(key, null).COMPACT();
+      },
+      remove: function(key) {
+        return this.copy().REMOVE(key);
+      },
+      EMPTY: function() {
+        var self = this;
+        jQuery.each(self.keys, function(key, value) {
+          delete self.keys[key];
+        });
+        return self;
+      },
+      load: function(url) {
+        var hash = url.replace(/^.*?[#](.+?)(?:\?.+)?$/, &quot;$1&quot;);
+        var search = url.replace(/^.*?[?](.+?)(?:#.+)?$/, &quot;$1&quot;);
+        return new queryObject(url.length == search.length ? '' : search, url.length == hash.length ? '' : hash);
+      },
+      empty: function() {
+        return this.copy().EMPTY();
+      },
+      copy: function() {
+        return new queryObject(this);
+      },
+      COMPACT: function() {
+        function build(orig) {
+          var obj = typeof orig == &quot;object&quot; ? is(orig, Array) ? [] : {} : orig;
+          if (typeof orig == 'object') {
+            function add(o, key, value) {
+              if (is(o, Array))
+                o.push(value);
+              else
+                o[key] = value;
+            }
+            jQuery.each(orig, function(key, value) {
+              if (!is(value)) return true;
+              add(obj, key, build(value));
+            });
+          }
+          return obj;
+        }
+        this.keys = build(this.keys);
+        return this;
+      },
+      compact: function() {
+        return this.copy().COMPACT();
+      },
+      toString: function() {
+        var i = 0, queryString = [], chunks = [], self = this;
+        var encode = function(str) {
+          str = str + &quot;&quot;;
+          if ($spaces) str = str.replace(/ /g, &quot;+&quot;);
+          return encodeURIComponent(str);
+        };
+        var addFields = function(arr, key, value) {
+          if (!is(value) || value === false) return;
+          var o = [encode(key)];
+          if (value !== true) {
+            o.push(&quot;=&quot;);
+            o.push(encode(value));
+          }
+          arr.push(o.join(&quot;&quot;));
+        };
+        var build = function(obj, base) {
+          var newKey = function(key) {
+            return !base || base == &quot;&quot; ? [key].join(&quot;&quot;) : [base, &quot;[&quot;, key, &quot;]&quot;].join(&quot;&quot;);
+          };
+          jQuery.each(obj, function(key, value) {
+            if (typeof value == 'object') 
+              build(value, newKey(key));
+            else
+              addFields(chunks, newKey(key), value);
+          });
+        };
+        
+        build(this.keys);
+        
+        if (chunks.length &gt; 0) queryString.push($hash);
+        queryString.push(chunks.join($separator));
+        
+        return queryString.join(&quot;&quot;);
+      }
+    };
+    
+    return new queryObject(location.search, location.hash);
+  };
+}(jQuery.query || {}); // Pass in jQuery.query as settings object
</ins><span class="cx">Property changes on: trunk/wp-includes/js/jquery/jquery.query.js
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-includes/script-loader.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -155,6 +155,9 @@
</span><span class="cx">         $scripts-&gt;add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m');
</span><span class="cx">         $scripts-&gt;add_data( 'schedule', 'group', 1 );
</span><span class="cx"> 
</span><ins>+        $scripts-&gt;add( 'jquery-query', &quot;/wp-includes/js/jquery/jquery.query.js&quot;, array('jquery'), '2.1.7' );
+        $scripts-&gt;add_data( 'jquery-query', 'group', 1 );
+
</ins><span class="cx">         $scripts-&gt;add( 'jquery-hotkeys', &quot;/wp-includes/js/jquery/jquery.hotkeys$suffix.js&quot;, array('jquery'), '0.0.2m' );
</span><span class="cx">         $scripts-&gt;add_data( 'jquery-hotkeys', 'group', 1 );
</span><span class="cx"> 
</span><span class="lines">@@ -335,7 +338,15 @@
</span><span class="cx">                 $scripts-&gt;add( 'theme-preview', &quot;/wp-admin/js/theme-preview$suffix.js&quot;, array( 'thickbox', 'jquery' ), '20100407' );
</span><span class="cx">                 $scripts-&gt;add_data( 'theme-preview', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20091202' );
</del><ins>+                $scripts-&gt;add( 'admin-table', &quot;/wp-admin/js/admin-table$suffix.js&quot;, array( 'jquery', 'jquery-query' ), '20100626' );
+                $scripts-&gt;add_data( 'admin-table', 'group', 1 );
+                $scripts-&gt;localize( 'admin-table', 'adminTableL10n', array(
+                        'loading' =&gt; __('Loading...'),
+                        'error' =&gt; __('An error has occured while loading the items.'),
+                        'search' =&gt; __('Search results for &amp;#8220;%s&amp;#8221;')
+                ) );
+
+                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20100707' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'inline-edit-post', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'inline-edit-post', 'inlineEditL10n', array(
</span><span class="cx">                         'error' =&gt; __('Error while saving the changes.'),
</span><span class="lines">@@ -344,7 +355,7 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(inlineEditL10n);}catch(e){};'
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'inline-edit-tax', &quot;/wp-admin/js/inline-edit-tax$suffix.js&quot;, array( 'jquery' ), '20090623' );
</del><ins>+                $scripts-&gt;add( 'inline-edit-tax', &quot;/wp-admin/js/inline-edit-tax$suffix.js&quot;, array( 'jquery' ), '20100615' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'inline-edit-tax', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'inline-edit-tax', 'inlineEditL10n', array(
</span><span class="cx">                         'error' =&gt; __('Error while saving the changes.'),
</span><span class="lines">@@ -430,7 +441,7 @@
</span><span class="cx">         // Any rtl stylesheets that don't have a .dev version for ltr
</span><span class="cx">         $no_suffix = array( 'farbtastic' );
</span><span class="cx"> 
</span><del>-        $styles-&gt;add( 'wp-admin', &quot;/wp-admin/css/wp-admin$suffix.css&quot;, array(), '20100614' );
</del><ins>+        $styles-&gt;add( 'wp-admin', &quot;/wp-admin/css/wp-admin$suffix.css&quot;, array(), '20100624' );
</ins><span class="cx"> 
</span><span class="cx">         $styles-&gt;add( 'ie', &quot;/wp-admin/css/ie$suffix.css&quot;, array(), '20100610' );
</span><span class="cx">         $styles-&gt;add_data( 'ie', 'conditional', 'lte IE 7' );
</span></span></pre></div>
<a id="trunkwpincludestaxonomyphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/taxonomy.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/taxonomy.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-includes/taxonomy.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -51,9 +51,18 @@
</span><span class="cx">         register_taxonomy( 'link_category', 'link', array(
</span><span class="cx">                 'hierarchical' =&gt; false,
</span><span class="cx">                 'labels' =&gt; array(
</span><del>-                        'name' =&gt; __( 'Categories' ),
-                        'singular_name' =&gt; __( 'Category' ),
-                        'update_item' =&gt; __( 'Update Category' ),
</del><ins>+                        'name' =&gt; __( 'Link Categories' ),
+                        'singular_name' =&gt; __( 'Link Category' ),
+                        'search_items' =&gt; __( 'Search Link Categories' ),
+                        'popular_items' =&gt; null,
+                        'all_items' =&gt; __( 'All Link Categories' ),
+                        'edit_item' =&gt; __( 'Edit Link Category' ),
+                        'update_item' =&gt; __( 'Update Link Category' ),
+                        'add_new_item' =&gt; __( 'Add New Link Category' ),
+                        'new_item_name' =&gt; __( 'New Link Category Name' ),
+                        'separate_items_with_commas' =&gt; null,
+                        'add_or_remove_items' =&gt; null,
+                        'choose_from_most_used' =&gt; null,
</ins><span class="cx">                 ),
</span><span class="cx">                 'query_var' =&gt; false,
</span><span class="cx">                 'rewrite' =&gt; false,
</span></span></pre></div>
<a id="trunkwpincludesuserphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/user.php (15490 => 15491)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/user.php        2010-08-07 21:06:06 UTC (rev 15490)
+++ trunk/wp-includes/user.php        2010-08-11 21:54:51 UTC (rev 15491)
</span><span class="lines">@@ -326,6 +326,222 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><ins>+ * WordPress User Query class.
+ *
+ * @since 3.1.0
+ */
+class WP_User_Query {
+
+        /**
+         * {@internal Missing Description}}
+         *
+         * @since 3.1.0
+         * @access private
+         * @var array
+         */
+        var $results;
+
+        /**
+         * The total number of users for the current query
+         *
+         * @since 3.1.0
+         * @access private
+         * @var int
+         */
+        var $total_users = 0;
+
+        var $query_from;
+        var $query_where;
+        var $query_orderby;
+        var $query_limit;
+
+        /**
+         * Sets up the object properties.
+         *
+         * @since 3.1.0
+         *
+         * @param string|array $args The query variables
+         * @return WP_User_Query
+         */
+        function WP_User_Query( $query ) {
+                $this-&gt;query_vars = wp_parse_args( $query, array(
+                        'search' =&gt; '', 'role' =&gt; '',
+                        'offset' =&gt; '', 'number' =&gt; '', 'count_total' =&gt; true,
+                        'orderby' =&gt; 'login', 'order' =&gt; 'ASC',
+                        'meta_key' =&gt; '', 'meta_value' =&gt; '',
+                        'include' =&gt; array(), 'exclude' =&gt; array(),
+                        'fields' =&gt; 'all'
+                ) );
+
+                $this-&gt;prepare_query();
+                $this-&gt;query();
+        }
+
+        /**
+         * Prepare the query variables
+         *
+         * @since 3.1.0
+         * @access private
+         */
+        function prepare_query() {
+                global $wpdb;
+
+                $qv = &amp;$this-&gt;query_vars;
+
+                $this-&gt;query_from = &quot; FROM $wpdb-&gt;users&quot;;
+                $this-&gt;query_where = &quot; WHERE 1=1&quot;;
+
+                // sorting
+                if ( in_array( $qv['orderby'], array('email', 'url', 'registered') ) ) {
+                        $orderby = 'user_' . $qv['orderby'];
+                }
+                elseif ( 'name' == $qv['orderby'] ) {
+                        $orderby = 'display_name';
+                }
+                elseif ( 'post_count' == $qv['orderby'] ) {
+                        $where = get_posts_by_author_sql('post');
+                        $this-&gt;query_from .= &quot; LEFT OUTER JOIN (
+                                SELECT post_author, COUNT(*) as post_count
+                                FROM wp_posts
+                                $where
+                                GROUP BY post_author
+                        ) p ON (wp_users.ID = p.post_author)
+                        &quot;;
+                        $orderby = 'post_count';
+                }
+                else {
+                        $orderby = 'user_login';
+                }
+
+                $qv['order'] = strtoupper( $qv['order'] );
+                if ( 'ASC' == $qv['order'] )
+                        $order = 'ASC';
+                else
+                        $order = 'DESC';
+                $this-&gt;query_orderby = &quot; ORDER BY $orderby $order&quot;;
+
+                // limit
+                if ( $qv['number'] ) {
+                        if ( $qv['offset'] )
+                                $this-&gt;query_limit = $wpdb-&gt;prepare(&quot; LIMIT %d, %d&quot;, $qv['offset'], $qv['offset'] + $qv['number']);
+                        else
+                                $this-&gt;query_limit = $wpdb-&gt;prepare(&quot; LIMIT %d&quot;, $qv['number']);
+                }
+
+                $search = trim( $qv['search'] );
+                if ( $search ) {
+                        $this-&gt;query_where .= _wp_search_sql( $search, array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') );
+                }
+
+                $role = trim( $qv['role'] );
+                if ( $role ) {
+                        $this-&gt;query_from .= &quot; INNER JOIN $wpdb-&gt;usermeta ON $wpdb-&gt;users.ID = $wpdb-&gt;usermeta.user_id&quot;;
+                        $this-&gt;query_where .= $wpdb-&gt;prepare(&quot; AND $wpdb-&gt;usermeta.meta_key = '{$wpdb-&gt;prefix}capabilities' AND $wpdb-&gt;usermeta.meta_value LIKE %s&quot;, '%' . $role . '%');
+                } elseif ( is_multisite() ) {
+                        $level_key = $wpdb-&gt;prefix . 'capabilities'; // wpmu site admins don't have user_levels
+                        $this-&gt;query_from .= &quot;, $wpdb-&gt;usermeta&quot;;
+                        $this-&gt;query_where .= &quot; AND $wpdb-&gt;users.ID = $wpdb-&gt;usermeta.user_id AND meta_key = '{$level_key}'&quot;;
+                }
+
+                $meta_key = trim( $qv['meta_key'] );
+                $meta_value = trim( $qv['meta_value'] );
+                if ( $meta_key ) {
+                        if ( empty( $meta_value ) ) {
+                                $subquery = $wpdb-&gt;prepare( &quot;SELECT user_id FROM {$wpdb-&gt;usermeta} WHERE meta_key = %s&quot;, $meta_key );
+                        }
+                        else {
+                                $subquery = $wpdb-&gt;prepare( &quot;SELECT user_id FROM {$wpdb-&gt;usermeta} WHERE meta_key = %s AND meta_value = %s&quot;, $meta_key, $meta_value );
+                        }
+
+                        $this-&gt;query_where .= &quot; AND $wpdb-&gt;users.ID IN ($subquery)&quot;;
+                }
+
+                if ( !empty($qv['include']) ) {
+                        $ids = implode( ',', wp_parse_id_list( $qv['include'] ) );
+                        $this-&gt;query_where .= &quot; AND $wpdb-&gt;users.ID IN ($ids)&quot;;
+                }
+                elseif ( !empty($qv['exclude']) ) {
+                        $ids = implode( ',', wp_parse_id_list( $qv['exclude'] ) );
+                        $this-&gt;query_where .= &quot; AND $wpdb-&gt;users.ID NOT IN ($ids)&quot;;
+                }
+
+                do_action_ref_array( 'pre_user_query', array( &amp;$this ) );
+        }
+
+        /**
+         * Execute the query, with the current variables
+         *
+         * @since 3.1.0
+         * @access private
+         */
+        function query() {
+                global $wpdb;
+
+                $this-&gt;results = $wpdb-&gt;get_col(&quot;SELECT DISTINCT($wpdb-&gt;users.ID)&quot; . $this-&gt;query_from . $this-&gt;query_where . $this-&gt;query_orderby . $this-&gt;query_limit);
+
+                if ( !$this-&gt;results )
+                        return;
+
+                if ( $this-&gt;query_vars['count_total'] )
+                        $this-&gt;total_users = $wpdb-&gt;get_var(&quot;SELECT COUNT(DISTINCT($wpdb-&gt;users.ID))&quot; . $this-&gt;query_from . $this-&gt;query_where);
+
+                if ( 'all' == $this-&gt;query_vars['fields'] ) {
+                        cache_users($this-&gt;results);
+
+                        $r = array();
+                        foreach ( $this-&gt;results as $userid )
+                                $r[ $userid ] = new WP_User( $userid );
+
+                        $this-&gt;results = $r;
+                }
+        }
+
+        /**
+         * Return the list of users
+         *
+         * @since 3.1.0
+         * @access public
+         *
+         * @return array
+         */
+        function get_results() {
+                return $this-&gt;results;
+        }
+
+        /**
+         * Return the total number of users for the current query
+         *
+         * @since 3.1.0
+         * @access public
+         *
+         * @return array
+         */
+        function get_total() {
+                return $this-&gt;total_users;
+        }
+}
+
+/**
+ * Retrieve list of users matching criteria.
+ *
+ * @since 3.1.0
+ * @uses $wpdb
+ * @uses WP_User_Query See for default arguments and information.
+ *
+ * @param array $args
+ * @return array List of users.
+ */
+function get_users( $args ) {
+
+        $args = wp_parse_args( $args );
+        $args['count_total'] = false;
+
+        $user_search = new WP_User_Query($args);
+
+        return (array) $user_search-&gt;get_results();
+}
+
+/**
</ins><span class="cx">  * Get users for the blog.
</span><span class="cx">  *
</span><span class="cx">  * For setups that use the multi-blog feature. Can be used outside of the
</span><span class="lines">@@ -429,7 +645,7 @@
</span><span class="cx">  * Count number of users who have each of the user roles.
</span><span class="cx">  *
</span><span class="cx">  * Assumes there are neither duplicated nor orphaned capabilities meta_values.
</span><del>- * Assumes role names are unique phrases.  Same assumption made by WP_User_Search::prepare_query()
</del><ins>+ * Assumes role names are unique phrases.  Same assumption made by WP_User_Query::prepare_query()
</ins><span class="cx">  * Using $strategy = 'time' this is CPU-intensive and should handle around 10^7 users.
</span><span class="cx">  * Using $strategy = 'memory' this is memory-intensive and should handle around 10^5 users, but see WP Bug #12257.
</span><span class="cx">  *
</span></span></pre>
</div>
</div>

</body>
</html>