- Timestamp:
- 11/23/2025 05:48:01 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r61276 r61282 358 358 359 359 $response = $is_head_request ? new WP_REST_Response( array() ) : rest_ensure_response( $comments ); 360 $response->header( 'X-WP-Total', $total_comments );361 $response->header( 'X-WP-TotalPages', $max_pages );360 $response->header( 'X-WP-Total', (string) $total_comments ); 361 $response->header( 'X-WP-TotalPages', (string) $max_pages ); 362 362 363 363 $base = add_query_arg( urlencode_deep( $request->get_query_params() ), rest_url( sprintf( '%s/%s', $this->namespace, $this->rest_base ) ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)