mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Networks and Sites: Use correct escaping function for classes added via ms_user_list_site_class
filter.
Props david.binda. Fixes #46990. See #41146. Built from https://develop.svn.wordpress.org/trunk@45252 git-svn-id: http://core.svn.wordpress.org/trunk@45061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c9efbc89be
commit
bd9421104a
@ -352,7 +352,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
$site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $val->userblog_id, $val->site_id, $user );
|
||||
if ( is_array( $site_classes ) && ! empty( $site_classes ) ) {
|
||||
$site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) );
|
||||
echo '<span class="' . sanitize_html_class( implode( ' ', $site_classes ) ) . '">';
|
||||
echo '<span class="' . esc_attr( implode( ' ', $site_classes ) ) . '">';
|
||||
} else {
|
||||
echo '<span>';
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-beta3-45251';
|
||||
$wp_version = '5.2-beta3-45252';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user