Changeset 46101 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 09/13/2019 03:05:15 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r46099 r46101 1216 1216 if ( 'boolean' === $args['type'] && ! rest_is_boolean( $value ) ) { 1217 1217 /* translators: 1: Parameter, 2: Type name. */ 1218 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not of type %2$s.' ), $ value, 'boolean' ) );1218 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not of type %2$s.' ), $param, 'boolean' ) ); 1219 1219 } 1220 1220 … … 1240 1240 if ( ! rest_is_ip_address( $value ) ) { 1241 1241 /* translators: %s: IP address. */ 1242 return new WP_Error( 'rest_invalid_param', sprintf( __( '%s is not a valid IP address.' ), $ value) );1242 return new WP_Error( 'rest_invalid_param', sprintf( __( '%s is not a valid IP address.' ), $param ) ); 1243 1243 } 1244 1244 break;
Note: See TracChangeset
for help on using the changeset viewer.