From ff7fcf5f044175ddcbd7993c73b8a7bab7d24add Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 25 Aug 2015 20:37:50 +0000 Subject: [PATCH] In `WP_Users_List_Table::single_row()`, `$actions` is not always set before being used. See #33491. git-svn-id: https://develop.svn.wordpress.org/trunk@33735 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-users-list-table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/class-wp-users-list-table.php b/src/wp-admin/includes/class-wp-users-list-table.php index 4035c58cb6..0b8c966bde 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -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 = "$user_object->user_login
"; $actions['edit'] = '' . __( 'Edit' ) . '';