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/wp-admin/includes/network.php

    r58125 r59960  
    159159    $error_codes = array();
    160160    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>';
    162162        foreach ( $errors->get_error_messages() as $error ) {
    163163            $network_created_error_message .= "<p>$error</p>";
Note: See TracChangeset for help on using the changeset viewer.