WordPress.org

Make WordPress Core

Changeset 47637


Ignore:
Timestamp:
04/29/2020 03:34:55 PM (3 months ago)
Author:
whyisjake
Message:

Cache API: Ensure proper escaping around the stats method in the cache API.

Props: nickdaugherty, batmoo, whyisjake, westi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-object-cache.php

    r47197 r47637  
    442442        echo '<ul>';
    443443        foreach ( $this->cache as $group => $cache ) {
    444             echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / KB_IN_BYTES, 2 ) . 'k )</li>';
     444            echo '<li><strong>Group:</strong> ' . esc_html( $group ) . ' - ( ' . number_format( strlen( serialize( $cache ) ) / KB_IN_BYTES, 2 ) . 'k )</li>';
    445445        }
    446446        echo '</ul>';
Note: See TracChangeset for help on using the changeset viewer.