WordPress.org

Make WordPress Core

Ticket #21670: 21670.patch

File 21670.patch, 688 bytes (added by SergeyBiryukov, 20 months ago)
  • wp-admin/includes/dashboard.php

     
    364364 
    365365        if ( $theme->errors() ) { 
    366366                if ( ! is_multisite() || is_super_admin() ) 
    367                         echo '<span class="error-message">' . __('ERROR: The themes directory is either empty or doesn&#8217;t exist. Please check your installation.') . '</span>'; 
     367                        echo '<span class="error-message">' . $theme->errors()->get_error_message() . '</span>'; 
    368368        } elseif ( ! empty($wp_registered_sidebars) ) { 
    369369                $sidebars_widgets = wp_get_sidebars_widgets(); 
    370370                $num_widgets = 0;