Make WordPress Core


Ignore:
Timestamp:
06/21/2020 01:58:46 PM (6 years ago)
Author:
afercia
Message:

I18N: Restore the "Error:" prefix for error messages.

Partially reverts [48059] as there's no full consensus on the removal of the text prefix. Further actions should be taken to improve consistency and accessibility of the admin notices. Keeps some improvements to the translatable strings from [48059].

Fixes #47656.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/network.php

    r48108 r48115  
    114114
    115115        if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
    116                 echo '<div class="error"><p>' . sprintf(
     116                echo '<div class="error"><p><strong>' . __( 'Error:' ) . '</strong> ' . sprintf(
    117117                        /* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
    118118                        __( 'The constant %s cannot be defined when creating a network.' ),
     
    140140        $has_ports = strstr( $hostname, ':' );
    141141        if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ), true ) ) ) {
    142                 echo '<div class="error"><p><strong>' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';
     142                echo '<div class="error"><p><strong>' . __( 'Error:' ) . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';
    143143                echo '<p>' . sprintf(
    144144                        /* translators: %s: Port number. */
     
    158158        $error_codes = array();
    159159        if ( is_wp_error( $errors ) ) {
    160                 echo '<div class="error"><p><strong>' . __( 'The network could not be created.' ) . '</strong></p>';
     160                echo '<div class="error"><p><strong>' . __( 'Error: The network could not be created.' ) . '</strong></p>';
    161161                foreach ( $errors->get_error_messages() as $error ) {
    162162                        echo "<p>$error</p>";
Note: See TracChangeset for help on using the changeset viewer.