Fix inverted logic for displaying the 'Broken Theme' string. props pavelevap. fixes #25465.

git-svn-id: https://develop.svn.wordpress.org/trunk@26027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-11-06 22:39:35 +00:00
parent 8b481f300b
commit 2564c74a57

View File

@ -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>