REST API: Unabbreviate error string.
Props daniel-koskinen. Fixes #34818. Built from https://develop.svn.wordpress.org/trunk@35750 git-svn-id: http://core.svn.wordpress.org/trunk@35714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user