Make WordPress Core


Ignore:
Timestamp:
11/11/2011 02:10:54 PM (14 years ago)
Author:
ryan
Message:

Avoid notice when themes dir is empty or missing. Don't reset current theme in current_theme_info() if there are no themes. Show warning in Right Now if there are no themes. Props azaozz. fixes #19089

File:
1 edited

Legend:

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

    r19228 r19251  
    388388
    389389    echo "\n\t<p>";
    390     if ( !empty($wp_registered_sidebars) ) {
     390
     391    if ( empty( $ct->stylesheet_dir ) ) {
     392        if ( ! is_multisite() || is_super_admin() )
     393            echo '<span class="error-message">' . __('ERROR: The themes directory is either empty or doesn&#8217;t exist. Please check your installation.') . '</span>';
     394    } elseif ( ! empty($wp_registered_sidebars) ) {
    391395        $sidebars_widgets = wp_get_sidebars_widgets();
    392396        $num_widgets = 0;
Note: See TracChangeset for help on using the changeset viewer.