Cache API: Ensure proper escaping around the stats method in the cache API.

Brings the changes in [47637] to the 5.4 branch.

Props: nickdaugherty, batmoo, whyisjake, westi.

Built from https://develop.svn.wordpress.org/branches/5.4@47642


git-svn-id: http://core.svn.wordpress.org/branches/5.4@47417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-04-29 15:52:07 +00:00
parent a6706a1d80
commit 3daf349083
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ class WP_Object_Cache {
echo '</p>';
echo '<ul>';
foreach ( $this->cache as $group => $cache ) {
echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / KB_IN_BYTES, 2 ) . 'k )</li>';
echo '<li><strong>Group:</strong> ' . esc_html( $group ) . ' - ( ' . number_format( strlen( serialize( $cache ) ) / KB_IN_BYTES, 2 ) . 'k )</li>';
}
echo '</ul>';
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4.1-RC1-47641';
$wp_version = '5.4.1-RC1-47642';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.