Changeset 36535 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 02/16/2016 05:50:21 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r36534 r36535 821 821 $response = null; 822 822 823 $checked_method = 'HEAD' === $method ? 'GET' : $method; 823 // Fallback to GET method if no HEAD method is registered. 824 $checked_method = $method; 825 if ( 'HEAD' === $method && empty( $handler['methods']['HEAD'] ) ) { 826 $checked_method = 'GET'; 827 } 824 828 if ( empty( $handler['methods'][ $checked_method ] ) ) { 825 829 continue;
Note: See TracChangeset
for help on using the changeset viewer.