Make WordPress Core


Ignore:
Timestamp:
06/16/2020 03:33:37 PM (4 years ago)
Author:
afercia
Message:

I18N: Remove the "Error:" prefix from error messages.

For a number of years, most of the WordPress error messages have been prefixed with "Error:". However, these messages appear in a context where it's already clear an error occurred. Whether it's an error, a warning, or any other classification, that's not so relevant for users. The content of the message is the relevant part. The "Error:" prefix doesn't add great value while it does add unnecessary complexity for the message readability.

Also, revises some of these messages to improve clarity and removes HTML from translatable strings.

Props garrett-eclipse, ramiy, SergeyBiryukov, afercia, sabernhardt, quadthemes, audrasjb.
See #47003, #43037, #42945, #15887.
Fixes #47656.

File:
1 edited

Legend:

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

    r47808 r48059  
    11531153            sprintf(
    11541154                /* translators: %s: Plugin name. */
    1155                 _x( '<strong>Error:</strong> Current WordPress and PHP versions do not meet minimum requirements for %s.', 'plugin' ),
     1155                _x( 'Current WordPress and PHP versions do not meet minimum requirements for %s.', 'plugin' ),
    11561156                $plugin_headers['Name']
    11571157            )
     
    11621162            sprintf(
    11631163                /* translators: %s: Plugin name. */
    1164                 _x( '<strong>Error:</strong> Current PHP version does not meet minimum requirements for %s.', 'plugin' ),
     1164                _x( 'Current PHP version does not meet minimum requirements for %s.', 'plugin' ),
    11651165                $plugin_headers['Name']
    11661166            )
     
    11711171            sprintf(
    11721172                /* translators: %s: Plugin name. */
    1173                 _x( '<strong>Error:</strong> Current WordPress version does not meet minimum requirements for %s.', 'plugin' ),
     1173                _x( 'Current WordPress version does not meet minimum requirements for %s.', 'plugin' ),
    11741174                $plugin_headers['Name']
    11751175            )
Note: See TracChangeset for help on using the changeset viewer.