Changeset 56014 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 06/24/2023 09:50:34 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r55703 r56014 468 468 // nginx only allows HTTP/1.0 methods when redirecting from / to /index.php. 469 469 // To work around this, we manually add index.php to the URL, avoiding the redirect. 470 if ( 'index.php' !== substr( $url, 9) ) {470 if ( ! str_ends_with( $url, 'index.php' ) ) { 471 471 $url .= 'index.php'; 472 472 }
Note: See TracChangeset
for help on using the changeset viewer.