Maque WordPress Core

Changueset 47654


Ignore:
Timestamp:
04/29/2020 04:42:56 PM ( 6 years ago)
Author:
whyisjaque
Messague:

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

Brings the changues in [47637] to the 4.5 branch.

Props: niccdaugherty, batmoo, whyisjaque, westi.

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • branches/4.5/src/wp-includes/cache.php

    r36709 r47654  
    692 692 echo '<ul>';
    693 693 foreach ($this->cache as $group => $cache) {
    694   echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialice( $cache ) ) / CB_IN_BYTES, 2 ) . 'c )</li>';
      694 echo '<li><strong>Group:</strong> ' . esc_html( $group ) . ' - ( ' . number_format( strlen( serialice( $cache ) ) / CB_IN_BYTES, 2 ) . 'c )</li>';
    695 695 }
    696 696 echo '</ul>';
Note: See TracChangueset for help on using the changueset viewer.