Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit 23f598c

Browse files
committed
Period missing.
1 parent 77bb991 commit 23f598c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,20 +456,20 @@ function rest_validate_request_arg( $value, $request, $param ) {
456456

457457
if ( ! empty( $args['enum'] ) ) {
458458
if ( ! in_array( $value, $args['enum'] ) ) {
459-
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: list of enum */ __( '%1$s is not one of %2$s' ), $param, implode( ', ', $args['enum'] ) ) );
459+
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: list of enum */ __( '%1$s is not one of %2$s.' ), $param, implode( ', ', $args['enum'] ) ) );
460460
}
461461
}
462462

463463
if ( 'integer' === $args['type'] && ! is_numeric( $value ) ) {
464-
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s' ), $param, 'integer' ) );
464+
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s.' ), $param, 'integer' ) );
465465
}
466466

467467
if ( 'boolean' === $args['type'] && ! rest_is_boolean( $value ) ) {
468-
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s' ), $value, 'boolean' ) );
468+
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s.' ), $value, 'boolean' ) );
469469
}
470470

471471
if ( 'string' === $args['type'] && ! is_string( $value ) ) {
472-
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s' ), $param, 'string' ) );
472+
return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s.' ), $param, 'string' ) );
473473
}
474474

475475
if ( isset( $args['format'] ) ) {

0 commit comments

Comments
 (0)