Make WordPress Core

Ticket #36827: wp_guess_url_regex.patch

File wp_guess_url_regex.patch, 672 bytes (added by cfinke, 7 years ago)

Escapes the dot in the regex.

  • wp-includes/functions.php

     
    40874087
    40884088                // The request is for the admin
    40894089                if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) !== false || strpos( $_SERVER['REQUEST_URI'], 'wp-login.php' ) !== false ) {
    4090                         $path = preg_replace( '#/(wp-admin/.*|wp-login.php)#i', '', $_SERVER['REQUEST_URI'] );
     4090                        $path = preg_replace( '#/(wp-admin/.*|wp-login\.php)#i', '', $_SERVER['REQUEST_URI'] );
    40914091
    40924092                // The request is for a file in ABSPATH
    40934093                } elseif ( $script_filename_dir . '/' == $abspath_fix ) {