diff options
author | Jake Spurlock <whyisjake@git.wordpress.org> | 2020-04-29 16:45:01 +0000 |
---|---|---|
committer | Jake Spurlock <whyisjake@git.wordpress.org> | 2020-04-29 16:45:01 +0000 |
commit | 1dddf957f2c95174f95f36c2644d438e77e3789c (patch) | |
tree | 1a26d551ee53080cc06336e4c3f6f403433f837d | |
parent | e2b05084dc9719528db9fb6393f8fea6dc83fdf1 (diff) | |
download | wordpress-1dddf957f2c95174f95f36c2644d438e77e3789c.tar.gz wordpress-1dddf957f2c95174f95f36c2644d438e77e3789c.zip |
Cache API: Ensure proper escaping around the stats method in the cache API.
Brings the changes in [47637] to the 4.6 branch.
Props: nickdaugherty, batmoo, whyisjake, westi.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@47655 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r-- | src/wp-includes/cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php index 6c53eabb78..7ee3c059ac 100644 --- a/src/wp-includes/cache.php +++ b/src/wp-includes/cache.php @@ -691,7 +691,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>'; } |