Make WordPress Core

Changeset 26027


Ignore:
Timestamp:
11/06/2013 10:39:35 PM (11 years ago)
Author:
SergeyBiryukov
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r25254 r26027  
    318318                    echo "<td class='column-description desc'$style>";
    319319                    if ( $theme->errors() ) {
    320                         $pre = $status == 'broken' ? '' : __( 'Broken Theme:' ) . ' ';
     320                        $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : '';
    321321                        echo '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
    322322                    }
Note: See TracChangeset for help on using the changeset viewer.