Make WordPress Core

Changeset 47642

Timestamp:
04/29/2020 03:50:50 PM (4 years ago)
Author:
whyisjake
Message:

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.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-includes/class-wp-object-cache.php

    r47197 r47642  
    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 . 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.