Fix inverted logic for displaying the 'Broken Theme' string. props pavelevap. fixes #25465.
Built from https://develop.svn.wordpress.org/trunk@26027 git-svn-id: http://core.svn.wordpress.org/trunk@25957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
35af8942ab
commit
23de998e29
|
@ -317,7 +317,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
case 'description':
|
||||
echo "<td class='column-description desc'$style>";
|
||||
if ( $theme->errors() ) {
|
||||
$pre = $status == 'broken' ? '' : __( 'Broken Theme:' ) . ' ';
|
||||
$pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : '';
|
||||
echo '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
|
||||
}
|
||||
echo "<div class='theme-description'><p>" . $theme->display( 'Description' ) . "</p></div>
|
||||
|
|
Loading…
Reference in New Issue