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. Built from https://develop.svn.wordpress.org/branches/4.6@47655 git-svn-id: http://core.svn.wordpress.org/branches/4.6@47432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6ebc722218
commit
e0fa795d49
|
@ -691,7 +691,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>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue