<!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>[16171] trunk/wp-admin/includes: List-table Class Names: Consistency'
 s Revenge.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/16171">16171</a></dd>
<dt>Author</dt> <dd>scribu</dd>
<dt>Date</dt> <dd>2010-11-03 21:09:27 +0000 (Wed, 03 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>List-table Class Names: Consistency's Revenge. See <a href="http://trac.wordpress.org/ticket/14579">#14579</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludeslisttablephp">trunk/wp-admin/includes/list-table.php</a></li>
<li><a href="#trunkwpadminincludesmetaboxesphp">trunk/wp-admin/includes/meta-boxes.php</a></li>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesclasswplisttablecommentsphp">trunk/wp-admin/includes/class-wp-list-table-comments.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablelinksphp">trunk/wp-admin/includes/class-wp-list-table-links.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablemediaphp">trunk/wp-admin/includes/class-wp-list-table-media.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablemssitesphp">trunk/wp-admin/includes/class-wp-list-table-ms-sites.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablemsthemesphp">trunk/wp-admin/includes/class-wp-list-table-ms-themes.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablemsusersphp">trunk/wp-admin/includes/class-wp-list-table-ms-users.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttableplugininstallphp">trunk/wp-admin/includes/class-wp-list-table-plugin-install.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablepluginsphp">trunk/wp-admin/includes/class-wp-list-table-plugins.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablepostsphp">trunk/wp-admin/includes/class-wp-list-table-posts.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttabletermsphp">trunk/wp-admin/includes/class-wp-list-table-terms.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablethemeinstallphp">trunk/wp-admin/includes/class-wp-list-table-theme-install.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablethemesphp">trunk/wp-admin/includes/class-wp-list-table-themes.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttableusersphp">trunk/wp-admin/includes/class-wp-list-table-users.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesclasswpcommentslisttablephp">trunk/wp-admin/includes/class-wp-comments-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswplinkslisttablephp">trunk/wp-admin/includes/class-wp-links-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpmedialisttablephp">trunk/wp-admin/includes/class-wp-media-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpmssiteslisttablephp">trunk/wp-admin/includes/class-wp-ms-sites-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpmsthemeslisttablephp">trunk/wp-admin/includes/class-wp-ms-themes-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpmsuserslisttablephp">trunk/wp-admin/includes/class-wp-ms-users-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpplugininstalllisttablephp">trunk/wp-admin/includes/class-wp-plugin-install-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswppluginslisttablephp">trunk/wp-admin/includes/class-wp-plugins-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswppostslisttablephp">trunk/wp-admin/includes/class-wp-posts-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswptermslisttablephp">trunk/wp-admin/includes/class-wp-terms-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpthemeinstalllisttablephp">trunk/wp-admin/includes/class-wp-theme-install-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpthemeslisttablephp">trunk/wp-admin/includes/class-wp-themes-list-table.php</a></li>
<li><a href="#trunkwpadminincludesclasswpuserslisttablephp">trunk/wp-admin/includes/class-wp-users-list-table.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesclasswpcommentslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-comments-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-comments-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-comments-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,519 +0,0 @@
</span><del>-&lt;?php
-/**
- * Comments and Post Comments List Table classes.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-
-/**
- * Comments List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Comments_List_Table extends WP_List_Table {
-
-        var $checkbox = true;
-        var $from_ajax = false;
-
-        var $pending_count = array();
-
-        function WP_Comments_List_Table() {
-                global $mode;
-
-                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
-
-                if ( get_option('show_avatars') &amp;&amp; 'single' != $mode )
-                        add_filter( 'comment_author', 'floated_admin_avatar' );
-
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'edit-comments',
-                        'plural' =&gt; 'comments'
-                ) );
-        }
-
-        function check_permissions() {
-                if ( !current_user_can('edit_posts') )
-                        wp_die(__('Cheatin&amp;#8217; uh?'));
-        }
-
-        function prepare_items() {
-                global $post_id, $comment_status, $search;
-
-                if ( isset( $_REQUEST['p'] ) )
-                        $post_id = absint( $_REQUEST['p'] );
-                elseif ( isset( $_REQUEST['post'] ) )
-                        $post_id = absint( $_REQUEST['post'] );
-                elseif ( isset( $_REQUEST['post_ID'] ) )
-                        $post_id = absint( $_REQUEST['post_ID'] );
-                else
-                        $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'] : '';
-
-                $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
-
-                $comments_per_page = $this-&gt;get_items_per_page( 'edit_comments_per_page' );
-                $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
-
-                if ( isset( $_POST['number'] ) )
-                        $number = (int) $_POST['number'];
-                else
-                        $number = $comments_per_page + min( 8, $comments_per_page ); // Grab a few extra
-
-                $page = $this-&gt;get_pagenum();
-
-                $start = $offset = ( $page - 1 ) * $comments_per_page;
-
-                $status_map = array(
-                        'moderated' =&gt; 'hold',
-                        'approved' =&gt; 'approve'
-                );
-
-                $args = array(
-                        'status' =&gt; isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
-                        'search' =&gt; $search,
-                        'user_id' =&gt; $user_id,
-                        'offset' =&gt; $start,
-                        'number' =&gt; $number,
-                        'post_id' =&gt; $post_id,
-                        'type' =&gt; $comment_type,
-                        'orderby' =&gt; @$_REQUEST['orderby'],
-                        'order' =&gt; @$_REQUEST['order'],
-                );
-
-                $_comments = get_comments( $args );
-
-                update_comment_cache( $_comments );
-
-                $this-&gt;items = array_slice( $_comments, 0, $comments_per_page );
-                $this-&gt;extra_items = array_slice( $_comments, $comments_per_page );
-
-                $total_comments = get_comments( array_merge( $args, array('count' =&gt; true, 'offset' =&gt; 0, 'number' =&gt; 0) ) );
-
-                $_comment_post_ids = array();
-                foreach ( $_comments as $_c ) {
-                        $_comment_post_ids[] = $_c-&gt;comment_post_ID;
-                }
-
-                $this-&gt;pending_count = get_pending_comments_num( $_comment_post_ids );
-
-                $this-&gt;set_pagination_args( array(
-                        'total_items' =&gt; $total_comments,
-                        'per_page' =&gt; $comments_per_page,
-                ) );
-        }
-
-        function no_items() {
-                global $comment_status;
-
-                if ( 'moderated' == $comment_status )
-                        _e( 'No comments awaiting moderation&amp;hellip; yet.' );
-                else
-                        _e( 'No comments found.' );
-        }
-
-        function get_views() {
-                global $post_id, $comment_status;
-
-                $status_links = array();
-                $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
-                //, number_format_i18n($num_comments-&gt;moderated) ), &quot;&lt;span class='comment-count'&gt;&quot; . number_format_i18n($num_comments-&gt;moderated) . &quot;&lt;/span&gt;&quot;),
-                //, number_format_i18n($num_comments-&gt;spam) ), &quot;&lt;span class='spam-comment-count'&gt;&quot; . number_format_i18n($num_comments-&gt;spam) . &quot;&lt;/span&gt;&quot;)
-                $stati = array(
-                                'all' =&gt; _nx_noop('All', 'All', 'comments'), // singular not used
-                                'moderated' =&gt; _n_noop('Pending &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;pending-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;', 'Pending &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;pending-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;'),
-                                'approved' =&gt; _n_noop('Approved', 'Approved'), // singular not used
-                                'spam' =&gt; _n_noop('Spam &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;spam-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;', 'Spam &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;spam-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;'),
-                                'trash' =&gt; _n_noop('Trash &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;trash-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;', 'Trash &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;trash-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;')
-                        );
-
-                if ( !EMPTY_TRASH_DAYS )
-                        unset($stati['trash']);
-
-                $link = 'edit-comments.php';
-                if ( !empty($comment_type) &amp;&amp; 'all' != $comment_type )
-                        $link = add_query_arg( 'comment_type', $comment_type, $link );
-
-                foreach ( $stati as $status =&gt; $label ) {
-                        $class = ( $status == $comment_status ) ? ' class=&quot;current&quot;' : '';
-
-                        if ( !isset( $num_comments-&gt;$status ) )
-                                $num_comments-&gt;$status = 10;
-                        $link = add_query_arg( 'comment_status', $status, $link );
-                        if ( $post_id )
-                                $link = add_query_arg( 'p', absint( $post_id ), $link );
-                        /*
-                        // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
-                        if ( !empty( $_REQUEST['s'] ) )
-                                $link = add_query_arg( 's', esc_attr( stripslashes( $_REQUEST['s'] ) ), $link );
-                        */
-                        $status_links[$status] = &quot;&lt;li class='$status'&gt;&lt;a href='$link'$class&gt;&quot; . sprintf(
-                                translate_nooped_plural( $label, $num_comments-&gt;$status ),
-                                number_format_i18n( $num_comments-&gt;$status )
-                        ) . '&lt;/a&gt;';
-                }
-
-                $status_links = apply_filters( 'comment_status_links', $status_links );
-                return $status_links;
-        }
-
-        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;&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;?php
-                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
-                }
-
-                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' );
-                        submit_button( $title, 'button-secondary apply', 'delete_all', false );
-                }
-                do_action( 'manage_comments_nav', $comment_status );
-                echo '&lt;/div&gt;';
-        }
-
-        function current_action() {
-                if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) )
-                        return 'delete_all';
-
-                return parent::current_action();
-        }
-
-        function get_columns() {
-                global $mode;
-
-                $columns = array();
-
-                if ( $this-&gt;checkbox )
-                        $columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
-
-                $columns['author'] = __( 'Author' );
-                $columns['comment'] = _x( 'Comment', 'column name' );
-
-                if ( 'single' !== $mode )
-                        $columns['response'] = _x( 'Comment', 'column name' );
-
-                return $columns;
-        }
-
-        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(); ?&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;items = $this-&gt;extra_items; $this-&gt;display_rows(); ?&gt;
-        &lt;/tbody&gt;
-&lt;/table&gt;
-&lt;?php
-
-                $this-&gt;display_tablenav( 'bottom' );
-        }
-
-        function single_row( $a_comment ) {
-                global $post, $comment, $the_comment_status;
-
-                $comment = $a_comment;
-                $the_comment_status = wp_get_comment_status( $comment-&gt;comment_ID );
-
-                $post = get_post( $comment-&gt;comment_post_ID );
-
-                $this-&gt;user_can = current_user_can( 'edit_comment', $comment-&gt;comment_ID );
-
-                echo &quot;&lt;tr id='comment-$comment-&gt;comment_ID' class='$the_comment_status'&gt;&quot;;
-                echo $this-&gt;single_row_columns( $comment );
-                echo &quot;&lt;/tr&gt;\n&quot;;
-        }
-
-        function column_cb( $comment ) {
-                if ( $this-&gt;user_can )
-                        echo &quot;&lt;input type='checkbox' name='delete_comments[]' value='$comment-&gt;comment_ID' /&gt;&quot;;
-        }
-
-        function column_comment( $comment ) {
-                global $post, $comment_status, $the_comment_status;
-
-                $user_can = $this-&gt;user_can;
-
-                $comment_url = esc_url( get_comment_link( $comment-&gt;comment_ID ) );
-
-                $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?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 '&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; ! $this-&gt;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-&gt;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;';
-                }
-        }
-
-        function column_author( $comment ) {
-                global $comment_status;
-
-                $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 ) . '...';
-
-                echo &quot;&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 ( $this-&gt;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;';
-                }
-        }
-
-        function column_date( $comment ) {
-                return get_comment_date( __( 'Y/m/d \a\t g:ia' ) );
-        }
-
-        function column_response( $comment ) {
-                global $post;
-
-                if ( isset( $this-&gt;pending_count[$post-&gt;ID] ) ) {
-                        $pending_comments = $this-&gt;pending_count[$post-&gt;ID];
-                } else {
-                        $_pending_count_temp = get_pending_comments_num( array( $post-&gt;ID ) );
-                        $pending_comments = $this-&gt;pending_count[$post-&gt;ID] = $_pending_count_temp[$post-&gt;ID];
-                }
-
-                if ( current_user_can( 'edit_post', $post-&gt;ID ) ) {
-                        $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 '&lt;div class=&quot;response-links&quot;&gt;&lt;span class=&quot;post-com-count-wrapper&quot;&gt;';
-                echo $post_link . '&lt;br /&gt;';
-                $this-&gt;comments_bubble( $post-&gt;ID, $pending_comments );
-                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;
-        }
-
-        function column_default( $comment, $column_name ) {
-                do_action( 'manage_comments_custom_column', $column_name, $comment-&gt;comment_ID );
-        }
-}
-
-/**
- * Post Comments List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- *
- * @see WP_Comments_Table
- */
-class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
-
-        function get_columns() {
-                return array(
-                        'author'   =&gt; __( 'Author' ),
-                        'comment'  =&gt; _x( 'Comment', 'column name' ),
-                );
-        }
-
-        function get_sortable_columns() {
-                return array();
-        }
-}
-
-?&gt;
</del></span></pre></div>
<a id="trunkwpadminincludesclasswplinkslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-links-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-links-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-links-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,192 +0,0 @@
</span><del>-&lt;?php
-/**
- * Links Manager List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Links_List_Table extends WP_List_Table {
-
-        function WP_Links_List_Table() {
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'link-manager',
-                        'plural' =&gt; 'bookmarks',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( ! current_user_can( 'manage_links' ) )
-                        wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
-        }
-
-        function prepare_items() {
-                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 );
-        }
-
-        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 );
-                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
-?&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_info();
-
-                        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;;
-                                                echo $this-&gt;row_actions( $actions );
-
-                                                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
-                }
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablecommentsphpfromrev16170trunkwpadminincludesclasswpcommentslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-comments.php (from rev 16170, trunk/wp-admin/includes/class-wp-comments-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-comments.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-comments.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,519 @@
</span><ins>+&lt;?php
+/**
+ * Comments and Post Comments List Table classes.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+
+/**
+ * Comments List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Comments extends WP_List_Table {
+
+        var $checkbox = true;
+        var $from_ajax = false;
+
+        var $pending_count = array();
+
+        function WP_List_Table_Comments() {
+                global $mode;
+
+                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
+
+                if ( get_option('show_avatars') &amp;&amp; 'single' != $mode )
+                        add_filter( 'comment_author', 'floated_admin_avatar' );
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'edit-comments',
+                        'plural' =&gt; 'comments'
+                ) );
+        }
+
+        function check_permissions() {
+                if ( !current_user_can('edit_posts') )
+                        wp_die(__('Cheatin&amp;#8217; uh?'));
+        }
+
+        function prepare_items() {
+                global $post_id, $comment_status, $search;
+
+                if ( isset( $_REQUEST['p'] ) )
+                        $post_id = absint( $_REQUEST['p'] );
+                elseif ( isset( $_REQUEST['post'] ) )
+                        $post_id = absint( $_REQUEST['post'] );
+                elseif ( isset( $_REQUEST['post_ID'] ) )
+                        $post_id = absint( $_REQUEST['post_ID'] );
+                else
+                        $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'] : '';
+
+                $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
+
+                $comments_per_page = $this-&gt;get_items_per_page( 'edit_comments_per_page' );
+                $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
+
+                if ( isset( $_POST['number'] ) )
+                        $number = (int) $_POST['number'];
+                else
+                        $number = $comments_per_page + min( 8, $comments_per_page ); // Grab a few extra
+
+                $page = $this-&gt;get_pagenum();
+
+                $start = $offset = ( $page - 1 ) * $comments_per_page;
+
+                $status_map = array(
+                        'moderated' =&gt; 'hold',
+                        'approved' =&gt; 'approve'
+                );
+
+                $args = array(
+                        'status' =&gt; isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
+                        'search' =&gt; $search,
+                        'user_id' =&gt; $user_id,
+                        'offset' =&gt; $start,
+                        'number' =&gt; $number,
+                        'post_id' =&gt; $post_id,
+                        'type' =&gt; $comment_type,
+                        'orderby' =&gt; @$_REQUEST['orderby'],
+                        'order' =&gt; @$_REQUEST['order'],
+                );
+
+                $_comments = get_comments( $args );
+
+                update_comment_cache( $_comments );
+
+                $this-&gt;items = array_slice( $_comments, 0, $comments_per_page );
+                $this-&gt;extra_items = array_slice( $_comments, $comments_per_page );
+
+                $total_comments = get_comments( array_merge( $args, array('count' =&gt; true, 'offset' =&gt; 0, 'number' =&gt; 0) ) );
+
+                $_comment_post_ids = array();
+                foreach ( $_comments as $_c ) {
+                        $_comment_post_ids[] = $_c-&gt;comment_post_ID;
+                }
+
+                $this-&gt;pending_count = get_pending_comments_num( $_comment_post_ids );
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total_comments,
+                        'per_page' =&gt; $comments_per_page,
+                ) );
+        }
+
+        function no_items() {
+                global $comment_status;
+
+                if ( 'moderated' == $comment_status )
+                        _e( 'No comments awaiting moderation&amp;hellip; yet.' );
+                else
+                        _e( 'No comments found.' );
+        }
+
+        function get_views() {
+                global $post_id, $comment_status;
+
+                $status_links = array();
+                $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
+                //, number_format_i18n($num_comments-&gt;moderated) ), &quot;&lt;span class='comment-count'&gt;&quot; . number_format_i18n($num_comments-&gt;moderated) . &quot;&lt;/span&gt;&quot;),
+                //, number_format_i18n($num_comments-&gt;spam) ), &quot;&lt;span class='spam-comment-count'&gt;&quot; . number_format_i18n($num_comments-&gt;spam) . &quot;&lt;/span&gt;&quot;)
+                $stati = array(
+                                'all' =&gt; _nx_noop('All', 'All', 'comments'), // singular not used
+                                'moderated' =&gt; _n_noop('Pending &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;pending-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;', 'Pending &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;pending-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;'),
+                                'approved' =&gt; _n_noop('Approved', 'Approved'), // singular not used
+                                'spam' =&gt; _n_noop('Spam &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;spam-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;', 'Spam &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;spam-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;'),
+                                'trash' =&gt; _n_noop('Trash &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;trash-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;', 'Trash &lt;span class=&quot;count&quot;&gt;(&lt;span class=&quot;trash-count&quot;&gt;%s&lt;/span&gt;)&lt;/span&gt;')
+                        );
+
+                if ( !EMPTY_TRASH_DAYS )
+                        unset($stati['trash']);
+
+                $link = 'edit-comments.php';
+                if ( !empty($comment_type) &amp;&amp; 'all' != $comment_type )
+                        $link = add_query_arg( 'comment_type', $comment_type, $link );
+
+                foreach ( $stati as $status =&gt; $label ) {
+                        $class = ( $status == $comment_status ) ? ' class=&quot;current&quot;' : '';
+
+                        if ( !isset( $num_comments-&gt;$status ) )
+                                $num_comments-&gt;$status = 10;
+                        $link = add_query_arg( 'comment_status', $status, $link );
+                        if ( $post_id )
+                                $link = add_query_arg( 'p', absint( $post_id ), $link );
+                        /*
+                        // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
+                        if ( !empty( $_REQUEST['s'] ) )
+                                $link = add_query_arg( 's', esc_attr( stripslashes( $_REQUEST['s'] ) ), $link );
+                        */
+                        $status_links[$status] = &quot;&lt;li class='$status'&gt;&lt;a href='$link'$class&gt;&quot; . sprintf(
+                                translate_nooped_plural( $label, $num_comments-&gt;$status ),
+                                number_format_i18n( $num_comments-&gt;$status )
+                        ) . '&lt;/a&gt;';
+                }
+
+                $status_links = apply_filters( 'comment_status_links', $status_links );
+                return $status_links;
+        }
+
+        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;&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;?php
+                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
+                }
+
+                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' );
+                        submit_button( $title, 'button-secondary apply', 'delete_all', false );
+                }
+                do_action( 'manage_comments_nav', $comment_status );
+                echo '&lt;/div&gt;';
+        }
+
+        function current_action() {
+                if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) )
+                        return 'delete_all';
+
+                return parent::current_action();
+        }
+
+        function get_columns() {
+                global $mode;
+
+                $columns = array();
+
+                if ( $this-&gt;checkbox )
+                        $columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
+
+                $columns['author'] = __( 'Author' );
+                $columns['comment'] = _x( 'Comment', 'column name' );
+
+                if ( 'single' !== $mode )
+                        $columns['response'] = _x( 'Comment', 'column name' );
+
+                return $columns;
+        }
+
+        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(); ?&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;items = $this-&gt;extra_items; $this-&gt;display_rows(); ?&gt;
+        &lt;/tbody&gt;
+&lt;/table&gt;
+&lt;?php
+
+                $this-&gt;display_tablenav( 'bottom' );
+        }
+
+        function single_row( $a_comment ) {
+                global $post, $comment, $the_comment_status;
+
+                $comment = $a_comment;
+                $the_comment_status = wp_get_comment_status( $comment-&gt;comment_ID );
+
+                $post = get_post( $comment-&gt;comment_post_ID );
+
+                $this-&gt;user_can = current_user_can( 'edit_comment', $comment-&gt;comment_ID );
+
+                echo &quot;&lt;tr id='comment-$comment-&gt;comment_ID' class='$the_comment_status'&gt;&quot;;
+                echo $this-&gt;single_row_columns( $comment );
+                echo &quot;&lt;/tr&gt;\n&quot;;
+        }
+
+        function column_cb( $comment ) {
+                if ( $this-&gt;user_can )
+                        echo &quot;&lt;input type='checkbox' name='delete_comments[]' value='$comment-&gt;comment_ID' /&gt;&quot;;
+        }
+
+        function column_comment( $comment ) {
+                global $post, $comment_status, $the_comment_status;
+
+                $user_can = $this-&gt;user_can;
+
+                $comment_url = esc_url( get_comment_link( $comment-&gt;comment_ID ) );
+
+                $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?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 '&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; ! $this-&gt;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-&gt;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;';
+                }
+        }
+
+        function column_author( $comment ) {
+                global $comment_status;
+
+                $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 ) . '...';
+
+                echo &quot;&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 ( $this-&gt;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;';
+                }
+        }
+
+        function column_date( $comment ) {
+                return get_comment_date( __( 'Y/m/d \a\t g:ia' ) );
+        }
+
+        function column_response( $comment ) {
+                global $post;
+
+                if ( isset( $this-&gt;pending_count[$post-&gt;ID] ) ) {
+                        $pending_comments = $this-&gt;pending_count[$post-&gt;ID];
+                } else {
+                        $_pending_count_temp = get_pending_comments_num( array( $post-&gt;ID ) );
+                        $pending_comments = $this-&gt;pending_count[$post-&gt;ID] = $_pending_count_temp[$post-&gt;ID];
+                }
+
+                if ( current_user_can( 'edit_post', $post-&gt;ID ) ) {
+                        $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 '&lt;div class=&quot;response-links&quot;&gt;&lt;span class=&quot;post-com-count-wrapper&quot;&gt;';
+                echo $post_link . '&lt;br /&gt;';
+                $this-&gt;comments_bubble( $post-&gt;ID, $pending_comments );
+                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;
+        }
+
+        function column_default( $comment, $column_name ) {
+                do_action( 'manage_comments_custom_column', $column_name, $comment-&gt;comment_ID );
+        }
+}
+
+/**
+ * Post Comments List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ *
+ * @see WP_Comments_Table
+ */
+class WP_List_Table_Post_Comments extends WP_List_Table_Comments {
+
+        function get_columns() {
+                return array(
+                        'author'   =&gt; __( 'Author' ),
+                        'comment'  =&gt; _x( 'Comment', 'column name' ),
+                );
+        }
+
+        function get_sortable_columns() {
+                return array();
+        }
+}
+
+?&gt;
</ins></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablelinksphpfromrev16170trunkwpadminincludesclasswplinkslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-links.php (from rev 16170, trunk/wp-admin/includes/class-wp-links-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-links.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-links.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,192 @@
</span><ins>+&lt;?php
+/**
+ * Links Manager List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Links extends WP_List_Table {
+
+        function WP_List_Table_Links() {
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'link-manager',
+                        'plural' =&gt; 'bookmarks',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( ! current_user_can( 'manage_links' ) )
+                        wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
+        }
+
+        function prepare_items() {
+                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 );
+        }
+
+        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 );
+                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
+?&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_info();
+
+                        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;;
+                                                echo $this-&gt;row_actions( $actions );
+
+                                                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
+                }
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablemediaphpfromrev16170trunkwpadminincludesclasswpmedialisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-media.php (from rev 16170, trunk/wp-admin/includes/class-wp-media-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-media.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-media.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,459 @@
</span><ins>+&lt;?php
+/**
+ * Media Library List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Media extends WP_List_Table {
+
+        function WP_List_Table_Media() {
+                global $detached;
+
+                $detached = isset( $_REQUEST['detached'] ) || isset( $_REQUEST['find_detached'] );
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; $detached ? 'upload-detached' : 'upload',
+                        'plural' =&gt; 'media'
+                ) );
+        }
+
+        function check_permissions() {
+                if ( !current_user_can('upload_files') )
+                        wp_die( __( 'You do not have permission to upload files.' ) );
+        }
+
+        function prepare_items() {
+                global $lost, $wpdb, $wp_query, $post_mime_types, $avail_post_mime_types;
+
+                $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_views() {
+                global $wpdb, $post_mime_types, $detached, $avail_post_mime_types;
+
+                $type_links = array();
+                $_num_posts = (array) wp_count_attachments();
+                $_total_posts = array_sum($_num_posts) - $_num_posts['trash'];
+                if ( !isset( $total_orphans ) )
+                                $total_orphans = $wpdb-&gt;get_var( &quot;SELECT COUNT( * ) FROM $wpdb-&gt;posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent &lt; 1&quot; );
+                $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts));
+                foreach ( $matches as $type =&gt; $reals )
+                        foreach ( $reals as $real )
+                                $num_posts[$type] = ( isset( $num_posts[$type] ) ) ? $num_posts[$type] + $_num_posts[$real] : $_num_posts[$real];
+
+                $class = ( empty($_GET['post_mime_type']) &amp;&amp; !$detached &amp;&amp; !isset($_GET['status']) ) ? ' class=&quot;current&quot;' : '';
+                $type_links['all'] = &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;';
+                foreach ( $post_mime_types as $mime_type =&gt; $label ) {
+                        $class = '';
+
+                        if ( !wp_match_mime_types($mime_type, $avail_post_mime_types) )
+                                continue;
+
+                        if ( !empty($_GET['post_mime_type']) &amp;&amp; wp_match_mime_types($mime_type, $_GET['post_mime_type']) )
+                                $class = ' class=&quot;current&quot;';
+                        if ( !empty( $num_posts[$mime_type] ) )
+                                $type_links[$mime_type] = &quot;&lt;li&gt;&lt;a href='upload.php?post_mime_type=$mime_type'$class&gt;&quot; . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '&lt;/a&gt;';
+                }
+                $type_links['detached'] = '&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;';
+
+                if ( !empty($_num_posts['trash']) )
+                        $type_links['trash'] = '&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;';
+
+                return $type_links;
+        }
+
+        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;
+                $post_type_obj = get_post_type_object( $post_type );
+?&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' );
+                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
+                }
+
+                if ( $detached ) {
+                        submit_button( __( 'Scan for lost attachments' ), 'secondary', 'find_detached', false );
+                } elseif ( $this-&gt;is_trash &amp;&amp; current_user_can( 'edit_others_posts' ) ) { 
+                        submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
+                } ?&gt;
+                &lt;/div&gt;
+&lt;?php
+        }
+
+        function current_action() {
+                if ( isset( $_REQUEST['find_detached'] ) )
+                        return 'find_detached';
+
+                if ( isset( $_REQUEST['found_post_id'] ) &amp;&amp; isset( $_REQUEST['media'] ) )
+                        return 'attach';
+
+                if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) )
+                        return 'delete_all';
+
+                return parent::current_action();
+        }
+
+        function has_items() {
+                return have_posts();
+        }
+
+        function no_items() {
+                global $detached;
+                
+                if ( $detached ) {
+?&gt;
+                &lt;div class=&quot;tablenav&quot;&gt;
+                        &lt;?php $this-&gt;extra_tablenav( 'top' ); ?&gt;
+                &lt;/div&gt;
+                &lt;br class=&quot;clear&quot;&gt;
+&lt;?php
+                }
+
+                _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_info();
+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 );
+                echo $this-&gt;row_actions( $actions );
+?&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
+                $pending_comments = get_pending_comments_num( $post-&gt;ID );
+
+                $this-&gt;comments_bubble( $post-&gt;ID, $pending_comments );
+?&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;?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 );
+
+                        echo $this-&gt;row_actions( $actions );
+?&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;
+        }
+}
+
+?&gt;
</ins></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablemssitesphpfromrev16170trunkwpadminincludesclasswpmssiteslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-ms-sites.php (from rev 16170, trunk/wp-admin/includes/class-wp-ms-sites-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-ms-sites.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-ms-sites.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,333 @@
</span><ins>+&lt;?php
+/**
+ * Sites List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_MS_Sites extends WP_List_Table {
+
+        function WP_List_Table_MS_Sites() {
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'sites-network',
+                        'plural' =&gt; 'sites',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( ! current_user_can( 'manage_sites' ) )
+                        wp_die( __( 'You do not have permission to access this page.' ) );
+        }
+
+        function prepare_items() {
+                global $s, $mode, $wpdb, $current_site;
+
+                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'list' : $_REQUEST['mode'];
+
+                $per_page = $this-&gt;get_items_per_page( 'sites_network_per_page' );
+
+                $pagenum = $this-&gt;get_pagenum();
+
+                $s = isset( $_REQUEST['s'] ) ? stripslashes( trim( $_REQUEST[ 's' ] ) ) : '';
+                $wild = '';
+                if ( false !== strpos($s, '*') ) {
+                        $wild = '%';
+                        $s = trim($s, '*');
+                }
+
+                $like_s = esc_sql( like_escape( $s ) );
+
+                $large_network = false;
+                // If the network is large and a search is not being performed, show only the latest blogs with no paging in order
+                // to avoid expensive count queries.
+                if ( !$s &amp;&amp; ( get_blog_count() &gt;= 10000 ) ) {
+                        if ( !isset($_REQUEST['orderby']) )
+                                $_GET['orderby'] = $_REQUEST['orderby'] = 'id';
+                        if ( !isset($_REQUEST['order']) )
+                                $_GET['order'] = $_REQUEST['order'] = 'DESC';
+                        $large_network = true;
+                }
+
+                $query = &quot;SELECT * FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;;
+
+                if ( empty($s) ) {
+                        // Nothing to do.
+                } elseif ( preg_match('/^[0-9]+\./', $s) ) {
+                        // IP address
+                        $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}$wild' )&quot;;
+                } else {
+                        if ( is_subdomain_install() ) {
+                                $blog_s = str_replace( '.' . $current_site-&gt;domain, '', $like_s );
+                                $blog_s .= $wild . '.' . $current_site-&gt;domain;
+                                $query .= &quot; AND ( {$wpdb-&gt;blogs}.domain LIKE '$blog_s' &quot;;
+                        } else {
+                                if ( $like_s != trim('/', $current_site-&gt;path) )
+                                        $blog_s = $current_site-&gt;path .= $like_s . $wild . '/';
+                                else
+                                        $blog_s = $like_s;
+                                $query .= &quot; AND  ( {$wpdb-&gt;blogs}.path LIKE '$blog_s' &quot;;
+                        }
+
+                        if ( is_numeric($s) )
+                                $query .= &quot; OR {$wpdb-&gt;blogs}.blog_id = '{$like_s}' &quot;;
+
+                        $query .= ' )';
+                }
+
+                $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;
+
+                // Don't do an unbounded count on large networks
+                if ( ! $large_network )
+                        $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 );
+
+                if ( $large_network )
+                        $total = count($this-&gt;items);
+
+                $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_info();
+
+                        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( network_admin_url( 'site-info.php?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( 'site-info.php?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; . __( 'Dashboard' ) . '&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 );
+                                                        echo $this-&gt;row_actions( $actions );
+                                        ?&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( array( 'blog_id' =&gt; $blog['blog_id'], 'number' =&gt; 6) );
+                                                        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 $user_object ) {
+                                                                        echo '&lt;a href=&quot;' . esc_url( admin_url( 'user-edit.php?user_id=' . $user_object-&gt;ID ) ) . '&quot;&gt;' . esc_html( $user_object-&gt;user_login ) . '&lt;/a&gt; ';
+                                                                        if ( 'list' != $mode )
+                                                                                echo '( ' . $user_object-&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
+                }
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablemsthemesphpfromrev16170trunkwpadminincludesclasswpmsthemeslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-ms-themes.php (from rev 16170, trunk/wp-admin/includes/class-wp-ms-themes-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-ms-themes.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-ms-themes.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,298 @@
</span><ins>+&lt;?php
+/**
+ * MS Themes List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_MS_Themes extends WP_List_Table {
+
+        function WP_List_Table_MS_Themes() {
+                global $status, $page;
+
+                $default_status = get_user_option( 'themes_last_view' );
+                if ( empty( $default_status ) )
+                        $default_status = 'all';
+                $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : $default_status;
+                if ( !in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search' ) ) )
+                        $status = 'all';
+                if ( $status != $default_status &amp;&amp; 'search' != $status )
+                        update_user_meta( get_current_user_id(), 'themes_last_view', $status );
+
+                $page = $this-&gt;get_pagenum();
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'themes',
+                        'plural' =&gt; 'plugins', // @todo replace with themes and add css
+                ) );
+        }
+        
+        function check_permissions() {
+                if ( is_multisite() ) {
+                        $menu_perms = get_site_option( 'menu_items', array() );
+
+                        if ( empty( $menu_perms['themes'] ) ) {
+                                if ( !is_super_admin() )
+                                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+                        }
+                }
+
+                if ( !current_user_can('manage_network_themes') )
+                        wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) );
+        }
+
+        function prepare_items() {
+                global $status, $themes, $totals, $page, $orderby, $order, $s;
+
+                wp_reset_vars( array( 'orderby', 'order', 's' ) );
+
+                $themes = array(
+                        'all' =&gt; apply_filters( 'all_themes', get_themes() ),
+                        'search' =&gt; array(),
+                        'enabled' =&gt; array(),
+                        'disabled' =&gt; array(),
+                        'upgrade' =&gt; array()
+                );
+
+                $allowed_themes = get_site_allowed_themes();
+                $current = get_site_transient( 'update_themes' );
+
+                foreach ( (array) $themes['all'] as $key =&gt; $theme ) {
+                        if ( array_key_exists( $theme['Template'], $allowed_themes ) ) {
+                                $themes['all'][$key]['enabled'] = true;
+                                $themes['enabled'][$key] = $themes['all'][$key];
+                        }
+                        else {
+                                $themes['all'][$key]['enabled'] = false;
+                                $themes['disabled'][$key] = $themes['all'][$key];
+                        }
+                        if ( isset( $current-&gt;response[ $theme['Template'] ] ) )
+                                $themes['upgrade'][$key] = $themes['all'][$key];
+                }
+
+                if ( !current_user_can( 'update_themes' ) )
+                        $themes['upgrade'] = array();
+
+                if ( $s ) {
+                        $status = 'search';
+                        $themes['search'] = array_filter( $themes['all'], array( &amp;$this, '_search_callback' ) );
+                }
+
+                $totals = array();
+                foreach ( $themes as $type =&gt; $list )
+                        $totals[ $type ] = count( $list );
+
+                if ( empty( $themes[ $status ] ) &amp;&amp; !in_array( $status, array( 'all', 'search' ) ) )
+                        $status = 'all';
+
+                $this-&gt;items = $themes[ $status ];
+                $total_this_page = $totals[ $status ];
+
+                if ( $orderby ) {
+                        $orderby = ucfirst( $orderby );
+                        $order = strtoupper( $order );
+
+                        uasort( $this-&gt;items, array( &amp;$this, '_order_callback' ) );
+                }
+
+                $themes_per_page = $this-&gt;get_items_per_page( 'themes_per_page', 999 );
+
+                $start = ( $page - 1 ) * $themes_per_page;
+
+                if ( $total_this_page &gt; $themes_per_page )
+                        $this-&gt;items = array_slice( $this-&gt;items, $start, $themes_per_page );
+
+                $this-&gt;set_pagination_args( array(
+                        'total_items' =&gt; $total_this_page,
+                        'per_page' =&gt; $themes_per_page,
+                ) );
+        }
+        
+        function _search_callback( $theme ) {
+                static $term;
+                if ( is_null( $term ) )
+                        $term = stripslashes( $_REQUEST['s'] );
+
+                $search_fields = array( 'Name', 'Title', 'Description', 'Author', 'Author Name', 'Author URI', 'Template', 'Stylesheet' );
+                foreach ( $search_fields as $field )
+                        if ( stripos( $theme[ $field ], $term ) !== false )
+                                return true;
+
+                return false;
+        }
+
+        function _order_callback( $theme_a, $theme_b ) {
+                global $orderby, $order;
+
+                $a = $theme_a[$orderby];
+                $b = $theme_b[$orderby];
+
+                if ( $a == $b )
+                        return 0;
+
+                if ( 'DESC' == $order )
+                        return ( $a &lt; $b ) ? 1 : -1;
+                else
+                        return ( $a &lt; $b ) ? -1 : 1;
+        }
+
+        function no_items() {
+                global $themes;
+
+                if ( !empty( $themes['all'] ) )
+                        _e( 'No themes found.' );
+                else
+                        _e( 'You do not appear to have any themes available at this time.' );
+        }
+
+        function get_columns() {
+                global $status;
+
+                return array(
+                        'cb'          =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
+                        'name'        =&gt; __( 'Theme' ),
+                        'description' =&gt; __( 'Description' ),
+                );
+        }
+
+        function get_sortable_columns() {
+                return array(
+                        'name'         =&gt; 'name',
+                );
+        }
+
+        function get_views() {
+                global $totals, $status;
+
+                $status_links = array();
+                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, 'themes' );
+                                        break;
+                                case 'enabled':
+                                        $text = _n( 'Enabled &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Enabled &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
+                                        break;
+                                case 'disabled':
+                                        $text = _n( 'Disabled &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Disabled &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[$type] = sprintf( &quot;&lt;li&gt;&lt;a href='%s' %s&gt;%s&lt;/a&gt;&quot;,
+                                add_query_arg('theme_status', $type, 'themes.php'),
+                                ( $type == $status ) ? ' class=&quot;current&quot;' : '',
+                                sprintf( $text, number_format_i18n( $count ) )
+                        );
+                }
+
+                return $status_links;
+        }
+
+        function get_bulk_actions() {
+                global $status;
+
+                $actions = array();
+                if ( 'enabled' != $status )
+                        $actions['network-enable-selected'] = __( 'Enable' );
+                if ( 'disabled' != $status )
+                        $actions['network-disable-selected'] = __( 'Disable' );
+                if ( current_user_can( 'update_themes' ) )
+                        $actions['update-selected'] = __( 'Update' );
+                        
+                return $actions;
+        }
+
+        function bulk_actions( $which ) {
+                global $status;
+                parent::bulk_actions( $which );
+        }
+
+        function current_action() {
+                return parent::current_action();
+        }
+
+        function display_rows() {
+                global $status, $page, $s;
+
+                $context = $status;
+
+                foreach ( $this-&gt;items as $key =&gt; $theme ) {
+                        // preorder
+                        $actions = array(
+                                'network_enable' =&gt; '',
+                                'network_disable' =&gt; '',
+                                'edit' =&gt; ''
+                        );
+                        
+                        $theme_key = esc_html( $theme['Stylesheet'] );
+
+                        if ( empty( $theme['enabled'] ) ) {
+                                if ( current_user_can( 'manage_network_themes' ) )
+                                        $actions['network_enable'] = '&lt;a href=&quot;' . wp_nonce_url('themes.php?action=network-enable&amp;amp;theme=' . $theme_key . '&amp;amp;paged=' . $page . '&amp;amp;s=' . $s, 'enable-theme_' . $theme_key) . '&quot; title=&quot;' . __('Enable this theme for all sites in this network') . '&quot; class=&quot;edit&quot;&gt;' . __('Enable') . '&lt;/a&gt;';
+                        } else {
+                                if ( current_user_can( 'manage_network_themes' ) )
+                                        $actions['network_disable'] = '&lt;a href=&quot;' . wp_nonce_url('themes.php?action=network-disable&amp;amp;theme=' . $theme_key . '&amp;amp;paged=' . $page . '&amp;amp;s=' . $s, 'disable-theme_' . $theme_key) . '&quot; title=&quot;' . __('Disable this theme') . '&quot;&gt;' . __('Disable') . '&lt;/a&gt;';
+                        }
+                        
+                        if ( current_user_can('edit_themes') )
+                                $actions['edit'] = '&lt;a href=&quot;theme-editor.php?theme=' . $theme['Name'] . '&quot; title=&quot;' . __('Open this theme in the Theme Editor') . '&quot; class=&quot;edit&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
+
+                        $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme_key, $theme, $context );
+                        $actions = apply_filters( &quot;theme_action_links_$theme_key&quot;, $actions, $theme_key, $theme, $context );
+
+                        $class = empty( $theme['enabled'] ) ? 'inactive' : 'active';
+                        $checkbox = &quot;&lt;input type='checkbox' name='checked[]' value='&quot; . esc_attr( $theme_key ) . &quot;' /&gt;&quot;;
+
+                        $description = '&lt;p&gt;' . $theme['Description'] . '&lt;/p&gt;';
+                        $theme_name = $theme['Name'];
+
+
+                        $id = sanitize_title( $theme_name );
+
+                        echo &quot;
+                &lt;tr id='$id' class='$class'&gt;
+                        &lt;th scope='row' class='check-column'&gt;$checkbox&lt;/th&gt;
+                        &lt;td class='theme-title'&gt;&lt;strong&gt;$theme_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='theme-title'&gt;&quot;;
+
+                        echo $this-&gt;row_actions( $actions, true );
+
+                        echo &quot;&lt;/td&gt;
+                        &lt;td class='desc'&gt;&quot;;
+                        $theme_meta = array();
+                        if ( !empty( $theme['Version'] ) )
+                                $theme_meta[] = sprintf( __( 'Version %s' ), $theme['Version'] );
+                        if ( !empty( $theme['Author'] ) ) {
+                                $author = $theme['Author'];
+                                if ( !empty( $theme['Author URI'] ) )
+                                        $author = '&lt;a href=&quot;' . $theme['Author URI'] . '&quot; title=&quot;' . __( 'Visit author homepage' ) . '&quot;&gt;' . $theme['Author'] . '&lt;/a&gt;';
+                                $theme_meta[] = sprintf( __( 'By %s' ), $author );
+                        }
+                        if ( !empty( $theme['Theme URI'] ) )
+                                $theme_meta[] = '&lt;a href=&quot;' . $theme['Theme URI'] . '&quot; title=&quot;' . __( 'Visit theme homepage' ) . '&quot;&gt;' . __( 'Visit Theme Site' ) . '&lt;/a&gt;';
+
+                        $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $theme_key, $theme, $status );
+                        echo implode( ' | ', $theme_meta );
+                        echo &quot;&lt;/td&gt;
+                &lt;/tr&gt;\n&quot;;
+
+                        do_action( 'after_theme_row', $theme_key, $theme, $status );
+                        do_action( &quot;after_theme_row_$theme_key&quot;, $theme_key, $theme, $status );
+                }
+        }
+}
+?&gt;
</ins></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablemsusersphpfromrev16170trunkwpadminincludesclasswpmsuserslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-ms-users.php (from rev 16170, trunk/wp-admin/includes/class-wp-ms-users-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-ms-users.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-ms-users.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,237 @@
</span><ins>+&lt;?php
+/**
+ * Multisite Users List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_MS_Users extends WP_List_Table {
+
+        function WP_List_Table_MS_Users() {
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'users-network',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( !is_multisite() )
+                        wp_die( __( 'Multisite support is not enabled.' ) );
+
+                if ( ! current_user_can( 'manage_network_users' ) )
+                        wp_die( __( 'You do not have permission to access this page.' ) );
+        }
+
+        function prepare_items() {
+                global $usersearch;
+
+                $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
+
+                $users_per_page = $this-&gt;get_items_per_page( 'users_network_per_page' );
+
+                $paged = $this-&gt;get_pagenum();
+
+                $args = array(
+                        'number' =&gt; $users_per_page,
+                        'offset' =&gt; ( $paged-1 ) * $users_per_page,
+                        'search' =&gt; $usersearch,
+                        'blog_id' =&gt; 0
+                );
+
+                // If the network is large and a search is not being performed, show only the latest users with no paging in order
+                // to avoid expensive count queries.
+                if ( !$usersearch &amp;&amp; ( get_blog_count() &gt;= 10000 ) ) {
+                        if ( !isset($_REQUEST['orderby']) )
+                                $_GET['orderby'] = $_REQUEST['orderby'] = 'id';
+                        if ( !isset($_REQUEST['order']) )
+                                $_GET['order'] = $_REQUEST['order'] = 'DESC';
+                        $args['count_total'] = false;
+                }
+
+                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 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-&gt;$status )
+                                        $class = $col;
+                        }
+
+                        ?&gt;
+                        &lt;tr class=&quot;&lt;?php echo $class; ?&gt;&quot;&gt;
+                        &lt;?php
+
+                        list( $columns, $hidden ) = $this-&gt;get_column_info();
+
+                        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-&gt;ID ?&gt;&quot; name=&quot;allusers[]&quot; value=&quot;&lt;?php echo esc_attr( $user-&gt;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-&gt;ID ?&gt;
+                                                &lt;/th&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'login':
+                                                $avatar        = get_avatar( $user-&gt;user_email, 32 );
+                                                $edit_link = ( get_current_user_id() == $user-&gt;ID ) ? 'profile.php' : 'user-edit.php?user_id=' . $user-&gt;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( self_admin_url( $edit_link ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo stripslashes( $user-&gt;user_login ); ?&gt;&lt;/a&gt;&lt;?php
+                                                        if ( in_array( $user-&gt;user_login, $super_admins ) )
+                                                                echo ' - ' . __( 'Super admin' );
+                                                        ?&gt;&lt;/strong&gt;
+                                                        &lt;br/&gt;
+                                                        &lt;?php
+                                                                $actions = array();
+                                                                $actions['edit'] = '&lt;a href=&quot;' . esc_url( self_admin_url( $edit_link ) ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
+
+                                                                if ( ! in_array( $user-&gt;user_login, $super_admins ) ) {
+                                                                        $actions['delete'] = '&lt;a href=&quot;' . $delete = esc_url( network_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-&gt;ID ) ) ) . '&quot; class=&quot;delete&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;';
+                                                                }
+
+                                                                echo $this-&gt;row_actions( $actions );
+                                                        ?&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-&gt;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-&gt;user_email ?&gt;&quot;&gt;&lt;?php echo $user-&gt;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-&gt;user_registered ); ?&gt;&lt;/td&gt;
+                                        &lt;?php
+                                        break;
+
+                                        case 'blogs':
+                                                $blogs = get_blogs_of_user( $user-&gt;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( 'site-info.php?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( 'site-info.php?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-&gt;ID ); ?&gt;&lt;/td&gt;
+                                        &lt;?php
+                                        break;
+                                }
+                        endforeach
+                        ?&gt;
+                        &lt;/tr&gt;
+                        &lt;?php
+                }
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttableplugininstallphpfromrev16170trunkwpadminincludesclasswpplugininstalllisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-plugin-install.php (from rev 16170, trunk/wp-admin/includes/class-wp-plugin-install-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-plugin-install.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-plugin-install.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,234 @@
</span><ins>+&lt;?php
+/**
+ * Plugin Installer List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Plugin_Install extends WP_List_Table {
+
+        function WP_List_Table_Plugin_Install() {
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'plugin-install',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( ! current_user_can('install_plugins') )
+                        wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
+        }
+
+        function prepare_items() {
+                include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
+
+                global $tabs, $tab, $paged, $type, $term;
+
+                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 get_views() {
+                global $tabs, $tab;
+
+                $display_tabs = array();
+                foreach ( (array) $tabs as $action =&gt; $text ) {
+                        $class = ( $action == $tab ) ? ' class=&quot;current&quot;' : '';
+                        $href = admin_url('plugin-install.php?tab=' . $action);
+                        $display_tabs[$action] = &quot;&lt;a href='$href'$class&gt;$text&lt;/a&gt;&quot;;
+                }
+
+                return $display_tabs;
+        }
+
+        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
+                }
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablepluginsphpfromrev16170trunkwpadminincludesclasswppluginslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-plugins.php (from rev 16170, trunk/wp-admin/includes/class-wp-plugins-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-plugins.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-plugins.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,426 @@
</span><ins>+&lt;?php
+/**
+ * Plugins List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Plugins extends WP_List_Table {
+
+        function WP_List_Table_Plugins() {
+                global $status, $page;
+
+                $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();
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'plugins',
+                        'plural' =&gt; 'plugins',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( is_multisite() ) {
+                        $menu_perms = get_site_option( 'menu_items', array() );
+
+                        if ( empty( $menu_perms['plugins'] ) ) {
+                                if ( !is_super_admin() )
+                                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+                        }
+                }
+
+                if ( !current_user_can('activate_plugins') )
+                        wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
+        }
+
+        function prepare_items() {
+                global $status, $plugins, $totals, $page, $orderby, $order, $s;
+
+                wp_reset_vars( array( 'orderby', 'order', 's' ) );
+
+                $plugins = array(
+                        'all' =&gt; apply_filters( 'all_plugins', get_plugins() ),
+                        'search' =&gt; array(),
+                        'active' =&gt; array(),
+                        'inactive' =&gt; array(),
+                        'recently_activated' =&gt; 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 );
+
+                $recently_activated = get_option( 'recently_activated', array() );
+
+                $one_week = 7*24*60*60;
+                foreach ( $recently_activated as $key =&gt; $time )
+                        if ( $time + $one_week &lt; time() )
+                                unset( $recently_activated[$key] );
+                update_option( 'recently_activated', $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_network_admin() &amp;&amp; is_plugin_active( $plugin_file ) )
+                                || ( is_network_admin() &amp;&amp; is_plugin_active_for_network( $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['recently_activated'][ $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 ) {
+                        $status = 'search';
+                        $plugins['search'] = array_filter( $plugins['all'], array( &amp;$this, '_search_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 );
+
+                        uasort( $this-&gt;items, array( &amp;$this, '_order_callback' ) );
+                }
+
+                $plugins_per_page = $this-&gt;get_items_per_page( 'plugins_per_page', 999 );
+
+                $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 _search_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;
+        }
+
+        function _order_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;
+        }
+
+        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',
+                );
+        }
+
+        function display_tablenav( $which ) {
+                global $status;
+
+                if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )
+                        parent::display_tablenav( $which );
+        }
+
+        function get_views() {
+                global $totals, $status;
+
+                $status_links = array();
+                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[$type] = 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 ) )
+                        );
+                }
+
+                return $status_links;
+        }
+
+        function get_bulk_actions() {
+                global $status;
+
+                $actions = array();
+
+                if ( 'active' != $status ) {
+                        $action = is_network_admin() ? 'network-activate-selected' : 'activate-selected'; 
+                        $actions[ $action ] = __( 'Activate' );
+                }
+
+                if ( 'inactive' != $status &amp;&amp; 'recent' != $status )
+                        $actions['deactivate-selected'] = __( 'Deactivate' );
+
+                if ( !is_multisite() || is_network_admin() ) {
+                        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;?php submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false ); ?&gt;
+                        &lt;/div&gt;
+                &lt;?php }
+        }
+
+        function current_action() {
+                if ( isset($_POST['clear-recent-list']) )
+                        return 'clear-recent-list';
+
+                return parent::current_action();
+        }
+
+        function display_rows() {
+                global $status, $page, $s;
+
+                $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 . '&amp;amp;s=' . $s, '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 . '&amp;amp;s=' . $s, '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 . '&amp;amp;s=' . $s, 'bulk-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 . '&amp;amp;s=' . $s, '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 . '&amp;amp;s=' . $s, 'activate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Activate this plugin') . '&quot; class=&quot;edit&quot;&gt;' . __('Activate') . '&lt;/a&gt;';
+
+                                                if ( ! is_multisite() &amp;&amp; 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 . '&amp;amp;s=' . $s, 'bulk-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'];
+                        }
+
+                        $id = sanitize_title( $plugin_name );
+
+                        echo &quot;
+                &lt;tr id='$id' 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 $this-&gt;row_actions( $actions, true );
+
+                        echo &quot;&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 );
+                }
+        }
+}
+
+?&gt;
</ins></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablepostsphpfromrev16170trunkwpadminincludesclasswppostslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-posts.php (from rev 16170, trunk/wp-admin/includes/class-wp-posts-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-posts.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-posts.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,1003 @@
</span><ins>+&lt;?php
+/**
+ * Posts List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Posts extends WP_List_Table {
+
+        /**
+         * Whether the items should be displayed hierarchically or linearly
+         *
+         * @since 3.1.0
+         * @var bool
+         * @access protected
+         */
+        var $hierarchical_display;
+
+        /**
+         * Holds the number of pending comments for each post
+         *
+         * @since 3.1.0
+         * @var int
+         * @access protected
+         */
+        var $comment_pending_count;
+
+        /**
+         * Holds the number of posts for this user
+         *
+         * @since 3.1.0
+         * @var int
+         * @access private
+         */
+        var $user_posts_count;
+
+        /**
+         * Holds the number of posts which are sticky.
+         *
+         * @since 3.1.0
+         * @var int
+         * @access private
+         */
+        var $sticky_posts_count = 0;
+
+        function WP_List_Table_Posts() {
+                global $post_type_object, $post_type, $current_screen, $wpdb;
+
+                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_others_posts ) ) {
+                        $this-&gt;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 ( $this-&gt;user_posts_count &amp;&amp; empty( $_REQUEST['post_status'] ) &amp;&amp; empty( $_REQUEST['all_posts'] ) &amp;&amp; empty( $_REQUEST['author'] ) &amp;&amp; empty( $_REQUEST['show_sticky'] ) )
+                                $_GET['author'] = get_current_user_id();
+                }
+
+                if ( $sticky_posts = get_option( 'sticky_posts' ) ) {
+                        $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) );
+                        $this-&gt;sticky_posts_count = $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT COUNT( 1 ) FROM $wpdb-&gt;posts WHERE post_type = %s AND ID IN ($sticky_posts)&quot;, $post_type ) );
+                }
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; $current_screen,
+                        'plural' =&gt; 'posts',
+                ) );
+        }
+
+        function check_permissions() {
+                global $post_type_object;
+
+                if ( !current_user_can( $post_type_object-&gt;cap-&gt;edit_posts ) )
+                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+        }
+
+        function prepare_items() {
+                global $post_type_object, $post_type, $avail_post_stati, $wp_query, $per_page, $mode;
+
+                $avail_post_stati = wp_edit_posts_query();
+
+                $this-&gt;hierarchical_display = ( $post_type_object-&gt;hierarchical &amp;&amp; 'menu_order title' == $wp_query-&gt;query['orderby'] );
+
+                $total_items = $this-&gt;hierarchical_display ? $wp_query-&gt;post_count : $wp_query-&gt;found_posts;
+
+                $per_page = $this-&gt;get_items_per_page( 'edit_' . $post_type . '_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_views() {
+                global $post_type, $post_type_object, $locked_post_status, $avail_post_stati;
+
+                if ( !empty($locked_post_status) )
+                        return array();
+
+                $status_links = array();
+                $num_posts = wp_count_posts( $post_type, 'readable' );
+                $class = '';
+                $allposts = '';
+
+                $current_user_id = get_current_user_id();
+
+                if ( $this-&gt;user_posts_count ) {
+                        if ( isset( $_GET['author'] ) &amp;&amp; ( $_GET['author'] == $current_user_id ) )
+                                $class = ' class=&quot;current&quot;';
+                        $status_links['mine'] = &quot;&lt;li&gt;&lt;a href='edit.php?post_type=$post_type&amp;author=$current_user_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;', $this-&gt;user_posts_count, 'posts' ), number_format_i18n( $this-&gt;user_posts_count ) ) . '&lt;/a&gt;';
+                        $allposts = '&amp;all_posts=1';
+                }
+
+                $total_posts = array_sum( (array) $num_posts );
+
+                // Subtract post types that are not included in the admin all list.
+                foreach ( get_post_stati( array('show_in_admin_all_list' =&gt; false) ) as $state )
+                        $total_posts -= $num_posts-&gt;$state;
+
+                $class = empty( $class ) &amp;&amp; empty( $_REQUEST['post_status'] ) &amp;&amp; empty( $_REQUEST['show_sticky'] ) ? ' class=&quot;current&quot;' : '';
+                $status_links['all'] = &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;';
+
+                foreach ( get_post_stati(array('show_in_admin_status_list' =&gt; true), 'objects') as $status ) {
+                        $class = '';
+
+                        $status_name = $status-&gt;name;
+
+                        if ( !in_array( $status_name, $avail_post_stati ) )
+                                continue;
+
+                        if ( empty( $num_posts-&gt;$status_name ) )
+                                continue;
+
+                        if ( isset($_REQUEST['post_status']) &amp;&amp; $status_name == $_REQUEST['post_status'] )
+                                $class = ' class=&quot;current&quot;';
+
+                        $status_links[$status_name] = &quot;&lt;li&gt;&lt;a href='edit.php?post_status=$status_name&amp;amp;post_type=$post_type'$class&gt;&quot; . sprintf( translate_nooped_plural( $status-&gt;label_count, $num_posts-&gt;$status_name ), number_format_i18n( $num_posts-&gt;$status_name ) ) . '&lt;/a&gt;';
+                }
+
+                if ( ! empty( $this-&gt;sticky_posts_count ) ) {
+                        $class = ! empty( $_REQUEST['show_sticky'] ) ? ' class=&quot;current&quot;' : '';
+
+                        $sticky_link = array( 'sticky' =&gt; &quot;&lt;li&gt;&lt;a href='edit.php?post_type=$post_type&amp;amp;show_sticky=1'$class&gt;&quot; . sprintf( _nx( 'Sticky &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Sticky &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $this-&gt;sticky_posts_count, 'posts' ), number_format_i18n( $this-&gt;sticky_posts_count ) ) . '&lt;/a&gt;' );
+
+                        // Sticky comes after Publish, or if not listed, after All.
+                        $split = 1 + array_search( ( isset( $status_links['publish'] ) ? 'publish' : 'all' ), array_keys( $status_links ) );
+                        $status_links = array_merge( array_slice( $status_links, 0, $split ), $sticky_link, array_slice( $status_links, $split ) );
+                }
+
+                return $status_links;
+        }
+
+        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' );
+                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
+?&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 ) ) {
+                        submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
+                }
+        }
+
+        function current_action() {
+                if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) )
+                        return 'delete_all';
+
+                return parent::current_action();
+        }
+
+        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;' . esc_attr__( '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;
+
+                $this-&gt;comment_pending_count = get_pending_comments_num( $post_ids );
+
+                foreach ( $posts as $post )
+                        $this-&gt;single_row( $post );
+        }
+
+        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( $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( $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( $my_parent, $level - $num_parents );
+                                        $num_parents--;
+                                }
+                        }
+
+                        if ( $count &gt;= $start )
+                                echo &quot;\t&quot; . $this-&gt;single_row( $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
+        }
+
+        function single_row( $a_post, $level = 0 ) {
+                global $post, $current_screen, $mode;
+                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 );
+                $can_edit_post = current_user_can( 'edit_post', $post-&gt;ID );
+        ?&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_info();
+
+                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 ( $can_edit_post ) { ?&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 'title':
+                                if ( $this-&gt;hierarchical_display ) {
+                                        $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
+
+                                        if ( 0 == $level &amp;&amp; (int) $post-&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) $post-&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;
+                                                }
+                                        }
+
+                                        $post-&gt;post_title = esc_html( $post-&gt;post_title );
+                                        $pad = str_repeat( '&amp;#8212; ', $level );
+?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( $can_edit_post &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( $post ); echo isset( $parent_name ) ? ' | ' . $post_type_object-&gt;labels-&gt;parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?&gt;&lt;/strong&gt;
+&lt;?php
+                                }
+                                else {
+                                        $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
+?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( $can_edit_post &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 ( $can_edit_post &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 ( $can_edit_post )
+                                                $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( $this-&gt;hierarchical_display ? 'page_row_actions' : 'post_row_actions', $actions, $post );
+                                echo $this-&gt;row_actions( $actions );
+
+                                get_inline_data( $post );
+                                echo '&lt;/td&gt;';
+                        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 '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[] = sprintf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;',
+                                                        esc_url( add_query_arg( array( 'post_type' =&gt; $post-&gt;post_type, 'category_name' =&gt; $c-&gt;slug ), 'edit.php' ) ),
+                                                        esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'category', 'display' ) )
+                                                );
+                                        }
+                                        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[] = sprintf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;',
+                                                        esc_url( add_query_arg( array( 'post_type' =&gt; $post-&gt;post_type, 'tag' =&gt; $c-&gt;slug ), 'edit.php' ) ),
+                                                        esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'tag', 'display' ) )
+                                                );
+                                        }
+                                        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_comments = isset( $this-&gt;comment_pending_count[$post-&gt;ID] ) ? $this-&gt;comment_pending_count[$post-&gt;ID] : 0;
+
+                                $this-&gt;comments_bubble( $post-&gt;ID, $pending_comments );
+                        ?&gt;
+                        &lt;/div&gt;&lt;/td&gt;
+                        &lt;?php
+                        break;
+
+                        case 'author':
+                        ?&gt;
+                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
+                                printf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;',
+                                        esc_url( add_query_arg( array( 'post_type' =&gt; $post-&gt;post_type, 'author' =&gt; get_the_author_meta( 'ID' ) ), 'edit.php' )),
+                                        get_the_author()
+                                );
+                        ?&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.0
+         */
+        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_info();
+
+                $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_dropdown = '';
+
+                        if ( is_super_admin() || current_user_can( $post_type_object-&gt;cap-&gt;edit_others_posts ) ) :
+                                $users_opt = array(
+                                        '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_type_supports( $screen-&gt;post_type, 'sticky' ) &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 sticky' ); ?&gt;&lt;/span&gt;
+                                &lt;/label&gt;
+
+        &lt;?php        endif; // $bulk ?&gt;
+
+        &lt;?php endif; // post_type_supports(sticky) &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 {
+                                submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false, array( 'accesskey' =&gt; 's' ) );
+                        } ?&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
+        }
+}
+
+?&gt;
</ins></span></pre></div>
<a id="trunkwpadminincludesclasswplisttabletermsphpfromrev16170trunkwpadminincludesclasswptermslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-terms.php (from rev 16170, trunk/wp-admin/includes/class-wp-terms-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-terms.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-terms.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,365 @@
</span><ins>+&lt;?php
+/**
+ * Terms List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Terms extends WP_List_Table {
+
+        var $callback_args;
+
+        function WP_List_Table_Terms() {
+                global $post_type, $taxonomy, $tax, $current_screen;
+
+                wp_reset_vars( array( 'action', 'taxonomy', 'post_type' ) );
+
+                if ( empty( $taxonomy ) )
+                        $taxonomy = 'post_tag';
+
+                if ( !taxonomy_exists( $taxonomy ) )
+                        wp_die( __( 'Invalid taxonomy' ) );
+
+                $tax = get_taxonomy( $taxonomy );
+
+                if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'public' =&gt; true ) ) ) )
+                        $post_type = 'post';
+
+                if ( !isset( $current_screen ) )
+                        set_current_screen( 'edit-' . $taxonomy );
+
+                parent::WP_List_Table( array(
+                        'screen' =&gt; $current_screen,
+                        'plural' =&gt; 'tags',
+                        'singular' =&gt; 'tag',
+                ) );
+        }
+
+        function check_permissions( $type = 'manage' ) {
+                global $tax;
+
+                $cap = 'manage' == $type ? $tax-&gt;cap-&gt;manage_terms : $tax-&gt;cap-&gt;edit_terms;
+
+                if ( !current_user_can( $tax-&gt;cap-&gt;manage_terms ) )
+                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+        }
+
+        function prepare_items() {
+                global $taxonomy;
+
+                $tags_per_page = $this-&gt;get_items_per_page( 'edit_' .  $taxonomy . '_per_page' );
+
+                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
+                }
+
+                $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 current_action() {
+                if ( isset( $_REQUEST['action'] ) &amp;&amp; isset( $_REQUEST['delete_tags'] ) &amp;&amp; ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) )
+                        return 'bulk-delete';
+
+                return parent::current_action();
+        }
+
+        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 = 0 ) {
+                static $row_class = '';
+                $row_class = ( $row_class == '' ? ' class=&quot;alternate&quot;' : '' );
+
+                $this-&gt;level = $level;
+
+                echo '&lt;tr id=&quot;tag-' . $tag-&gt;term_id . '&quot;' . $row_class . '&gt;';
+                echo $this-&gt;single_row_columns( $tag );
+                echo '&lt;/tr&gt;';
+        }
+
+        function column_cb( $tag ) {
+                global $taxonomy, $tax;
+
+                $default_term = get_option( 'default_' . $taxonomy );
+
+                if ( current_user_can( $tax-&gt;cap-&gt;delete_terms ) &amp;&amp; $tag-&gt;term_id != $default_term )
+                        return '&lt;input type=&quot;checkbox&quot; name=&quot;delete_tags[]&quot; value=&quot;' . $tag-&gt;term_id . '&quot; /&gt;';
+                else
+                        return '&amp;nbsp;';
+        }
+
+        function column_name( $tag ) {
+                global $taxonomy, $tax, $post_type;
+
+                $default_term = get_option( 'default_' . $taxonomy );
+
+                $pad = str_repeat( '&amp;#8212; ', max( 0, $this-&gt;level ) );
+                $name = apply_filters( 'term_name', $pad . ' ' . $tag-&gt;name, $tag );
+                $qe_data = get_term( $tag-&gt;term_id, $taxonomy, OBJECT, 'edit' );
+                $edit_link = get_edit_term_link( $tag-&gt;term_id, $taxonomy, $post_type );
+
+                $out = '&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 );
+
+                $out .= $this-&gt;row_actions( $actions );
+                $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;';
+
+                return $out;
+        }
+
+        function column_description( $tag ) {
+                return $tag-&gt;description;
+        }
+
+        function column_slug( $tag ) {
+                return apply_filters( 'editable_slug', $tag-&gt;slug );
+        }
+
+        function column_posts( $tag ) {
+                global $taxonomy, $post_type;
+
+                $count = number_format_i18n( $tag-&gt;count );
+
+                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;
+                }
+
+                return &quot;&lt;a href='edit.php?$tagsel=$tag-&gt;slug&amp;amp;post_type=$post_type'&gt;$count&lt;/a&gt;&quot;;
+        }
+
+        function column_links( $tag ) {
+                $count = number_format_i18n( $tag-&gt;count );
+                return $count;
+        }
+
+        function column_default( $tag, $column_name ) {
+                global $taxonomy;
+
+                return apply_filters( &quot;manage_${taxonomy}_custom_column&quot;, '', $column_name, $tag-&gt;term_id );
+                $out .= &quot;&lt;/td&gt;&quot;;
+        }
+
+        /**
+         * Outputs the hidden row displayed when inline editing
+         *
+         * @since 3.1.0
+         */
+        function inline_edit() {
+                global $tax;
+
+                if ( ! current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
+                        return;
+
+                list( $columns, $hidden ) = $this-&gt;get_column_info();
+
+                $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 ( !global_terms_enabled() ) { ?&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
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablethemeinstallphpfromrev16170trunkwpadminincludesclasswpthemeinstalllisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-theme-install.php (from rev 16170, trunk/wp-admin/includes/class-wp-theme-install-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-theme-install.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-theme-install.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,187 @@
</span><ins>+&lt;?php
+/**
+ * Theme Installer List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Theme_Install extends WP_List_Table {
+
+        function WP_List_Table_Theme_Install() {
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'theme-install',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( ! current_user_can('install_themes') )
+                        wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
+        }
+
+        function prepare_items() {
+                include( ABSPATH . 'wp-admin/includes/theme-install.php' );
+
+                global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;
+
+                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_views() {
+                global $tabs, $tab;
+
+                $display_tabs = array();
+                foreach ( (array) $tabs as $action =&gt; $text ) {
+                        $class = ( $action == $tab ) ? ' class=&quot;current&quot;' : '';
+                        $href = self_admin_url('theme-install.php?tab=' . $action);
+                        $display_tabs[$action] = &quot;&lt;a href='$href'$class&gt;$text&lt;/a&gt;&quot;;
+                }
+
+                return $display_tabs;
+        }
+
+        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
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablethemesphpfromrev16170trunkwpadminincludesclasswpthemeslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-themes.php (from rev 16170, trunk/wp-admin/includes/class-wp-themes-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-themes.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-themes.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,219 @@
</span><ins>+&lt;?php
+/**
+ * Themes List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Themes extends WP_List_Table {
+
+        var $search = array();
+        var $features = array();
+
+        function WP_List_Table_Themes() {
+                parent::__construct( array(
+                        'screen' =&gt; 'themes',
+                ) );
+        }
+
+        function check_permissions() {
+                if ( !current_user_can('switch_themes') &amp;&amp; !current_user_can('edit_theme_options') )
+                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
+        }
+
+        function prepare_items() {
+                global $ct;
+
+                $ct = current_theme_info();
+
+                $themes = get_allowed_themes();
+
+                $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : '';
+
+                if ( '' !== $search ) {
+                        $this-&gt;search = array_merge( $this-&gt;search, array_filter( array_map( 'trim', explode( ',', $search ) ) ) );
+                        $this-&gt;search = array_unique( $this-&gt;search );
+                }
+
+                if ( !empty( $_REQUEST['features'] ) ) {
+                        $this-&gt;features = $_REQUEST['features'];
+                        $this-&gt;features = array_map( 'trim', $this-&gt;features );
+                        $this-&gt;features = array_map( 'sanitize_title_with_dashes', $this-&gt;features );
+                        $this-&gt;features = array_unique( $this-&gt;features );
+                }
+
+                if ( $this-&gt;search || $this-&gt;features ) {
+                        foreach ( $themes as $key =&gt; $theme ) {
+                                if ( !$this-&gt;search_theme( $theme ) )
+                                        unset( $themes[ $key ] );
+                        }
+                }
+
+                unset( $themes[$ct-&gt;name] );
+                uksort( $themes, &quot;strnatcasecmp&quot; );
+
+                $per_page = 15;
+                $page = $this-&gt;get_pagenum();
+
+                $start = ( $page - 1 ) * $per_page;
+
+                $this-&gt;items = array_slice( $themes, $start, $per_page );
+
+                $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
+        }
+
+        function search_theme( $theme ) {
+                $matched = 0;
+
+                // Match all phrases
+                if ( count( $this-&gt;search ) &gt; 0 ) {
+                        foreach ( $this-&gt;search as $word ) {
+                                $matched = 0;
+
+                                // In a tag?
+                                if ( in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
+                                        $matched = 1;
+
+                                // In one of the fields?
+                                foreach ( array( 'Name', 'Title', 'Description', 'Author', 'Template', 'Stylesheet' ) AS $field ) {
+                                        if ( stripos( $theme[$field], $word ) !== false )
+                                                $matched++;
+                                }
+
+                                if ( $matched == 0 )
+                                        return false;
+                        }
+                }
+
+                // Now search the features
+                if ( count( $this-&gt;features ) &gt; 0 ) {
+                        foreach ( $this-&gt;features as $word ) {
+                                // In a tag?
+                                if ( !in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
+                                        return false;
+                        }
+                }
+
+                // Only get here if each word exists in the tags or one of the fields
+                return true;
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttableusersphpfromrev16170trunkwpadminincludesclasswpuserslisttablephp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/includes/class-wp-list-table-users.php (from rev 16170, trunk/wp-admin/includes/class-wp-users-list-table.php) (0 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table-users.php                                (rev 0)
+++ trunk/wp-admin/includes/class-wp-list-table-users.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -0,0 +1,278 @@
</span><ins>+&lt;?php
+/**
+ * Users List Table class.
+ *
+ * @package WordPress
+ * @subpackage List_Table
+ * @since 3.1.0
+ */
+class WP_List_Table_Users extends WP_List_Table {
+
+        function WP_List_Table_Users() {
+                parent::WP_List_Table( array(
+                        'screen' =&gt; 'users',
+                        'plural' =&gt; 'users'
+                ) );
+        }
+
+        function check_permissions() {
+                if ( !current_user_can('list_users') )
+                        wp_die(__('Cheatin&amp;#8217; uh?'));
+        }
+
+        function prepare_items() {
+                global $role, $usersearch;
+
+                $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
+
+                $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';
+
+                $users_per_page = $this-&gt;get_items_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_views() {
+                global $wp_roles, $role;
+
+                $users_of_blog = count_users();
+                $total_users = $users_of_blog['total_users'];
+                $avail_roles =&amp; $users_of_blog['avail_roles'];
+                unset($users_of_blog);
+
+                $current_role = false;
+                $class = empty($role) ? ' class=&quot;current&quot;' : '';
+                $role_links = array();
+                $role_links['all'] = &quot;&lt;li&gt;&lt;a href='users.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_users, 'users' ), number_format_i18n( $total_users ) ) . '&lt;/a&gt;';
+                foreach ( $wp_roles-&gt;get_names() as $this_role =&gt; $name ) {
+                        if ( !isset($avail_roles[$this_role]) )
+                                continue;
+
+                        $class = '';
+
+                        if ( $this_role == $role ) {
+                                $current_role = $role;
+                                $class = ' class=&quot;current&quot;';
+                        }
+
+                        $name = translate_user_role( $name );
+                        /* translators: User role name with count */
+                        $name = sprintf( __('%1$s &lt;span class=&quot;count&quot;&gt;(%2$s)&lt;/span&gt;'), $name, $avail_roles[$this_role] );
+                        $role_links[$this_role] = &quot;&lt;li&gt;&lt;a href='users.php?role=$this_role'$class&gt;$name&lt;/a&gt;&quot;;
+                }
+
+                return $role_links;
+        }
+
+        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;?php submit_button( __( 'Change' ), 'secondary', 'changeit', false ); ?&gt;
+        &lt;/div&gt;
+&lt;?php
+        }
+
+        function current_action() {
+                if ( isset($_REQUEST['changeit']) &amp;&amp; !empty($_REQUEST['new_role']) )
+                        return 'promote';
+
+                return parent::current_action();
+        }
+
+        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 ) {
+                        $role = reset( $user_object-&gt;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 );
+                        $edit .= $this-&gt;row_actions( $actions );
+
+                        // 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_info();
+
+                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;
+        }
+}
+
+?&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpmedialisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-media-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-media-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-media-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,459 +0,0 @@
</span><del>-&lt;?php
-/**
- * Media Library List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Media_List_Table extends WP_List_Table {
-
-        function WP_Media_List_Table() {
-                global $detached;
-
-                $detached = isset( $_REQUEST['detached'] ) || isset( $_REQUEST['find_detached'] );
-
-                parent::WP_List_Table( array(
-                        'screen' =&gt; $detached ? 'upload-detached' : 'upload',
-                        'plural' =&gt; 'media'
-                ) );
-        }
-
-        function check_permissions() {
-                if ( !current_user_can('upload_files') )
-                        wp_die( __( 'You do not have permission to upload files.' ) );
-        }
-
-        function prepare_items() {
-                global $lost, $wpdb, $wp_query, $post_mime_types, $avail_post_mime_types;
-
-                $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_views() {
-                global $wpdb, $post_mime_types, $detached, $avail_post_mime_types;
-
-                $type_links = array();
-                $_num_posts = (array) wp_count_attachments();
-                $_total_posts = array_sum($_num_posts) - $_num_posts['trash'];
-                if ( !isset( $total_orphans ) )
-                                $total_orphans = $wpdb-&gt;get_var( &quot;SELECT COUNT( * ) FROM $wpdb-&gt;posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent &lt; 1&quot; );
-                $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts));
-                foreach ( $matches as $type =&gt; $reals )
-                        foreach ( $reals as $real )
-                                $num_posts[$type] = ( isset( $num_posts[$type] ) ) ? $num_posts[$type] + $_num_posts[$real] : $_num_posts[$real];
-
-                $class = ( empty($_GET['post_mime_type']) &amp;&amp; !$detached &amp;&amp; !isset($_GET['status']) ) ? ' class=&quot;current&quot;' : '';
-                $type_links['all'] = &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;';
-                foreach ( $post_mime_types as $mime_type =&gt; $label ) {
-                        $class = '';
-
-                        if ( !wp_match_mime_types($mime_type, $avail_post_mime_types) )
-                                continue;
-
-                        if ( !empty($_GET['post_mime_type']) &amp;&amp; wp_match_mime_types($mime_type, $_GET['post_mime_type']) )
-                                $class = ' class=&quot;current&quot;';
-                        if ( !empty( $num_posts[$mime_type] ) )
-                                $type_links[$mime_type] = &quot;&lt;li&gt;&lt;a href='upload.php?post_mime_type=$mime_type'$class&gt;&quot; . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '&lt;/a&gt;';
-                }
-                $type_links['detached'] = '&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;';
-
-                if ( !empty($_num_posts['trash']) )
-                        $type_links['trash'] = '&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;';
-
-                return $type_links;
-        }
-
-        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;
-                $post_type_obj = get_post_type_object( $post_type );
-?&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' );
-                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
-                }
-
-                if ( $detached ) {
-                        submit_button( __( 'Scan for lost attachments' ), 'secondary', 'find_detached', false );
-                } elseif ( $this-&gt;is_trash &amp;&amp; current_user_can( 'edit_others_posts' ) ) { 
-                        submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
-                } ?&gt;
-                &lt;/div&gt;
-&lt;?php
-        }
-
-        function current_action() {
-                if ( isset( $_REQUEST['find_detached'] ) )
-                        return 'find_detached';
-
-                if ( isset( $_REQUEST['found_post_id'] ) &amp;&amp; isset( $_REQUEST['media'] ) )
-                        return 'attach';
-
-                if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) )
-                        return 'delete_all';
-
-                return parent::current_action();
-        }
-
-        function has_items() {
-                return have_posts();
-        }
-
-        function no_items() {
-                global $detached;
-                
-                if ( $detached ) {
-?&gt;
-                &lt;div class=&quot;tablenav&quot;&gt;
-                        &lt;?php $this-&gt;extra_tablenav( 'top' ); ?&gt;
-                &lt;/div&gt;
-                &lt;br class=&quot;clear&quot;&gt;
-&lt;?php
-                }
-
-                _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_info();
-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 );
-                echo $this-&gt;row_actions( $actions );
-?&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
-                $pending_comments = get_pending_comments_num( $post-&gt;ID );
-
-                $this-&gt;comments_bubble( $post-&gt;ID, $pending_comments );
-?&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;?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 );
-
-                        echo $this-&gt;row_actions( $actions );
-?&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;
-        }
-}
-
-?&gt;
</del></span></pre></div>
<a id="trunkwpadminincludesclasswpmssiteslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-ms-sites-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-ms-sites-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-ms-sites-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,333 +0,0 @@
</span><del>-&lt;?php
-/**
- * Sites List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_MS_Sites_List_Table extends WP_List_Table {
-
-        function WP_MS_Sites_List_Table() {
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'sites-network',
-                        'plural' =&gt; 'sites',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( ! current_user_can( 'manage_sites' ) )
-                        wp_die( __( 'You do not have permission to access this page.' ) );
-        }
-
-        function prepare_items() {
-                global $s, $mode, $wpdb, $current_site;
-
-                $mode = ( empty( $_REQUEST['mode'] ) ) ? 'list' : $_REQUEST['mode'];
-
-                $per_page = $this-&gt;get_items_per_page( 'sites_network_per_page' );
-
-                $pagenum = $this-&gt;get_pagenum();
-
-                $s = isset( $_REQUEST['s'] ) ? stripslashes( trim( $_REQUEST[ 's' ] ) ) : '';
-                $wild = '';
-                if ( false !== strpos($s, '*') ) {
-                        $wild = '%';
-                        $s = trim($s, '*');
-                }
-
-                $like_s = esc_sql( like_escape( $s ) );
-
-                $large_network = false;
-                // If the network is large and a search is not being performed, show only the latest blogs with no paging in order
-                // to avoid expensive count queries.
-                if ( !$s &amp;&amp; ( get_blog_count() &gt;= 10000 ) ) {
-                        if ( !isset($_REQUEST['orderby']) )
-                                $_GET['orderby'] = $_REQUEST['orderby'] = 'id';
-                        if ( !isset($_REQUEST['order']) )
-                                $_GET['order'] = $_REQUEST['order'] = 'DESC';
-                        $large_network = true;
-                }
-
-                $query = &quot;SELECT * FROM {$wpdb-&gt;blogs} WHERE site_id = '{$wpdb-&gt;siteid}' &quot;;
-
-                if ( empty($s) ) {
-                        // Nothing to do.
-                } elseif ( preg_match('/^[0-9]+\./', $s) ) {
-                        // IP address
-                        $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}$wild' )&quot;;
-                } else {
-                        if ( is_subdomain_install() ) {
-                                $blog_s = str_replace( '.' . $current_site-&gt;domain, '', $like_s );
-                                $blog_s .= $wild . '.' . $current_site-&gt;domain;
-                                $query .= &quot; AND ( {$wpdb-&gt;blogs}.domain LIKE '$blog_s' &quot;;
-                        } else {
-                                if ( $like_s != trim('/', $current_site-&gt;path) )
-                                        $blog_s = $current_site-&gt;path .= $like_s . $wild . '/';
-                                else
-                                        $blog_s = $like_s;
-                                $query .= &quot; AND  ( {$wpdb-&gt;blogs}.path LIKE '$blog_s' &quot;;
-                        }
-
-                        if ( is_numeric($s) )
-                                $query .= &quot; OR {$wpdb-&gt;blogs}.blog_id = '{$like_s}' &quot;;
-
-                        $query .= ' )';
-                }
-
-                $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;
-
-                // Don't do an unbounded count on large networks
-                if ( ! $large_network )
-                        $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 );
-
-                if ( $large_network )
-                        $total = count($this-&gt;items);
-
-                $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_info();
-
-                        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( network_admin_url( 'site-info.php?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( 'site-info.php?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; . __( 'Dashboard' ) . '&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 );
-                                                        echo $this-&gt;row_actions( $actions );
-                                        ?&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( array( 'blog_id' =&gt; $blog['blog_id'], 'number' =&gt; 6) );
-                                                        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 $user_object ) {
-                                                                        echo '&lt;a href=&quot;' . esc_url( admin_url( 'user-edit.php?user_id=' . $user_object-&gt;ID ) ) . '&quot;&gt;' . esc_html( $user_object-&gt;user_login ) . '&lt;/a&gt; ';
-                                                                        if ( 'list' != $mode )
-                                                                                echo '( ' . $user_object-&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
-                }
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpmsthemeslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-ms-themes-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-ms-themes-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-ms-themes-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,298 +0,0 @@
</span><del>-&lt;?php
-/**
- * MS Themes List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_MS_Themes_List_Table extends WP_List_Table {
-
-        function WP_MS_Themes_List_Table() {
-                global $status, $page;
-
-                $default_status = get_user_option( 'themes_last_view' );
-                if ( empty( $default_status ) )
-                        $default_status = 'all';
-                $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : $default_status;
-                if ( !in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search' ) ) )
-                        $status = 'all';
-                if ( $status != $default_status &amp;&amp; 'search' != $status )
-                        update_user_meta( get_current_user_id(), 'themes_last_view', $status );
-
-                $page = $this-&gt;get_pagenum();
-
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'themes',
-                        'plural' =&gt; 'plugins', // @todo replace with themes and add css
-                ) );
-        }
-        
-        function check_permissions() {
-                if ( is_multisite() ) {
-                        $menu_perms = get_site_option( 'menu_items', array() );
-
-                        if ( empty( $menu_perms['themes'] ) ) {
-                                if ( !is_super_admin() )
-                                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
-                        }
-                }
-
-                if ( !current_user_can('manage_network_themes') )
-                        wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) );
-        }
-
-        function prepare_items() {
-                global $status, $themes, $totals, $page, $orderby, $order, $s;
-
-                wp_reset_vars( array( 'orderby', 'order', 's' ) );
-
-                $themes = array(
-                        'all' =&gt; apply_filters( 'all_themes', get_themes() ),
-                        'search' =&gt; array(),
-                        'enabled' =&gt; array(),
-                        'disabled' =&gt; array(),
-                        'upgrade' =&gt; array()
-                );
-
-                $allowed_themes = get_site_allowed_themes();
-                $current = get_site_transient( 'update_themes' );
-
-                foreach ( (array) $themes['all'] as $key =&gt; $theme ) {
-                        if ( array_key_exists( $theme['Template'], $allowed_themes ) ) {
-                                $themes['all'][$key]['enabled'] = true;
-                                $themes['enabled'][$key] = $themes['all'][$key];
-                        }
-                        else {
-                                $themes['all'][$key]['enabled'] = false;
-                                $themes['disabled'][$key] = $themes['all'][$key];
-                        }
-                        if ( isset( $current-&gt;response[ $theme['Template'] ] ) )
-                                $themes['upgrade'][$key] = $themes['all'][$key];
-                }
-
-                if ( !current_user_can( 'update_themes' ) )
-                        $themes['upgrade'] = array();
-
-                if ( $s ) {
-                        $status = 'search';
-                        $themes['search'] = array_filter( $themes['all'], array( &amp;$this, '_search_callback' ) );
-                }
-
-                $totals = array();
-                foreach ( $themes as $type =&gt; $list )
-                        $totals[ $type ] = count( $list );
-
-                if ( empty( $themes[ $status ] ) &amp;&amp; !in_array( $status, array( 'all', 'search' ) ) )
-                        $status = 'all';
-
-                $this-&gt;items = $themes[ $status ];
-                $total_this_page = $totals[ $status ];
-
-                if ( $orderby ) {
-                        $orderby = ucfirst( $orderby );
-                        $order = strtoupper( $order );
-
-                        uasort( $this-&gt;items, array( &amp;$this, '_order_callback' ) );
-                }
-
-                $themes_per_page = $this-&gt;get_items_per_page( 'themes_per_page', 999 );
-
-                $start = ( $page - 1 ) * $themes_per_page;
-
-                if ( $total_this_page &gt; $themes_per_page )
-                        $this-&gt;items = array_slice( $this-&gt;items, $start, $themes_per_page );
-
-                $this-&gt;set_pagination_args( array(
-                        'total_items' =&gt; $total_this_page,
-                        'per_page' =&gt; $themes_per_page,
-                ) );
-        }
-        
-        function _search_callback( $theme ) {
-                static $term;
-                if ( is_null( $term ) )
-                        $term = stripslashes( $_REQUEST['s'] );
-
-                $search_fields = array( 'Name', 'Title', 'Description', 'Author', 'Author Name', 'Author URI', 'Template', 'Stylesheet' );
-                foreach ( $search_fields as $field )
-                        if ( stripos( $theme[ $field ], $term ) !== false )
-                                return true;
-
-                return false;
-        }
-
-        function _order_callback( $theme_a, $theme_b ) {
-                global $orderby, $order;
-
-                $a = $theme_a[$orderby];
-                $b = $theme_b[$orderby];
-
-                if ( $a == $b )
-                        return 0;
-
-                if ( 'DESC' == $order )
-                        return ( $a &lt; $b ) ? 1 : -1;
-                else
-                        return ( $a &lt; $b ) ? -1 : 1;
-        }
-
-        function no_items() {
-                global $themes;
-
-                if ( !empty( $themes['all'] ) )
-                        _e( 'No themes found.' );
-                else
-                        _e( 'You do not appear to have any themes available at this time.' );
-        }
-
-        function get_columns() {
-                global $status;
-
-                return array(
-                        'cb'          =&gt; '&lt;input type=&quot;checkbox&quot; /&gt;',
-                        'name'        =&gt; __( 'Theme' ),
-                        'description' =&gt; __( 'Description' ),
-                );
-        }
-
-        function get_sortable_columns() {
-                return array(
-                        'name'         =&gt; 'name',
-                );
-        }
-
-        function get_views() {
-                global $totals, $status;
-
-                $status_links = array();
-                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, 'themes' );
-                                        break;
-                                case 'enabled':
-                                        $text = _n( 'Enabled &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Enabled &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $count );
-                                        break;
-                                case 'disabled':
-                                        $text = _n( 'Disabled &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Disabled &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[$type] = sprintf( &quot;&lt;li&gt;&lt;a href='%s' %s&gt;%s&lt;/a&gt;&quot;,
-                                add_query_arg('theme_status', $type, 'themes.php'),
-                                ( $type == $status ) ? ' class=&quot;current&quot;' : '',
-                                sprintf( $text, number_format_i18n( $count ) )
-                        );
-                }
-
-                return $status_links;
-        }
-
-        function get_bulk_actions() {
-                global $status;
-
-                $actions = array();
-                if ( 'enabled' != $status )
-                        $actions['network-enable-selected'] = __( 'Enable' );
-                if ( 'disabled' != $status )
-                        $actions['network-disable-selected'] = __( 'Disable' );
-                if ( current_user_can( 'update_themes' ) )
-                        $actions['update-selected'] = __( 'Update' );
-                        
-                return $actions;
-        }
-
-        function bulk_actions( $which ) {
-                global $status;
-                parent::bulk_actions( $which );
-        }
-
-        function current_action() {
-                return parent::current_action();
-        }
-
-        function display_rows() {
-                global $status, $page, $s;
-
-                $context = $status;
-
-                foreach ( $this-&gt;items as $key =&gt; $theme ) {
-                        // preorder
-                        $actions = array(
-                                'network_enable' =&gt; '',
-                                'network_disable' =&gt; '',
-                                'edit' =&gt; ''
-                        );
-                        
-                        $theme_key = esc_html( $theme['Stylesheet'] );
-
-                        if ( empty( $theme['enabled'] ) ) {
-                                if ( current_user_can( 'manage_network_themes' ) )
-                                        $actions['network_enable'] = '&lt;a href=&quot;' . wp_nonce_url('themes.php?action=network-enable&amp;amp;theme=' . $theme_key . '&amp;amp;paged=' . $page . '&amp;amp;s=' . $s, 'enable-theme_' . $theme_key) . '&quot; title=&quot;' . __('Enable this theme for all sites in this network') . '&quot; class=&quot;edit&quot;&gt;' . __('Enable') . '&lt;/a&gt;';
-                        } else {
-                                if ( current_user_can( 'manage_network_themes' ) )
-                                        $actions['network_disable'] = '&lt;a href=&quot;' . wp_nonce_url('themes.php?action=network-disable&amp;amp;theme=' . $theme_key . '&amp;amp;paged=' . $page . '&amp;amp;s=' . $s, 'disable-theme_' . $theme_key) . '&quot; title=&quot;' . __('Disable this theme') . '&quot;&gt;' . __('Disable') . '&lt;/a&gt;';
-                        }
-                        
-                        if ( current_user_can('edit_themes') )
-                                $actions['edit'] = '&lt;a href=&quot;theme-editor.php?theme=' . $theme['Name'] . '&quot; title=&quot;' . __('Open this theme in the Theme Editor') . '&quot; class=&quot;edit&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
-
-                        $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme_key, $theme, $context );
-                        $actions = apply_filters( &quot;theme_action_links_$theme_key&quot;, $actions, $theme_key, $theme, $context );
-
-                        $class = empty( $theme['enabled'] ) ? 'inactive' : 'active';
-                        $checkbox = &quot;&lt;input type='checkbox' name='checked[]' value='&quot; . esc_attr( $theme_key ) . &quot;' /&gt;&quot;;
-
-                        $description = '&lt;p&gt;' . $theme['Description'] . '&lt;/p&gt;';
-                        $theme_name = $theme['Name'];
-
-
-                        $id = sanitize_title( $theme_name );
-
-                        echo &quot;
-                &lt;tr id='$id' class='$class'&gt;
-                        &lt;th scope='row' class='check-column'&gt;$checkbox&lt;/th&gt;
-                        &lt;td class='theme-title'&gt;&lt;strong&gt;$theme_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='theme-title'&gt;&quot;;
-
-                        echo $this-&gt;row_actions( $actions, true );
-
-                        echo &quot;&lt;/td&gt;
-                        &lt;td class='desc'&gt;&quot;;
-                        $theme_meta = array();
-                        if ( !empty( $theme['Version'] ) )
-                                $theme_meta[] = sprintf( __( 'Version %s' ), $theme['Version'] );
-                        if ( !empty( $theme['Author'] ) ) {
-                                $author = $theme['Author'];
-                                if ( !empty( $theme['Author URI'] ) )
-                                        $author = '&lt;a href=&quot;' . $theme['Author URI'] . '&quot; title=&quot;' . __( 'Visit author homepage' ) . '&quot;&gt;' . $theme['Author'] . '&lt;/a&gt;';
-                                $theme_meta[] = sprintf( __( 'By %s' ), $author );
-                        }
-                        if ( !empty( $theme['Theme URI'] ) )
-                                $theme_meta[] = '&lt;a href=&quot;' . $theme['Theme URI'] . '&quot; title=&quot;' . __( 'Visit theme homepage' ) . '&quot;&gt;' . __( 'Visit Theme Site' ) . '&lt;/a&gt;';
-
-                        $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $theme_key, $theme, $status );
-                        echo implode( ' | ', $theme_meta );
-                        echo &quot;&lt;/td&gt;
-                &lt;/tr&gt;\n&quot;;
-
-                        do_action( 'after_theme_row', $theme_key, $theme, $status );
-                        do_action( &quot;after_theme_row_$theme_key&quot;, $theme_key, $theme, $status );
-                }
-        }
-}
-?&gt;
</del></span></pre></div>
<a id="trunkwpadminincludesclasswpmsuserslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-ms-users-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-ms-users-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-ms-users-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,237 +0,0 @@
</span><del>-&lt;?php
-/**
- * Multisite Users List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_MS_Users_List_Table extends WP_List_Table {
-
-        function WP_MS_Users_List_Table() {
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'users-network',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( !is_multisite() )
-                        wp_die( __( 'Multisite support is not enabled.' ) );
-
-                if ( ! current_user_can( 'manage_network_users' ) )
-                        wp_die( __( 'You do not have permission to access this page.' ) );
-        }
-
-        function prepare_items() {
-                global $usersearch;
-
-                $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
-
-                $users_per_page = $this-&gt;get_items_per_page( 'users_network_per_page' );
-
-                $paged = $this-&gt;get_pagenum();
-
-                $args = array(
-                        'number' =&gt; $users_per_page,
-                        'offset' =&gt; ( $paged-1 ) * $users_per_page,
-                        'search' =&gt; $usersearch,
-                        'blog_id' =&gt; 0
-                );
-
-                // If the network is large and a search is not being performed, show only the latest users with no paging in order
-                // to avoid expensive count queries.
-                if ( !$usersearch &amp;&amp; ( get_blog_count() &gt;= 10000 ) ) {
-                        if ( !isset($_REQUEST['orderby']) )
-                                $_GET['orderby'] = $_REQUEST['orderby'] = 'id';
-                        if ( !isset($_REQUEST['order']) )
-                                $_GET['order'] = $_REQUEST['order'] = 'DESC';
-                        $args['count_total'] = false;
-                }
-
-                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 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-&gt;$status )
-                                        $class = $col;
-                        }
-
-                        ?&gt;
-                        &lt;tr class=&quot;&lt;?php echo $class; ?&gt;&quot;&gt;
-                        &lt;?php
-
-                        list( $columns, $hidden ) = $this-&gt;get_column_info();
-
-                        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-&gt;ID ?&gt;&quot; name=&quot;allusers[]&quot; value=&quot;&lt;?php echo esc_attr( $user-&gt;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-&gt;ID ?&gt;
-                                                &lt;/th&gt;
-                                        &lt;?php
-                                        break;
-
-                                        case 'login':
-                                                $avatar        = get_avatar( $user-&gt;user_email, 32 );
-                                                $edit_link = ( get_current_user_id() == $user-&gt;ID ) ? 'profile.php' : 'user-edit.php?user_id=' . $user-&gt;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( self_admin_url( $edit_link ) ); ?&gt;&quot; class=&quot;edit&quot;&gt;&lt;?php echo stripslashes( $user-&gt;user_login ); ?&gt;&lt;/a&gt;&lt;?php
-                                                        if ( in_array( $user-&gt;user_login, $super_admins ) )
-                                                                echo ' - ' . __( 'Super admin' );
-                                                        ?&gt;&lt;/strong&gt;
-                                                        &lt;br/&gt;
-                                                        &lt;?php
-                                                                $actions = array();
-                                                                $actions['edit'] = '&lt;a href=&quot;' . esc_url( self_admin_url( $edit_link ) ) . '&quot;&gt;' . __( 'Edit' ) . '&lt;/a&gt;';
-
-                                                                if ( ! in_array( $user-&gt;user_login, $super_admins ) ) {
-                                                                        $actions['delete'] = '&lt;a href=&quot;' . $delete = esc_url( network_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-&gt;ID ) ) ) . '&quot; class=&quot;delete&quot;&gt;' . __( 'Delete' ) . '&lt;/a&gt;';
-                                                                }
-
-                                                                echo $this-&gt;row_actions( $actions );
-                                                        ?&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-&gt;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-&gt;user_email ?&gt;&quot;&gt;&lt;?php echo $user-&gt;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-&gt;user_registered ); ?&gt;&lt;/td&gt;
-                                        &lt;?php
-                                        break;
-
-                                        case 'blogs':
-                                                $blogs = get_blogs_of_user( $user-&gt;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( 'site-info.php?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( 'site-info.php?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-&gt;ID ); ?&gt;&lt;/td&gt;
-                                        &lt;?php
-                                        break;
-                                }
-                        endforeach
-                        ?&gt;
-                        &lt;/tr&gt;
-                        &lt;?php
-                }
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpplugininstalllisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-plugin-install-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-plugin-install-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-plugin-install-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,234 +0,0 @@
</span><del>-&lt;?php
-/**
- * Plugin Installer List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Plugin_Install_List_Table extends WP_List_Table {
-
-        function WP_Plugin_Install_List_Table() {
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'plugin-install',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( ! current_user_can('install_plugins') )
-                        wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
-        }
-
-        function prepare_items() {
-                include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
-
-                global $tabs, $tab, $paged, $type, $term;
-
-                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 get_views() {
-                global $tabs, $tab;
-
-                $display_tabs = array();
-                foreach ( (array) $tabs as $action =&gt; $text ) {
-                        $class = ( $action == $tab ) ? ' class=&quot;current&quot;' : '';
-                        $href = admin_url('plugin-install.php?tab=' . $action);
-                        $display_tabs[$action] = &quot;&lt;a href='$href'$class&gt;$text&lt;/a&gt;&quot;;
-                }
-
-                return $display_tabs;
-        }
-
-        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
-                }
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswppluginslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-plugins-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-plugins-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-plugins-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,426 +0,0 @@
</span><del>-&lt;?php
-/**
- * Plugins List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Plugins_List_Table extends WP_List_Table {
-
-        function WP_Plugins_List_Table() {
-                global $status, $page;
-
-                $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();
-
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'plugins',
-                        'plural' =&gt; 'plugins',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( is_multisite() ) {
-                        $menu_perms = get_site_option( 'menu_items', array() );
-
-                        if ( empty( $menu_perms['plugins'] ) ) {
-                                if ( !is_super_admin() )
-                                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
-                        }
-                }
-
-                if ( !current_user_can('activate_plugins') )
-                        wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
-        }
-
-        function prepare_items() {
-                global $status, $plugins, $totals, $page, $orderby, $order, $s;
-
-                wp_reset_vars( array( 'orderby', 'order', 's' ) );
-
-                $plugins = array(
-                        'all' =&gt; apply_filters( 'all_plugins', get_plugins() ),
-                        'search' =&gt; array(),
-                        'active' =&gt; array(),
-                        'inactive' =&gt; array(),
-                        'recently_activated' =&gt; 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 );
-
-                $recently_activated = get_option( 'recently_activated', array() );
-
-                $one_week = 7*24*60*60;
-                foreach ( $recently_activated as $key =&gt; $time )
-                        if ( $time + $one_week &lt; time() )
-                                unset( $recently_activated[$key] );
-                update_option( 'recently_activated', $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_network_admin() &amp;&amp; is_plugin_active( $plugin_file ) )
-                                || ( is_network_admin() &amp;&amp; is_plugin_active_for_network( $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['recently_activated'][ $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 ) {
-                        $status = 'search';
-                        $plugins['search'] = array_filter( $plugins['all'], array( &amp;$this, '_search_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 );
-
-                        uasort( $this-&gt;items, array( &amp;$this, '_order_callback' ) );
-                }
-
-                $plugins_per_page = $this-&gt;get_items_per_page( 'plugins_per_page', 999 );
-
-                $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 _search_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;
-        }
-
-        function _order_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;
-        }
-
-        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',
-                );
-        }
-
-        function display_tablenav( $which ) {
-                global $status;
-
-                if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )
-                        parent::display_tablenav( $which );
-        }
-
-        function get_views() {
-                global $totals, $status;
-
-                $status_links = array();
-                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[$type] = 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 ) )
-                        );
-                }
-
-                return $status_links;
-        }
-
-        function get_bulk_actions() {
-                global $status;
-
-                $actions = array();
-
-                if ( 'active' != $status ) {
-                        $action = is_network_admin() ? 'network-activate-selected' : 'activate-selected'; 
-                        $actions[ $action ] = __( 'Activate' );
-                }
-
-                if ( 'inactive' != $status &amp;&amp; 'recent' != $status )
-                        $actions['deactivate-selected'] = __( 'Deactivate' );
-
-                if ( !is_multisite() || is_network_admin() ) {
-                        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;?php submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false ); ?&gt;
-                        &lt;/div&gt;
-                &lt;?php }
-        }
-
-        function current_action() {
-                if ( isset($_POST['clear-recent-list']) )
-                        return 'clear-recent-list';
-
-                return parent::current_action();
-        }
-
-        function display_rows() {
-                global $status, $page, $s;
-
-                $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 . '&amp;amp;s=' . $s, '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 . '&amp;amp;s=' . $s, '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 . '&amp;amp;s=' . $s, 'bulk-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 . '&amp;amp;s=' . $s, '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 . '&amp;amp;s=' . $s, 'activate-plugin_' . $plugin_file) . '&quot; title=&quot;' . __('Activate this plugin') . '&quot; class=&quot;edit&quot;&gt;' . __('Activate') . '&lt;/a&gt;';
-
-                                                if ( ! is_multisite() &amp;&amp; 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 . '&amp;amp;s=' . $s, 'bulk-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'];
-                        }
-
-                        $id = sanitize_title( $plugin_name );
-
-                        echo &quot;
-                &lt;tr id='$id' 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 $this-&gt;row_actions( $actions, true );
-
-                        echo &quot;&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 );
-                }
-        }
-}
-
-?&gt;
</del></span></pre></div>
<a id="trunkwpadminincludesclasswppostslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-posts-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-posts-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-posts-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,1003 +0,0 @@
</span><del>-&lt;?php
-/**
- * Posts List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Posts_List_Table extends WP_List_Table {
-
-        /**
-         * Whether the items should be displayed hierarchically or linearly
-         *
-         * @since 3.1.0
-         * @var bool
-         * @access protected
-         */
-        var $hierarchical_display;
-
-        /**
-         * Holds the number of pending comments for each post
-         *
-         * @since 3.1.0
-         * @var int
-         * @access protected
-         */
-        var $comment_pending_count;
-
-        /**
-         * Holds the number of posts for this user
-         *
-         * @since 3.1.0
-         * @var int
-         * @access private
-         */
-        var $user_posts_count;
-
-        /**
-         * Holds the number of posts which are sticky.
-         *
-         * @since 3.1.0
-         * @var int
-         * @access private
-         */
-        var $sticky_posts_count = 0;
-
-        function WP_Posts_List_Table() {
-                global $post_type_object, $post_type, $current_screen, $wpdb;
-
-                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_others_posts ) ) {
-                        $this-&gt;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 ( $this-&gt;user_posts_count &amp;&amp; empty( $_REQUEST['post_status'] ) &amp;&amp; empty( $_REQUEST['all_posts'] ) &amp;&amp; empty( $_REQUEST['author'] ) &amp;&amp; empty( $_REQUEST['show_sticky'] ) )
-                                $_GET['author'] = get_current_user_id();
-                }
-
-                if ( $sticky_posts = get_option( 'sticky_posts' ) ) {
-                        $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) );
-                        $this-&gt;sticky_posts_count = $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT COUNT( 1 ) FROM $wpdb-&gt;posts WHERE post_type = %s AND ID IN ($sticky_posts)&quot;, $post_type ) );
-                }
-
-                parent::WP_List_Table( array(
-                        'screen' =&gt; $current_screen,
-                        'plural' =&gt; 'posts',
-                ) );
-        }
-
-        function check_permissions() {
-                global $post_type_object;
-
-                if ( !current_user_can( $post_type_object-&gt;cap-&gt;edit_posts ) )
-                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
-        }
-
-        function prepare_items() {
-                global $post_type_object, $post_type, $avail_post_stati, $wp_query, $per_page, $mode;
-
-                $avail_post_stati = wp_edit_posts_query();
-
-                $this-&gt;hierarchical_display = ( $post_type_object-&gt;hierarchical &amp;&amp; 'menu_order title' == $wp_query-&gt;query['orderby'] );
-
-                $total_items = $this-&gt;hierarchical_display ? $wp_query-&gt;post_count : $wp_query-&gt;found_posts;
-
-                $per_page = $this-&gt;get_items_per_page( 'edit_' . $post_type . '_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_views() {
-                global $post_type, $post_type_object, $locked_post_status, $avail_post_stati;
-
-                if ( !empty($locked_post_status) )
-                        return array();
-
-                $status_links = array();
-                $num_posts = wp_count_posts( $post_type, 'readable' );
-                $class = '';
-                $allposts = '';
-
-                $current_user_id = get_current_user_id();
-
-                if ( $this-&gt;user_posts_count ) {
-                        if ( isset( $_GET['author'] ) &amp;&amp; ( $_GET['author'] == $current_user_id ) )
-                                $class = ' class=&quot;current&quot;';
-                        $status_links['mine'] = &quot;&lt;li&gt;&lt;a href='edit.php?post_type=$post_type&amp;author=$current_user_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;', $this-&gt;user_posts_count, 'posts' ), number_format_i18n( $this-&gt;user_posts_count ) ) . '&lt;/a&gt;';
-                        $allposts = '&amp;all_posts=1';
-                }
-
-                $total_posts = array_sum( (array) $num_posts );
-
-                // Subtract post types that are not included in the admin all list.
-                foreach ( get_post_stati( array('show_in_admin_all_list' =&gt; false) ) as $state )
-                        $total_posts -= $num_posts-&gt;$state;
-
-                $class = empty( $class ) &amp;&amp; empty( $_REQUEST['post_status'] ) &amp;&amp; empty( $_REQUEST['show_sticky'] ) ? ' class=&quot;current&quot;' : '';
-                $status_links['all'] = &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;';
-
-                foreach ( get_post_stati(array('show_in_admin_status_list' =&gt; true), 'objects') as $status ) {
-                        $class = '';
-
-                        $status_name = $status-&gt;name;
-
-                        if ( !in_array( $status_name, $avail_post_stati ) )
-                                continue;
-
-                        if ( empty( $num_posts-&gt;$status_name ) )
-                                continue;
-
-                        if ( isset($_REQUEST['post_status']) &amp;&amp; $status_name == $_REQUEST['post_status'] )
-                                $class = ' class=&quot;current&quot;';
-
-                        $status_links[$status_name] = &quot;&lt;li&gt;&lt;a href='edit.php?post_status=$status_name&amp;amp;post_type=$post_type'$class&gt;&quot; . sprintf( translate_nooped_plural( $status-&gt;label_count, $num_posts-&gt;$status_name ), number_format_i18n( $num_posts-&gt;$status_name ) ) . '&lt;/a&gt;';
-                }
-
-                if ( ! empty( $this-&gt;sticky_posts_count ) ) {
-                        $class = ! empty( $_REQUEST['show_sticky'] ) ? ' class=&quot;current&quot;' : '';
-
-                        $sticky_link = array( 'sticky' =&gt; &quot;&lt;li&gt;&lt;a href='edit.php?post_type=$post_type&amp;amp;show_sticky=1'$class&gt;&quot; . sprintf( _nx( 'Sticky &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'Sticky &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', $this-&gt;sticky_posts_count, 'posts' ), number_format_i18n( $this-&gt;sticky_posts_count ) ) . '&lt;/a&gt;' );
-
-                        // Sticky comes after Publish, or if not listed, after All.
-                        $split = 1 + array_search( ( isset( $status_links['publish'] ) ? 'publish' : 'all' ), array_keys( $status_links ) );
-                        $status_links = array_merge( array_slice( $status_links, 0, $split ), $sticky_link, array_slice( $status_links, $split ) );
-                }
-
-                return $status_links;
-        }
-
-        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' );
-                        submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
-?&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 ) ) {
-                        submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
-                }
-        }
-
-        function current_action() {
-                if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) )
-                        return 'delete_all';
-
-                return parent::current_action();
-        }
-
-        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;' . esc_attr__( '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;
-
-                $this-&gt;comment_pending_count = get_pending_comments_num( $post_ids );
-
-                foreach ( $posts as $post )
-                        $this-&gt;single_row( $post );
-        }
-
-        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( $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( $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( $my_parent, $level - $num_parents );
-                                        $num_parents--;
-                                }
-                        }
-
-                        if ( $count &gt;= $start )
-                                echo &quot;\t&quot; . $this-&gt;single_row( $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
-        }
-
-        function single_row( $a_post, $level = 0 ) {
-                global $post, $current_screen, $mode;
-                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 );
-                $can_edit_post = current_user_can( 'edit_post', $post-&gt;ID );
-        ?&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_info();
-
-                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 ( $can_edit_post ) { ?&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 'title':
-                                if ( $this-&gt;hierarchical_display ) {
-                                        $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
-
-                                        if ( 0 == $level &amp;&amp; (int) $post-&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) $post-&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;
-                                                }
-                                        }
-
-                                        $post-&gt;post_title = esc_html( $post-&gt;post_title );
-                                        $pad = str_repeat( '&amp;#8212; ', $level );
-?&gt;
-                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( $can_edit_post &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( $post ); echo isset( $parent_name ) ? ' | ' . $post_type_object-&gt;labels-&gt;parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?&gt;&lt;/strong&gt;
-&lt;?php
-                                }
-                                else {
-                                        $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
-?&gt;
-                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( $can_edit_post &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 ( $can_edit_post &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 ( $can_edit_post )
-                                                $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( $this-&gt;hierarchical_display ? 'page_row_actions' : 'post_row_actions', $actions, $post );
-                                echo $this-&gt;row_actions( $actions );
-
-                                get_inline_data( $post );
-                                echo '&lt;/td&gt;';
-                        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 '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[] = sprintf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;',
-                                                        esc_url( add_query_arg( array( 'post_type' =&gt; $post-&gt;post_type, 'category_name' =&gt; $c-&gt;slug ), 'edit.php' ) ),
-                                                        esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'category', 'display' ) )
-                                                );
-                                        }
-                                        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[] = sprintf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;',
-                                                        esc_url( add_query_arg( array( 'post_type' =&gt; $post-&gt;post_type, 'tag' =&gt; $c-&gt;slug ), 'edit.php' ) ),
-                                                        esc_html( sanitize_term_field( 'name', $c-&gt;name, $c-&gt;term_id, 'tag', 'display' ) )
-                                                );
-                                        }
-                                        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_comments = isset( $this-&gt;comment_pending_count[$post-&gt;ID] ) ? $this-&gt;comment_pending_count[$post-&gt;ID] : 0;
-
-                                $this-&gt;comments_bubble( $post-&gt;ID, $pending_comments );
-                        ?&gt;
-                        &lt;/div&gt;&lt;/td&gt;
-                        &lt;?php
-                        break;
-
-                        case 'author':
-                        ?&gt;
-                        &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
-                                printf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;',
-                                        esc_url( add_query_arg( array( 'post_type' =&gt; $post-&gt;post_type, 'author' =&gt; get_the_author_meta( 'ID' ) ), 'edit.php' )),
-                                        get_the_author()
-                                );
-                        ?&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.0
-         */
-        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_info();
-
-                $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_dropdown = '';
-
-                        if ( is_super_admin() || current_user_can( $post_type_object-&gt;cap-&gt;edit_others_posts ) ) :
-                                $users_opt = array(
-                                        '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_type_supports( $screen-&gt;post_type, 'sticky' ) &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 sticky' ); ?&gt;&lt;/span&gt;
-                                &lt;/label&gt;
-
-        &lt;?php        endif; // $bulk ?&gt;
-
-        &lt;?php endif; // post_type_supports(sticky) &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 {
-                                submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false, array( 'accesskey' =&gt; 's' ) );
-                        } ?&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
-        }
-}
-
-?&gt;
</del></span></pre></div>
<a id="trunkwpadminincludesclasswptermslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-terms-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-terms-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-terms-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,365 +0,0 @@
</span><del>-&lt;?php
-/**
- * Terms List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Terms_List_Table extends WP_List_Table {
-
-        var $callback_args;
-
-        function WP_Terms_List_Table() {
-                global $post_type, $taxonomy, $tax, $current_screen;
-
-                wp_reset_vars( array( 'action', 'taxonomy', 'post_type' ) );
-
-                if ( empty( $taxonomy ) )
-                        $taxonomy = 'post_tag';
-
-                if ( !taxonomy_exists( $taxonomy ) )
-                        wp_die( __( 'Invalid taxonomy' ) );
-
-                $tax = get_taxonomy( $taxonomy );
-
-                if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'public' =&gt; true ) ) ) )
-                        $post_type = 'post';
-
-                if ( !isset( $current_screen ) )
-                        set_current_screen( 'edit-' . $taxonomy );
-
-                parent::WP_List_Table( array(
-                        'screen' =&gt; $current_screen,
-                        'plural' =&gt; 'tags',
-                        'singular' =&gt; 'tag',
-                ) );
-        }
-
-        function check_permissions( $type = 'manage' ) {
-                global $tax;
-
-                $cap = 'manage' == $type ? $tax-&gt;cap-&gt;manage_terms : $tax-&gt;cap-&gt;edit_terms;
-
-                if ( !current_user_can( $tax-&gt;cap-&gt;manage_terms ) )
-                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
-        }
-
-        function prepare_items() {
-                global $taxonomy;
-
-                $tags_per_page = $this-&gt;get_items_per_page( 'edit_' .  $taxonomy . '_per_page' );
-
-                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
-                }
-
-                $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 current_action() {
-                if ( isset( $_REQUEST['action'] ) &amp;&amp; isset( $_REQUEST['delete_tags'] ) &amp;&amp; ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) )
-                        return 'bulk-delete';
-
-                return parent::current_action();
-        }
-
-        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 = 0 ) {
-                static $row_class = '';
-                $row_class = ( $row_class == '' ? ' class=&quot;alternate&quot;' : '' );
-
-                $this-&gt;level = $level;
-
-                echo '&lt;tr id=&quot;tag-' . $tag-&gt;term_id . '&quot;' . $row_class . '&gt;';
-                echo $this-&gt;single_row_columns( $tag );
-                echo '&lt;/tr&gt;';
-        }
-
-        function column_cb( $tag ) {
-                global $taxonomy, $tax;
-
-                $default_term = get_option( 'default_' . $taxonomy );
-
-                if ( current_user_can( $tax-&gt;cap-&gt;delete_terms ) &amp;&amp; $tag-&gt;term_id != $default_term )
-                        return '&lt;input type=&quot;checkbox&quot; name=&quot;delete_tags[]&quot; value=&quot;' . $tag-&gt;term_id . '&quot; /&gt;';
-                else
-                        return '&amp;nbsp;';
-        }
-
-        function column_name( $tag ) {
-                global $taxonomy, $tax, $post_type;
-
-                $default_term = get_option( 'default_' . $taxonomy );
-
-                $pad = str_repeat( '&amp;#8212; ', max( 0, $this-&gt;level ) );
-                $name = apply_filters( 'term_name', $pad . ' ' . $tag-&gt;name, $tag );
-                $qe_data = get_term( $tag-&gt;term_id, $taxonomy, OBJECT, 'edit' );
-                $edit_link = get_edit_term_link( $tag-&gt;term_id, $taxonomy, $post_type );
-
-                $out = '&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 );
-
-                $out .= $this-&gt;row_actions( $actions );
-                $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;';
-
-                return $out;
-        }
-
-        function column_description( $tag ) {
-                return $tag-&gt;description;
-        }
-
-        function column_slug( $tag ) {
-                return apply_filters( 'editable_slug', $tag-&gt;slug );
-        }
-
-        function column_posts( $tag ) {
-                global $taxonomy, $post_type;
-
-                $count = number_format_i18n( $tag-&gt;count );
-
-                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;
-                }
-
-                return &quot;&lt;a href='edit.php?$tagsel=$tag-&gt;slug&amp;amp;post_type=$post_type'&gt;$count&lt;/a&gt;&quot;;
-        }
-
-        function column_links( $tag ) {
-                $count = number_format_i18n( $tag-&gt;count );
-                return $count;
-        }
-
-        function column_default( $tag, $column_name ) {
-                global $taxonomy;
-
-                return apply_filters( &quot;manage_${taxonomy}_custom_column&quot;, '', $column_name, $tag-&gt;term_id );
-                $out .= &quot;&lt;/td&gt;&quot;;
-        }
-
-        /**
-         * Outputs the hidden row displayed when inline editing
-         *
-         * @since 3.1.0
-         */
-        function inline_edit() {
-                global $tax;
-
-                if ( ! current_user_can( $tax-&gt;cap-&gt;edit_terms ) )
-                        return;
-
-                list( $columns, $hidden ) = $this-&gt;get_column_info();
-
-                $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 ( !global_terms_enabled() ) { ?&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
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpthemeinstalllisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-theme-install-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-theme-install-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-theme-install-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,187 +0,0 @@
</span><del>-&lt;?php
-/**
- * Theme Installer List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Theme_Install_List_Table extends WP_List_Table {
-
-        function WP_Theme_Install_List_Table() {
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'theme-install',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( ! current_user_can('install_themes') )
-                        wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
-        }
-
-        function prepare_items() {
-                include( ABSPATH . 'wp-admin/includes/theme-install.php' );
-
-                global $tabs, $tab, $paged, $type, $term, $theme_field_defaults;
-
-                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_views() {
-                global $tabs, $tab;
-
-                $display_tabs = array();
-                foreach ( (array) $tabs as $action =&gt; $text ) {
-                        $class = ( $action == $tab ) ? ' class=&quot;current&quot;' : '';
-                        $href = self_admin_url('theme-install.php?tab=' . $action);
-                        $display_tabs[$action] = &quot;&lt;a href='$href'$class&gt;$text&lt;/a&gt;&quot;;
-                }
-
-                return $display_tabs;
-        }
-
-        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
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpthemeslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-themes-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-themes-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-themes-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,219 +0,0 @@
</span><del>-&lt;?php
-/**
- * Themes List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Themes_List_Table extends WP_List_Table {
-
-        var $search = array();
-        var $features = array();
-
-        function WP_Themes_List_Table() {
-                parent::__construct( array(
-                        'screen' =&gt; 'themes',
-                ) );
-        }
-
-        function check_permissions() {
-                if ( !current_user_can('switch_themes') &amp;&amp; !current_user_can('edit_theme_options') )
-                        wp_die( __( 'Cheatin&amp;#8217; uh?' ) );
-        }
-
-        function prepare_items() {
-                global $ct;
-
-                $ct = current_theme_info();
-
-                $themes = get_allowed_themes();
-
-                $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : '';
-
-                if ( '' !== $search ) {
-                        $this-&gt;search = array_merge( $this-&gt;search, array_filter( array_map( 'trim', explode( ',', $search ) ) ) );
-                        $this-&gt;search = array_unique( $this-&gt;search );
-                }
-
-                if ( !empty( $_REQUEST['features'] ) ) {
-                        $this-&gt;features = $_REQUEST['features'];
-                        $this-&gt;features = array_map( 'trim', $this-&gt;features );
-                        $this-&gt;features = array_map( 'sanitize_title_with_dashes', $this-&gt;features );
-                        $this-&gt;features = array_unique( $this-&gt;features );
-                }
-
-                if ( $this-&gt;search || $this-&gt;features ) {
-                        foreach ( $themes as $key =&gt; $theme ) {
-                                if ( !$this-&gt;search_theme( $theme ) )
-                                        unset( $themes[ $key ] );
-                        }
-                }
-
-                unset( $themes[$ct-&gt;name] );
-                uksort( $themes, &quot;strnatcasecmp&quot; );
-
-                $per_page = 15;
-                $page = $this-&gt;get_pagenum();
-
-                $start = ( $page - 1 ) * $per_page;
-
-                $this-&gt;items = array_slice( $themes, $start, $per_page );
-
-                $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
-        }
-
-        function search_theme( $theme ) {
-                $matched = 0;
-
-                // Match all phrases
-                if ( count( $this-&gt;search ) &gt; 0 ) {
-                        foreach ( $this-&gt;search as $word ) {
-                                $matched = 0;
-
-                                // In a tag?
-                                if ( in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
-                                        $matched = 1;
-
-                                // In one of the fields?
-                                foreach ( array( 'Name', 'Title', 'Description', 'Author', 'Template', 'Stylesheet' ) AS $field ) {
-                                        if ( stripos( $theme[$field], $word ) !== false )
-                                                $matched++;
-                                }
-
-                                if ( $matched == 0 )
-                                        return false;
-                        }
-                }
-
-                // Now search the features
-                if ( count( $this-&gt;features ) &gt; 0 ) {
-                        foreach ( $this-&gt;features as $word ) {
-                                // In a tag?
-                                if ( !in_array( $word, array_map( 'sanitize_title_with_dashes', $theme['Tags'] ) ) )
-                                        return false;
-                        }
-                }
-
-                // Only get here if each word exists in the tags or one of the fields
-                return true;
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpuserslisttablephp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/includes/class-wp-users-list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-users-list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/class-wp-users-list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -1,278 +0,0 @@
</span><del>-&lt;?php
-/**
- * Users List Table class.
- *
- * @package WordPress
- * @subpackage List_Table
- * @since 3.1.0
- */
-class WP_Users_List_Table extends WP_List_Table {
-
-        function WP_Users_List_Table() {
-                parent::WP_List_Table( array(
-                        'screen' =&gt; 'users',
-                        'plural' =&gt; 'users'
-                ) );
-        }
-
-        function check_permissions() {
-                if ( !current_user_can('list_users') )
-                        wp_die(__('Cheatin&amp;#8217; uh?'));
-        }
-
-        function prepare_items() {
-                global $role, $usersearch;
-
-                $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
-
-                $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';
-
-                $users_per_page = $this-&gt;get_items_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_views() {
-                global $wp_roles, $role;
-
-                $users_of_blog = count_users();
-                $total_users = $users_of_blog['total_users'];
-                $avail_roles =&amp; $users_of_blog['avail_roles'];
-                unset($users_of_blog);
-
-                $current_role = false;
-                $class = empty($role) ? ' class=&quot;current&quot;' : '';
-                $role_links = array();
-                $role_links['all'] = &quot;&lt;li&gt;&lt;a href='users.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_users, 'users' ), number_format_i18n( $total_users ) ) . '&lt;/a&gt;';
-                foreach ( $wp_roles-&gt;get_names() as $this_role =&gt; $name ) {
-                        if ( !isset($avail_roles[$this_role]) )
-                                continue;
-
-                        $class = '';
-
-                        if ( $this_role == $role ) {
-                                $current_role = $role;
-                                $class = ' class=&quot;current&quot;';
-                        }
-
-                        $name = translate_user_role( $name );
-                        /* translators: User role name with count */
-                        $name = sprintf( __('%1$s &lt;span class=&quot;count&quot;&gt;(%2$s)&lt;/span&gt;'), $name, $avail_roles[$this_role] );
-                        $role_links[$this_role] = &quot;&lt;li&gt;&lt;a href='users.php?role=$this_role'$class&gt;$name&lt;/a&gt;&quot;;
-                }
-
-                return $role_links;
-        }
-
-        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;?php submit_button( __( 'Change' ), 'secondary', 'changeit', false ); ?&gt;
-        &lt;/div&gt;
-&lt;?php
-        }
-
-        function current_action() {
-                if ( isset($_REQUEST['changeit']) &amp;&amp; !empty($_REQUEST['new_role']) )
-                        return 'promote';
-
-                return parent::current_action();
-        }
-
-        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 ) {
-                        $role = reset( $user_object-&gt;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 );
-                        $edit .= $this-&gt;row_actions( $actions );
-
-                        // 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_info();
-
-                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;
-        }
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminincludeslisttablephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/list-table.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/list-table.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/list-table.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -38,25 +38,25 @@
</span><span class="cx"> function require_list_table( $class ) {
</span><span class="cx">         $core_classes = array(
</span><span class="cx">                 //Site Admin
</span><del>-                'WP_Posts_List_Table' =&gt; 'posts',
-                'WP_Media_List_Table' =&gt; 'media',
-                'WP_Terms_List_Table' =&gt; 'terms',
-                'WP_Users_List_Table' =&gt; 'users',
-                'WP_Comments_List_Table' =&gt; 'comments',
-                'WP_Post_Comments_List_Table' =&gt; 'comments',
-                'WP_Links_List_Table' =&gt; 'links',
-                'WP_Plugin_Install_List_Table' =&gt; 'plugin-install',
-                'WP_Themes_List_Table' =&gt; 'themes',
-                'WP_Theme_Install_List_Table' =&gt; 'theme-install',
-                'WP_Plugins_List_Table' =&gt; 'plugins',
</del><ins>+                'WP_List_Table_Posts' =&gt; 'posts',
+                'WP_List_Table_Media' =&gt; 'media',
+                'WP_List_Table_Terms' =&gt; 'terms',
+                'WP_List_Table_Users' =&gt; 'users',
+                'WP_List_Table_Comments' =&gt; 'comments',
+                'WP_List_Table_Post_Comments' =&gt; 'comments',
+                'WP_List_Table_Links' =&gt; 'links',
+                'WP_List_Table_Plugin_Install' =&gt; 'plugin-install',
+                'WP_List_Table_Themes' =&gt; 'themes',
+                'WP_List_Table_Theme_Install' =&gt; 'theme-install',
+                'WP_List_Table_Plugins' =&gt; 'plugins',
</ins><span class="cx">                 // Network Admin
</span><del>-                'WP_MS_Sites_List_Table' =&gt; 'ms-sites',
-                'WP_MS_Users_List_Table' =&gt; 'ms-users',
-                'WP_MS_Themes_List_Table' =&gt; 'ms-themes',
</del><ins>+                'WP_List_Table_MS_Sites' =&gt; 'ms-sites',
+                'WP_List_Table_MS_Users' =&gt; 'ms-users',
+                'WP_List_Table_MS_Themes' =&gt; 'ms-themes',
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         if ( isset( $core_classes[ $class ] ) ) {
</span><del>-                require_once( ABSPATH . '/wp-admin/includes/class-wp-' . $core_classes[ $class ] . '-list-table.php' );
</del><ins>+                require_once( ABSPATH . '/wp-admin/includes/class-wp-list-table-' . $core_classes[ $class ] . '.php' );
</ins><span class="cx">                 return true;
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminincludesmetaboxesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/meta-boxes.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/meta-boxes.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/meta-boxes.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -461,7 +461,7 @@
</span><span class="cx"> 
</span><span class="cx">         wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
</span><span class="cx"> 
</span><del>-        $wp_list_table = get_list_table('WP_Post_Comments_List_Table');
</del><ins>+        $wp_list_table = get_list_table('WP_List_Table_Post_Comments');
</ins><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;table class=&quot;widefat comments-box fixed&quot; cellspacing=&quot;0&quot; style=&quot;display:none;&quot;&gt;
</span></span></pre></div>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (16170 => 16171)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-11-03 19:31:11 UTC (rev 16170)
+++ trunk/wp-admin/includes/template.php        2010-11-03 21:09:27 UTC (rev 16171)
</span><span class="lines">@@ -329,7 +329,7 @@
</span><span class="cx">                 return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $wp_list_table = get_list_table('WP_Comments_List_Table');
</del><ins>+        $wp_list_table = get_list_table('WP_List_Table_Comments');
</ins><span class="cx"> 
</span><span class="cx">         list ( $columns, $hidden ) = $wp_list_table-&gt;get_column_info();
</span><span class="cx">         $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
</span></span></pre>
</div>
</div>

</body>
</html>