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-includes/class-wp-theme.php

    r24583 r25666  
    207207            $this->headers['Name'] = $this->stylesheet;
    208208            if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet ) )
    209                 $this->errors = new WP_Error( 'theme_not_found', __( 'The theme directory does not exist.' ) );
     209                $this->errors = new WP_Error( 'theme_not_found', sprintf( __( 'The theme directory "%s" does not exist.' ), $this->stylesheet ) );
    210210            else
    211211                $this->errors = new WP_Error( 'theme_no_stylesheet', __( 'Stylesheet is missing.' ) );
Note: See TracChangeset for help on using the changeset viewer.