Changeset 56600 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 09/17/2023 03:31:32 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r56570 r56600 263 263 <?php 264 264 if ( $theme->errors() ) { 265 echo '<div class="error"><p><strong>' . __( 'This theme is broken.' ) . '</strong> ' . $theme->errors()->get_error_message() . '</p></div>'; 265 wp_admin_notice( 266 '<strong>' . __( 'This theme is broken.' ) . '</strong> ' . $theme->errors()->get_error_message(), 267 array( 268 'additional_classes' => array( 'error' ), 269 ) 270 ); 266 271 } 267 272 ?> … … 295 300 <?php 296 301 if ( $error ) : 297 echo '<div class="error"><p>' . __( 'File does not exist! Please double check the name and try again.' ) . '</p></div>'; 302 wp_admin_notice( 303 __( 'File does not exist! Please double check the name and try again.' ), 304 array( 305 'additional_classes' => array( 'error' ), 306 ) 307 ); 298 308 else : 299 309 ?>
Note: See TracChangeset
for help on using the changeset viewer.