- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r42746 r43571 803 803 if ( $invalid_params ) { 804 804 return new WP_Error( 805 'rest_invalid_param', sprintf( __( 'Invalid parameter(s): %s' ), implode( ', ', array_keys( $invalid_params ) ) ), array( 805 'rest_invalid_param', 806 sprintf( __( 'Invalid parameter(s): %s' ), implode( ', ', array_keys( $invalid_params ) ) ), 807 array( 806 808 'status' => 400, 807 809 'params' => $invalid_params, … … 846 848 if ( ! empty( $required ) ) { 847 849 return new WP_Error( 848 'rest_missing_callback_param', sprintf( __( 'Missing parameter(s): %s' ), implode( ', ', $required ) ), array( 850 'rest_missing_callback_param', 851 sprintf( __( 'Missing parameter(s): %s' ), implode( ', ', $required ) ), 852 array( 849 853 'status' => 400, 850 854 'params' => $required, … … 879 883 if ( $invalid_params ) { 880 884 return new WP_Error( 881 'rest_invalid_param', sprintf( __( 'Invalid parameter(s): %s' ), implode( ', ', array_keys( $invalid_params ) ) ), array( 885 'rest_invalid_param', 886 sprintf( __( 'Invalid parameter(s): %s' ), implode( ', ', array_keys( $invalid_params ) ) ), 887 array( 882 888 'status' => 400, 883 889 'params' => $invalid_params,
Note: See TracChangeset
for help on using the changeset viewer.