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/tests/phpunit/includes/bootstrap.php

    r47880 r48059  
    3131
    3232if ( ! is_readable( $config_file_path ) ) {
    33     echo "Error: wp-tests-config.php is missing! Please use wp-tests-config-sample.php to create a config file.\n";
     33    echo "wp-tests-config.php is missing! Please use wp-tests-config-sample.php to create a config file.\n";
    3434    exit( 1 );
    3535}
     
    4040if ( version_compare( tests_get_phpunit_version(), '5.4', '<' ) || version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) {
    4141    printf(
    42         "Error: Looks like you're using PHPUnit %s. WordPress requires at least PHPUnit 5.4 and is currently only compatible with PHPUnit up to 7.x.\n",
     42        "Looks like you're using PHPUnit %s. WordPress requires at least PHPUnit 5.4 and is currently only compatible with PHPUnit up to 7.x.\n",
    4343        tests_get_phpunit_version()
    4444    );
     
    4848
    4949if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) {
    50     echo "Error: The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n";
     50    echo "The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n";
    5151    exit( 1 );
    5252}
Note: See TracChangeset for help on using the changeset viewer.