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:
Sergey Biryukov 2013-11-06 22:40:08 +00:00
parent 35af8942ab
commit 23de998e29
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
case 'description': case 'description':
echo "<td class='column-description desc'$style>"; echo "<td class='column-description desc'$style>";
if ( $theme->errors() ) { 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 '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
} }
echo "<div class='theme-description'><p>" . $theme->display( 'Description' ) . "</p></div> echo "<div class='theme-description'><p>" . $theme->display( 'Description' ) . "</p></div>