Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17440 r18179  
    1313    var $is_site_users;
    1414
    15     function WP_Users_List_Table() {
     15    function __construct() {
    1616        $screen = get_current_screen();
    1717        $this->is_site_users = 'site-users-network' == $screen->id;
     
    2020            $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
    2121
    22         parent::WP_List_Table( array(
     22        parent::__construct( array(
    2323            'singular' => 'user',
    2424            'plural'   => 'users'
     
    5353        );
    5454
    55         $args['search'] = '*' . $args['search'] . '*';
     55        if ( '' !== $args['search'] )
     56            $args['search'] = '*' . $args['search'] . '*';
    5657
    5758        if ( $this->is_site_users )
     
    113114            /* translators: User role name with count */
    114115            $name = sprintf( __('%1$s <span class="count">(%2$s)</span>'), $name, $avail_roles[$this_role] );
    115             $role_links[$this_role] = "<a href='" . add_query_arg( 'role', $this_role, $url ) . "'$class>$name</a>";
     116            $role_links[$this_role] = "<a href='" . esc_url( add_query_arg( 'role', $this_role, $url ) ) . "'$class>$name</a>";
    116117        }
    117118
Note: See TracChangeset for help on using the changeset viewer.