Themes: Ensure a broken theme name is returned properly.

Follow-up to [47968] for the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@47981


git-svn-id: http://core.svn.wordpress.org/branches/4.0@47750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-10 18:57:05 +00:00
parent 325a7b4f6c
commit 65bda9cbb1
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
foreach ( $broken_themes as $broken_theme ) {
echo "
<tr>
<td><?php echo $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?></td>
<td>" . ( $broken_theme->get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ) ) . "</td>
<td>" . $broken_theme->errors()->get_error_message() . "</td>
</tr>";
}