diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php
index 0505295734..8378586e0f 100644
--- a/wp-admin/includes/class-wp-ms-sites-list-table.php
+++ b/wp-admin/includes/class-wp-ms-sites-list-table.php
@@ -310,12 +310,12 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
break;
case 'plugins': ?>
- ";
- do_action( 'wpmublogsaction', $blog['blog_id'] ); ?>
-
-
- ";
+ do_action( 'wpmublogsaction', $blog['blog_id'] ); ?>
+
+ ";
diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php
index 6bc5215625..1084f6ba59 100644
--- a/wp-admin/includes/class-wp-ms-themes-list-table.php
+++ b/wp-admin/includes/class-wp-ms-themes-list-table.php
@@ -334,7 +334,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
echo "";
break;
- break;
+
default:
echo "
";
do_action( 'manage_themes_custom_column', $column_name, $theme_key, $theme );
diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php
index 8eadc7f1b4..a60a6a70c4 100644
--- a/wp-admin/includes/class-wp-ms-users-list-table.php
+++ b/wp-admin/includes/class-wp-ms-users-list-table.php
@@ -17,7 +17,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
}
function prepare_items() {
- global $usersearch, $role, $wpdb;
+ global $usersearch, $role, $wpdb, $mode;
$usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
@@ -55,6 +55,8 @@ class WP_MS_Users_List_Table extends WP_List_Table {
if ( isset( $_REQUEST['order'] ) )
$args['order'] = $_REQUEST['order'];
+ $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode'];
+
// Query the user IDs for this page
$wp_user_search = new WP_User_Query( $args );
@@ -109,7 +111,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
function get_columns() {
$users_columns = array(
'cb' => '',
- 'login' => __( 'Username' ),
+ 'username' => __( 'Username' ),
'name' => __( 'Name' ),
'email' => __( 'E-mail' ),
'registered' => _x( 'Registered', 'user' ),
@@ -122,7 +124,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
function get_sortable_columns() {
return array(
- 'login' => 'login',
+ 'username' => 'login',
'name' => 'name',
'email' => 'email',
'registered' => 'id',
@@ -132,10 +134,10 @@ class WP_MS_Users_List_Table extends WP_List_Table {
function display_rows() {
global $current_site, $mode;
- $class = '';
+ $alt = '';
$super_admins = get_super_admins();
foreach ( $this->items as $user ) {
- $class = ( 'alternate' == $class ) ? '' : 'alternate';
+ $alt = ( 'alternate' == $alt ) ? '' : 'alternate';
$status_list = array( 'spam' => 'site-spammed', 'deleted' => 'site-deleted' );
@@ -145,17 +147,20 @@ class WP_MS_Users_List_Table extends WP_List_Table {
}
?>
- |
+
get_column_info();
foreach ( $columns as $column_name => $column_display_name ) :
+ $class = "class='$column_name column-$column_name'";
+
$style = '';
if ( in_array( $column_name, $hidden ) )
$style = ' style="display:none;"';
$attributes = "$class$style";
+
switch ( $column_name ) {
case 'cb': ?>
@@ -165,18 +170,11 @@ class WP_MS_Users_List_Table extends WP_List_Table {
-
- ID ?>
- |
- user_email, 32 );
$edit_link = ( get_current_user_id() == $user->ID ) ? 'profile.php' : 'user-edit.php?user_id=' . $user->ID;
- ?>
-
+
+ echo " | "; ?>
user_login ); ?>user_login, $super_admins ) )
echo ' - ' . __( 'Super Admin' );
@@ -197,14 +195,12 @@ class WP_MS_Users_List_Table extends WP_List_Table {
- first_name $user->last_name"; ?> |
- $user->first_name $user->last_name | ";
break;
- case 'email': ?>
- user_email ?> |
- $user->user_email";
break;
case 'registered':
@@ -212,16 +208,13 @@ class WP_MS_Users_List_Table extends WP_List_Table {
$date = 'Y/m/d';
else
$date = 'Y/m/d \<\b\r \/\> g:i:s a';
- ?>
- user_registered ); ?> |
- " . mysql2date( $date, $user->user_registered ) . "";
break;
case 'blogs':
$blogs = get_blogs_of_user( $user->ID, true );
- ?>
-
- ";
if ( is_array( $blogs ) ) {
foreach ( (array) $blogs as $key => $val ) {
$path = ( $val->path == '/' ) ? '' : $val->path;
@@ -245,9 +238,10 @@ class WP_MS_Users_List_Table extends WP_List_Table {
- | ID ); ?> |
- ";
+ echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
+ echo "";
break;
}
endforeach