From 4e48d97bb3540e0075a6fc7fc033925c68ca54ca Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Sat, 25 Jul 2020 15:45:54 +0200 Subject: [PATCH] Update rest-api.php use 1. 2. in translator strings instead of %1$s %2$s --- src/wp-includes/rest-api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php index 9c10a8292a..982605dedb 100644 --- a/src/wp-includes/rest-api.php +++ b/src/wp-includes/rest-api.php @@ -40,7 +40,7 @@ function register_rest_route( $namespace, $route, $args = array(), $override = f _doing_it_wrong( __FUNCTION__, sprintf( - /* translators: %1$s: string value of the namespace, %2$s: string value of the route */ + /* translators: 1: string value of the namespace, 2: string value of the route */ __( 'Routes must be namespaced with plugin or theme name and version. Instead there seems to be an empty namespace \'%1$s\' for route \'%2$s\'.' ), ''.$namespace.'', ''.$route.'' @@ -52,7 +52,7 @@ function register_rest_route( $namespace, $route, $args = array(), $override = f _doing_it_wrong( __FUNCTION__, sprintf( - /* translators: %1$s: string value of the namespace, %2$s: string value of the route */ + /* translators: 1: string value of the namespace, 2: string value of the route */ __( 'Route must be specified. Instead within the namespace \'%1$s\', there seems to be an empty route \'%2$s\'.' ), ''.$namespace.'', ''.$route.'' @@ -68,7 +68,7 @@ function register_rest_route( $namespace, $route, $args = array(), $override = f _doing_it_wrong( __FUNCTION__, sprintf( - /* translators: %1$s: string value of the namespace, %2$s: string value of the route */ + /* translators: 1: string value of the namespace, 2: string value of the route */ __( 'Namespace must not start or end with a slash. Instead namespace \'%1$s\' for route \'%2$s\' seems to contain a slash.' ), ''.$namespace.'', ''.$route.'' @@ -81,7 +81,7 @@ function register_rest_route( $namespace, $route, $args = array(), $override = f _doing_it_wrong( __FUNCTION__, sprintf( - /* translators: %1$s: rest_api_init, %2$s: string value of the namespace, %3$s: string value of the route */ + /* translators: 1: rest_api_init, 2: string value of the namespace, 3: string value of the route */ __( 'REST API routes must be registered on the %1$s action. Instead route \'%3$s\' with namespace \'%2$s\' was not registered on this action.' ), 'rest_api_init', ''.$namespace.'',