From 26f27a24d89c447f47fbda04b471daf500a46212 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 20 Jan 2020 14:42:12 +0000 Subject: [PATCH] I18N: Merge duplicate `%1$s is not of type %2$s` strings in `rest_validate_value_from_schema()`. Props ramiy. Fixes #49244. git-svn-id: https://develop.svn.wordpress.org/trunk@47091 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php index c5093cc33b..8fbf4b1342 100644 --- a/src/wp-includes/rest-api.php +++ b/src/wp-includes/rest-api.php @@ -1221,7 +1221,7 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) { } /* translators: 1: Parameter, 2: List of types. */ - return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not of type %2$s' ), $param, implode( ',', $args['type'] ) ) ); + return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not of type %2$s.' ), $param, implode( ',', $args['type'] ) ) ); } if ( 'array' === $args['type'] ) {