Changeset 45267
- Timestamp:
- 04/25/2019 12:07:23 AM (6 years ago)
- Location:
- trunk/src/wp-includes/rest-api/endpoints
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r43987 r45267 286 286 $response->header( 'X-WP-TotalPages', $max_pages ); 287 287 288 $base = add_query_arg( $request->get_query_params(), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) );288 $base = add_query_arg( urlencode_deep( $request->get_query_params() ), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) ); 289 289 290 290 if ( $request['page'] > 1 ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r45190 r45267 344 344 345 345 $request_params = $request->get_query_params(); 346 $base = add_query_arg( $request_params, rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) );346 $base = add_query_arg( urlencode_deep( $request_params ), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) ); 347 347 348 348 if ( $page > 1 ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r43584 r45267 302 302 303 303 $request_params = $request->get_query_params(); 304 $base = add_query_arg( $request_params, rest_url( sprintf( '%s/%s/%d/%s', $this->namespace, $this->parent_base, $request['parent'], $this->rest_base ) ) );304 $base = add_query_arg( urlencode_deep( $request_params ), rest_url( sprintf( '%s/%s/%d/%s', $this->namespace, $this->parent_base, $request['parent'], $this->rest_base ) ) ); 305 305 306 306 if ( $page > 1 ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
r44107 r45267 156 156 157 157 $request_params = $request->get_query_params(); 158 $base = add_query_arg( $request_params, rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) );158 $base = add_query_arg( urlencode_deep( $request_params ), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) ); 159 159 160 160 if ( $page > 1 ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r44965 r45267 283 283 $response->header( 'X-WP-TotalPages', (int) $max_pages ); 284 284 285 $base = add_query_arg( $request->get_query_params(), rest_url( $this->namespace . '/' . $this->rest_base ) );285 $base = add_query_arg( urlencode_deep( $request->get_query_params() ), rest_url( $this->namespace . '/' . $this->rest_base ) ); 286 286 if ( $page > 1 ) { 287 287 $prev_page = $page - 1; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r44641 r45267 330 330 $response->header( 'X-WP-TotalPages', (int) $max_pages ); 331 331 332 $base = add_query_arg( $request->get_query_params(), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) );332 $base = add_query_arg( urlencode_deep( $request->get_query_params() ), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) ); 333 333 if ( $page > 1 ) { 334 334 $prev_page = $page - 1;
Note: See TracChangeset
for help on using the changeset viewer.