- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r47088 r47122 447 447 $params = array(); 448 448 foreach ( $order as $type ) { 449 // array_merge / the "+" operator will mess up449 // array_merge() / the "+" operator will mess up 450 450 // numeric keys, so instead do a manual foreach. 451 451 foreach ( (array) $this->params[ $type ] as $key => $value ) { … … 675 675 676 676 $this->params['JSON'] = $params; 677 677 678 return true; 678 679 } … … 784 785 continue; 785 786 } 787 786 788 foreach ( $this->params[ $type ] as $key => $value ) { 787 789 if ( ! isset( $attributes['args'][ $key ] ) ) { 788 790 continue; 789 791 } 792 790 793 $param_args = $attributes['args'][ $key ]; 791 794 … … 989 992 $route = parse_url( $api_url_part, PHP_URL_PATH ); 990 993 } elseif ( ! empty( $query_params['rest_route'] ) ) { 991 // ?rest_route=... set directly 994 // ?rest_route=... set directly. 992 995 $route = $query_params['rest_route']; 993 996 unset( $query_params['rest_route'] );
Note: See TracChangeset
for help on using the changeset viewer.