Changeset 41140 for branches/4.8/src/wp-includes/rest-api.php
- Timestamp:
- 07/25/2017 12:53:47 AM (9 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/rest-api.php
r40843 r41140 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.