mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 18:18:01 +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. Built from https://develop.svn.wordpress.org/branches/5.4@47642 git-svn-id: http://core.svn.wordpress.org/branches/5.4@47417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a6706a1d80
commit
3daf349083
@ -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>';
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4.1-RC1-47641';
|
||||
$wp_version = '5.4.1-RC1-47642';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user