From cfbd88836dd17683be930ed86341c96c88b9e624 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Mon, 30 Nov 2015 09:50:56 +0000 Subject: [PATCH] REST API: Unabbreviate error string. Props daniel-koskinen. Fixes #34818. git-svn-id: https://develop.svn.wordpress.org/trunk@35750 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/class-wp-rest-request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/class-wp-rest-request.php b/src/wp-includes/rest-api/class-wp-rest-request.php index dee352c340..fdf13c46d1 100644 --- a/src/wp-includes/rest-api/class-wp-rest-request.php +++ b/src/wp-includes/rest-api/class-wp-rest-request.php @@ -847,7 +847,7 @@ class WP_REST_Request implements ArrayAccess { $valid_check = call_user_func( $arg['validate_callback'], $param, $this, $key ); if ( false === $valid_check ) { - $invalid_params[ $key ] = __( 'Invalid param.' ); + $invalid_params[ $key ] = __( 'Invalid parameter.' ); } if ( is_wp_error( $valid_check ) ) {