Make WordPress Core

Changeset 47950


Ignore:
Timestamp:
06/10/2020 04:46:50 PM (4 years ago)
Author:
whyisjake
Message:

Themes: Ensure a broken theme name is returned properly.

Props: sstoqnov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r47910 r47950  
    462462    <?php foreach ( $broken_themes as $broken_theme ) : ?>
    463463        <tr>
    464             <td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?></td>
     464            <td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?></td>
    465465            <td><?php echo $broken_theme->errors()->get_error_message(); ?></td>
    466466            <?php
Note: See TracChangeset for help on using the changeset viewer.