Changes from branches/3.1/wp-admin/includes/class-wp-users-list-table.php at r17440 to trunk/wp-admin/includes/class-wp-users-list-table.php at r18179
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-users-list-table.php
r17440 r18179 13 13 var $is_site_users; 14 14 15 function WP_Users_List_Table() {15 function __construct() { 16 16 $screen = get_current_screen(); 17 17 $this->is_site_users = 'site-users-network' == $screen->id; … … 20 20 $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 21 21 22 parent:: WP_List_Table( array(22 parent::__construct( array( 23 23 'singular' => 'user', 24 24 'plural' => 'users' … … 53 53 ); 54 54 55 $args['search'] = '*' . $args['search'] . '*'; 55 if ( '' !== $args['search'] ) 56 $args['search'] = '*' . $args['search'] . '*'; 56 57 57 58 if ( $this->is_site_users ) … … 113 114 /* translators: User role name with count */ 114 115 $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>"; 116 117 } 117 118
Note: See TracChangeset
for help on using the changeset viewer.