Changeset 41139 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 07/25/2017 12:49:22 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r40843 r41139 325 325 } else { 326 326 $url = trailingslashit( get_home_url( $blog_id, '', $scheme ) ); 327 // nginx only allows HTTP/1.0 methods when redirecting from / to /index.php 328 // To work around this, we manually add index.php to the URL, avoiding the redirect. 329 if ( 'index.php' !== substr( $url, 9 ) ) { 330 $url .= 'index.php'; 331 } 327 332 328 333 $path = '/' . ltrim( $path, '/' );
Note: See TracChangeset
for help on using the changeset viewer.