Skip to content

Commit 404f397

Browse files
committed
Themes: Ensure a broken theme name is returned properly.
Merges [47950] to the 5.4 branch. Props: sstoqnov. git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47956 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6ef777e commit 404f397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/wp-admin/themes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
</tr>
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
411411
if ( $can_resume ) {

0 commit comments

Comments
 (0)