Make WordPress Core


Ignore:
Timestamp:
10/02/2013 08:49:59 PM (10 years ago)
Author:
nacin
Message:

Show a proper error message on the dashboard when the current theme is broken.

Clean up Appearance -> Themes when we don't have enough information to show for a broken theme.

Clean up broken/ugly "alt" row styling when we are displaying broken themes.

props johnbillion for initial patch.
fixes #21670.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r25454 r25666  
    367367    if ( $theme->errors() ) {
    368368        if ( ! is_multisite() || is_super_admin() )
    369             echo '<span class="error-message">' . __('ERROR: The themes directory is either empty or doesn&#8217;t exist. Please check your installation.') . '</span>';
     369            echo '<span class="error-message">' . sprintf( __( 'ERROR: %s' ), $theme->errors()->get_error_message() ) . '</span>';
    370370    } elseif ( ! empty($wp_registered_sidebars) ) {
    371371        $sidebars_widgets = wp_get_sidebars_widgets();
Note: See TracChangeset for help on using the changeset viewer.