Make WordPress Core


Ignore:
Timestamp:
03/10/2025 06:14:48 PM (6 hours ago)
Author:
joedolson
Message:

Administration: Update out of date error message styling.

Change several error message across core to use WordPress standard styling. Ensure only prefixes are wrapped in strong tags rather than the whole message, use notice notice-error classes where appropriate, and replace a custom error with wp_admin_notice() in multisite.

Props afercia, rajinsharwar, robinmartijn, mukesh27, sabernhardt, oglekler, joedolson, chaion07, im3dabasia1, audrasjb, dkarfa, najmulsaju.
Fixes #50402.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/plupload/handlers.js

    r58279 r59960  
    205205// Generic error message.
    206206function 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>' );
    208208}
    209209
Note: See TracChangeset for help on using the changeset viewer.