mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b6cace2a90
commit
6db848a490
@ -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>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user