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

Props: nickdaugherty, batmoo, whyisjake, westi.

Built from https://develop.svn.wordpress.org/trunk@47637


git-svn-id: http://core.svn.wordpress.org/trunk@47412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-04-29 15:36:06 +00:00
parent 94f5dc0cad
commit c16fa7c73d
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ class WP_Object_Cache {
echo '</p>'; echo '</p>';
echo '<ul>'; echo '<ul>';
foreach ( $this->cache as $group => $cache ) { 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>'; echo '</ul>';
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-47636'; $wp_version = '5.5-alpha-47637';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.