Index: wp-includes/class-wp-theme.php =================================================================== --- wp-includes/class-wp-theme.php (revision 25579) +++ wp-includes/class-wp-theme.php (working copy) @@ -206,7 +206,7 @@ } elseif ( ! file_exists( $this->theme_root . '/' . $theme_file ) ) { $this->headers['Name'] = $this->stylesheet; if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet ) ) - $this->errors = new WP_Error( 'theme_not_found', __( 'The theme directory does not exist.' ) ); + $this->errors = new WP_Error( 'theme_not_found', sprintf( __( "The theme directory '%s' does not exist." ), $this->stylesheet ) ); else $this->errors = new WP_Error( 'theme_no_stylesheet', __( 'Stylesheet is missing.' ) ); $this->template = $this->stylesheet; Index: wp-admin/includes/dashboard.php =================================================================== --- wp-admin/includes/dashboard.php (revision 25579) +++ wp-admin/includes/dashboard.php (working copy) @@ -366,7 +366,7 @@ if ( $theme->errors() ) { if ( ! is_multisite() || is_super_admin() ) - echo '
'; + echo ' '; } elseif ( ! empty($wp_registered_sidebars) ) { $sidebars_widgets = wp_get_sidebars_widgets(); $num_widgets = 0; Index: wp-admin/themes.php =================================================================== --- wp-admin/themes.php (revision 25579) +++ wp-admin/themes.php (working copy) @@ -139,6 +139,14 @@ display('Name'); ?> +errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { + echo ' '; +} + +if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) + && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?> +