Make WordPress Core


Ignore:
Timestamp:
06/21/2020 01:58:46 PM (5 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/tests/phpunit/includes/bootstrap.php

    r48072 r48115  
    3131
    3232if ( ! is_readable( $config_file_path ) ) {
    33     echo "wp-tests-config.php is missing! Please use wp-tests-config-sample.php to create a config file.\n";
     33    echo "Error: 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         "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        "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",
    4343        tests_get_phpunit_version()
    4444    );
     
    4848
    4949if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) {
    50     echo "The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n";
     50    echo "Error: 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.