Make WordPress Core

Ticket #38398: 38398.5.patch

File 38398.5.patch, 697 bytes (added by mrahmadawais, 7 years ago)

FIX: File class-wp-rest-request.php Inline comments must end with periods.

  • wp-includes/rest-api/class-wp-rest-request.php

     
    967967
    968968                $api_root = rest_url();
    969969                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.
    971971                        $api_url_part = substr( $url, strlen( untrailingslashit( $api_root ) ) );
    972972                        $route = parse_url( $api_url_part, PHP_URL_PATH );
    973973                } elseif ( ! empty( $query_params['rest_route'] ) ) {