Changeset 25666 for trunk/src/wp-admin/themes.php
- Timestamp:
- 10/02/2013 08:49:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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>
Note: See TracChangeset
for help on using the changeset viewer.