Network Admin: Include IDs for users and sites on their respective views.

Props danielbachhuber, wonderboymusic.
Fixes #18661.
Built from https://develop.svn.wordpress.org/trunk@34289


git-svn-id: http://core.svn.wordpress.org/trunk@34253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-09-18 15:58:25 +00:00
parent 33a1c0fc16
commit b92955b427
3 changed files with 27 additions and 1 deletions

View File

@ -200,6 +200,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
public function get_columns() {
$sites_columns = array(
'cb' => '<input type="checkbox" />',
'id' => __( 'ID' ),
'blogname' => __( 'URL' ),
'lastupdated' => __( 'Last Updated' ),
'registered' => _x( 'Registered', 'site' ),
@ -251,6 +252,18 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
<?php endif;
}
/**
* Handles the ID column output.
*
* @since 4.4.0
* @access public
*
* @param array $blog Current site.
*/
public function column_id( $blog ) {
echo $blog['blog_id'];
}
/**
* Handles the blogname column output.
*

View File

@ -148,6 +148,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
public function get_columns() {
$users_columns = array(
'cb' => '<input type="checkbox" />',
'id' => __( 'ID' ),
'username' => __( 'Username' ),
'name' => __( 'Name' ),
'email' => __( 'Email' ),
@ -196,6 +197,18 @@ class WP_MS_Users_List_Table extends WP_List_Table {
<?php
}
/**
* Handles the ID column output.
*
* @since 4.4.0
* @access public
*
* @param WP_User $user The current WP_User object.
*/
public function column_id( $user ) {
echo $user->ID;
}
/**
* Handles the username column output.
*

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34288';
$wp_version = '4.4-alpha-34289';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.