mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
Accessibility: Text Changes: Use sentence case for the word Error in various error messages, instead of all caps.
Using all caps should be avoided for better readability and because screen readers may pronounce all-caps words as abbreviations. Props afercia, ryokuhi, sabernhardt, garrett-eclipse. See #47656, #43037, #42945. git-svn-id: https://develop.svn.wordpress.org/trunk@47156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -30,7 +30,7 @@ if ( defined( 'WP_TESTS_CONFIG_FILE_PATH' ) ) {
|
||||
global $wpdb, $current_site, $current_blog, $wp_rewrite, $shortcode_tags, $wp, $phpmailer, $wp_theme_directories;
|
||||
|
||||
if ( ! is_readable( $config_file_path ) ) {
|
||||
echo "ERROR: wp-tests-config.php is missing! Please use wp-tests-config-sample.php to create a config file.\n";
|
||||
echo "Error: wp-tests-config.php is missing! Please use wp-tests-config-sample.php to create a config file.\n";
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ require_once dirname( __FILE__ ) . '/functions.php';
|
||||
|
||||
if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) {
|
||||
printf(
|
||||
"ERROR: Looks like you're using PHPUnit %s. WordPress is currently only compatible with PHPUnit up to 7.x.\n",
|
||||
"Error: Looks like you're using PHPUnit %s. WordPress is currently only compatible with PHPUnit up to 7.x.\n",
|
||||
tests_get_phpunit_version()
|
||||
);
|
||||
echo "Please use the latest PHPUnit version from the 7.x branch.\n";
|
||||
@@ -47,7 +47,7 @@ if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) {
|
||||
}
|
||||
|
||||
if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) {
|
||||
echo "ERROR: The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n";
|
||||
echo "Error: The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n";
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user