REST API: Properly capitalize "REST" in translation strings.

Reviewed by jorbin.
Merges [60104] to the 6.8 branch.
Props tobifjellner, sabernhardt, abcd95.
Fixes #63193.


Built from https://develop.svn.wordpress.org/branches/6.8@60105


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2025-03-28 22:44:29 +00:00
parent 19e46a28f9
commit 9b6afe8a3f
2 changed files with 2 additions and 2 deletions

View File

@@ -434,7 +434,7 @@ function rest_api_loaded() {
if ( ! is_string( $GLOBALS['wp']->query_vars['rest_route'] ) ) {
$rest_type_error = new WP_Error(
'rest_path_invalid_type',
__( 'The rest route parameter must be a string.' ),
__( 'The REST route parameter must be a string.' ),
array( 'status' => 400 )
);
wp_die( $rest_type_error );