In `WP_Users_List_Table::single_row()`, `$actions` is not always set before being used.

See #33491.

Built from https://develop.svn.wordpress.org/trunk@33735


git-svn-id: http://core.svn.wordpress.org/trunk@33703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-08-25 20:38:20 +00:00
parent ef87172270
commit 93f745fd9b
2 changed files with 3 additions and 4 deletions

View File

@ -359,15 +359,14 @@ class WP_Users_List_Table extends WP_List_Table {
else
$url = 'users.php?';
// Set up the hover actions for this user
$actions = array();
$checkbox = '';
// Check if the user for this row is editable
if ( current_user_can( 'list_users' ) ) {
// Set up the user editing link
$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) );
// Set up the hover actions for this user
$actions = array();
if ( current_user_can( 'edit_user', $user_object->ID ) ) {
$edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />";
$actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';

View File

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