- Timestamp:
- 05/02/2023 03:43:03 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r55210 r55703 1032 1032 1033 1033 $api_root = rest_url(); 1034 if ( get_option( 'permalink_structure' ) && 0 === strpos( $url, $api_root ) ) {1034 if ( get_option( 'permalink_structure' ) && str_starts_with( $url, $api_root ) ) { 1035 1035 // Pretty permalinks on, and URL is under the API root. 1036 1036 $api_url_part = substr( $url, strlen( untrailingslashit( $api_root ) ) );
Note: See TracChangeset
for help on using the changeset viewer.