Changeset 59960
- Timestamp:
- 03/10/2025 06:14:48 PM (less than one hour ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/tags.js
r59789 r59960 56 56 57 57 } else if ( '-1' == r ) { 58 $('#ajax-response').empty().append('<div class=" error"><p>' + wp.i18n.__( 'Sorry, you are not allowed to do that.' ) + '</p></div>');58 $('#ajax-response').empty().append('<div class="notice notice-error"><p>' + wp.i18n.__( 'Sorry, you are not allowed to do that.' ) + '</p></div>'); 59 59 tr.children().css('backgroundColor', ''); 60 60 61 61 } else { 62 $('#ajax-response').empty().append('<div class=" error"><p>' + wp.i18n.__( 'An error occurred while processing your request. Please try again later.' ) + '</p></div>');62 $('#ajax-response').empty().append('<div class="notice notice-error"><p>' + wp.i18n.__( 'An error occurred while processing your request. Please try again later.' ) + '</p></div>'); 63 63 tr.children().css('backgroundColor', ''); 64 64 } -
trunk/src/js/_enqueues/vendor/plupload/handlers.js
r58279 r59960 205 205 // Generic error message. 206 206 function wpQueueError( message ) { 207 jQuery( '#media-upload-error' ).show().html( '<div class=" error"><p>' + message + '</p></div>' );207 jQuery( '#media-upload-error' ).show().html( '<div class="notice notice-error"><p>' + message + '</p></div>' ); 208 208 } 209 209 -
trunk/src/js/_enqueues/wp/theme.js
r58914 r59960 1666 1666 $( 'body' ).removeClass( 'loading-content' ); 1667 1667 $( '.theme-browser' ).find( 'div.error' ).remove(); 1668 $( '.theme-browser' ).find( 'div.themes' ).before( '<div class=" error"><p>' + l10n.error + '</p><p><button class="button try-again">' + l10n.tryAgain + '</button></p></div>' );1668 $( '.theme-browser' ).find( 'div.themes' ).before( '<div class="notice notice-error"><p>' + l10n.error + '</p><p><button class="button try-again">' + l10n.tryAgain + '</button></p></div>' ); 1669 1669 $( '.theme-browser .error .try-again' ).on( 'click', function( e ) { 1670 1670 e.preventDefault(); -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r58745 r59960 705 705 706 706 if ( $theme->errors() ) { 707 $pre = 'broken' === $status ? __( 'Broken Theme:' ) . ' ' : ''; 708 echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>'; 707 $pre = 'broken' === $status ? '<strong class="error-message">' . __( 'Broken Theme:' ) . '</strong> ' : ''; 708 wp_admin_notice( 709 $pre . $theme->errors()->get_error_message(), 710 array( 711 'type' => 'error', 712 'additional_classes' => 'inline', 713 ) 714 ); 709 715 } 710 716 -
trunk/src/wp-admin/includes/network.php
r58125 r59960 159 159 $error_codes = array(); 160 160 if ( is_wp_error( $errors ) ) { 161 $network_created_error_message = '<p><strong>' . __( 'Error: The network could not be created.' ) . '</strong></p>';161 $network_created_error_message = '<p><strong>' . __( 'Error:' ) . '</strong> ' . __( 'The network could not be created.' ) . '</p>'; 162 162 foreach ( $errors->get_error_messages() as $error ) { 163 163 $network_created_error_message .= "<p>$error</p>"; -
trunk/src/wp-admin/themes.php
r59789 r59960 346 346 if ( $current_theme->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { 347 347 wp_admin_notice( 348 __( 'Error:' ) . '' . $current_theme->errors()->get_error_message(),348 '<strong>' . __( 'Error:' ) . '</strong> ' . $current_theme->errors()->get_error_message(), 349 349 array( 350 350 'additional_classes' => array( 'error' ), -
trunk/src/wp-signup.php
r59378 r59960 69 69 .mu_register fieldset, 70 70 .mu_register legend { margin: 0; padding: 0; border: none; } 71 .mu_register .error { font-weight: 600;padding: 10px; color: #333; background: #ffebe8; border: 1px solid #c00; }71 .mu_register .error { padding: 10px; color: #333; background: #ffebe8; border: 1px solid #c00; } 72 72 .mu_register input[type="submit"], 73 73 .mu_register #blog_title,
Note: See TracChangeset
for help on using the changeset viewer.