- Timestamp:
- 03/11/2025 02:17:41 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r59899 r59970 500 500 } 501 501 502 $response = $is_head_request ? new WP_REST_Response( ) : rest_ensure_response( $posts );502 $response = $is_head_request ? new WP_REST_Response( array() ) : rest_ensure_response( $posts ); 503 503 504 504 $response->header( 'X-WP-Total', (int) $total_posts ); … … 1848 1848 if ( $request->is_method( 'HEAD' ) ) { 1849 1849 /** This filter is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php */ 1850 return apply_filters( "rest_prepare_{$this->post_type}", new WP_REST_Response( ), $post, $request );1850 return apply_filters( "rest_prepare_{$this->post_type}", new WP_REST_Response( array() ), $post, $request ); 1851 1851 } 1852 1852
Note: See TracChangeset
for help on using the changeset viewer.