- Timestamp:
- 03/11/2025 02:17:41 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r59899 r59970 272 272 if ( $request->is_method( 'HEAD' ) ) { 273 273 // Return early as this handler doesn't add any response headers. 274 return new WP_REST_Response( );274 return new WP_REST_Response( array() ); 275 275 } 276 276 … … 676 676 // Don't prepare the response body for HEAD requests. 677 677 if ( $request->is_method( 'HEAD' ) ) { 678 return new WP_REST_Response( );678 return new WP_REST_Response( array() ); 679 679 } 680 680
Note: See TracChangeset
for help on using the changeset viewer.