Ticket #38398: 38398.5.patch
File 38398.5.patch, 697 bytes (added by , 7 years ago) |
---|
-
wp-includes/rest-api/class-wp-rest-request.php
967 967 968 968 $api_root = rest_url(); 969 969 if ( get_option( 'permalink_structure' ) && 0 === strpos( $url, $api_root ) ) { 970 // Pretty permalinks on, and URL is under the API root 970 // Pretty permalinks on, and URL is under the API root. 971 971 $api_url_part = substr( $url, strlen( untrailingslashit( $api_root ) ) ); 972 972 $route = parse_url( $api_url_part, PHP_URL_PATH ); 973 973 } elseif ( ! empty( $query_params['rest_route'] ) ) {