Make WordPress Core

Changeset 47956


Ignore:
Timestamp:
06/10/2020 05:46:04 PM (5 years ago)
Author:
desrosj
Message:

Themes: Ensure a broken theme name is returned properly.

Merges [47950] to the 5.4 branch.
Props: sstoqnov.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-admin/themes.php

    r47198 r47956  
    406406    <?php foreach ( $broken_themes as $broken_theme ) : ?>
    407407        <tr>
    408             <td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?></td>
     408            <td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?></td>
    409409            <td><?php echo $broken_theme->errors()->get_error_message(); ?></td>
    410410            <?php
Note: See TracChangeset for help on using the changeset viewer.