Changeset 25666
- Timestamp:
- 10/02/2013 08:49:59 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r25454 r25666 367 367 if ( $theme->errors() ) { 368 368 if ( ! is_multisite() || is_super_admin() ) 369 echo '<span class="error-message">' . __('ERROR: The themes directory is either empty or doesn’t exist. Please check your installation.') . '</span>';369 echo '<span class="error-message">' . sprintf( __( 'ERROR: %s' ), $theme->errors()->get_error_message() ) . '</span>'; 370 370 } elseif ( ! empty($wp_registered_sidebars) ) { 371 371 $sidebars_widgets = wp_get_sidebars_widgets(); -
trunk/src/wp-admin/themes.php
r25616 r25666 139 139 <?php echo $ct->display('Name'); ?> 140 140 </h4> 141 142 <?php 143 if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { 144 echo '<p class="error-message">' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p>'; 145 } 146 147 // Certain error codes are less fatal than others. We can still display theme information in most cases. 148 if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) 149 && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?> 141 150 142 151 <div> … … 208 217 ?> 209 218 219 <?php endif; // theme errors ?> 220 210 221 </div> 211 222 … … 293 304 </tr> 294 305 <?php 295 $alt = '';296 306 foreach ( $broken_themes as $broken_theme ) { 297 $alt = ('class="alternate"' == $alt) ? '' : 'class="alternate"';298 307 echo " 299 <tr $alt>308 <tr> 300 309 <td>" . $broken_theme->get('Name') ."</td> 301 310 <td>" . $broken_theme->errors()->get_error_message() . "</td> -
trunk/src/wp-includes/class-wp-theme.php
r24583 r25666 207 207 $this->headers['Name'] = $this->stylesheet; 208 208 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 ) ); 210 210 else 211 211 $this->errors = new WP_Error( 'theme_no_stylesheet', __( 'Stylesheet is missing.' ) );
Note: See TracChangeset
for help on using the changeset viewer.