WordPress.org

Make WordPress Core

Ticket #17364: 17364-wp-users-list-table.diff

File 17364-wp-users-list-table.diff, 807 bytes (added by xknown, 4 years ago)

Use esc_url instead of esc_html in /wp-admin/includes/class-wp-users-list-table.php

  • wp-admin/includes/class-wp-users-list-table.php

     
     1 
    12<?php 
    23/** 
    34 * Users List Table class. 
     
    112113                        $name = translate_user_role( $name ); 
    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='" . esc_html( 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 
    118119                return $role_links;