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:
Sergey Biryukov 2019-04-19 13:51:51 +00:00
parent c9efbc89be
commit bd9421104a
2 changed files with 2 additions and 2 deletions

View File

@ -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>';
}

View File

@ -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.