Skip to content

Commit 6d0f185

Browse files
committed
REST API: Properly capitalize "REST" in translation strings.
Props tobifjellner, sabernhardt, abcd95. Fixes #63193. git-svn-id: https://develop.svn.wordpress.org/trunk@60104 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 469948e commit 6d0f185

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-includes/rest-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function rest_api_loaded() {
434434
if ( ! is_string( $GLOBALS['wp']->query_vars['rest_route'] ) ) {
435435
$rest_type_error = new WP_Error(
436436
'rest_path_invalid_type',
437-
__( 'The rest route parameter must be a string.' ),
437+
__( 'The REST route parameter must be a string.' ),
438438
array( 'status' => 400 )
439439
);
440440
wp_die( $rest_type_error );

tests/phpunit/tests/rest-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ public function test_should_return_error_if_rest_route_not_string() {
25772577
rest_api_loaded();
25782578
} catch ( WPDieException $e ) {
25792579
$this->assertStringContainsString(
2580-
'The rest route parameter must be a string.',
2580+
'The REST route parameter must be a string.',
25812581
$e->getMessage()
25822582
);
25832583
throw $e; // Re-throw to satisfy expectException

0 commit comments

Comments
 (0)