summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJake Spurlock <whyisjake@git.wordpress.org>2020-04-29 16:42:56 +0000
committerJake Spurlock <whyisjake@git.wordpress.org>2020-04-29 16:42:56 +0000
commit6ae390697f19edb386468f0035edb3f537148761 (patch)
tree2ddeba7281054a6a5bace7e5f0200b874bf0aa2e
parent971529fb033425a24b7b77fb841ff53109d97ac5 (diff)
downloadwordpress-6ae390697f19edb386468f0035edb3f537148761.tar.gz
wordpress-6ae390697f19edb386468f0035edb3f537148761.zip
Cache API: Ensure proper escaping around the stats method in the cache API.
Brings the changes in [47637] to the 4.5 branch. Props: nickdaugherty, batmoo, whyisjake, westi. git-svn-id: https://develop.svn.wordpress.org/branches/4.5@47654 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r--src/wp-includes/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php
index a1a6e6c705..e535ef84f0 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>';
}