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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user