Make WordPress Core

Changeset 33735


Ignore:
Timestamp:
08/25/2015 08:37:50 PM (9 years ago)
Author:
wonderboymusic
Message:

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

See #33491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r33210 r33735  
    360360            $url = 'users.php?';
    361361
     362        // Set up the hover actions for this user
     363        $actions = array();
    362364        $checkbox = '';
    363365        // Check if the user for this row is editable
     
    365367            // Set up the user editing link
    366368            $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) );
    367 
    368             // Set up the hover actions for this user
    369             $actions = array();
    370369
    371370            if ( current_user_can( 'edit_user',  $user_object->ID ) ) {
Note: See TracChangeset for help on using the changeset viewer.