WordPress.org

Make WordPress Core

Ticket #8847: 8847.patch

File 8847.patch, 576 bytes (added by jakbob, 3 years ago)
  • link-template.php

     
    14881488        $home_root = ( isset($home_root['path']) ) ? $home_root['path'] : ''; 
    14891489        $home_root = preg_quote( trailingslashit( $home_root ), '|' ); 
    14901490 
    1491         $request = preg_replace('|^'. $home_root . '|', '', $request); 
     1491        $request = preg_replace('|^'. $home_root . '|i', '', $request); 
    14921492        $request = preg_replace('|^/+|', '', $request); 
    14931493 
    14941494        if ( !$wp_rewrite->using_permalinks() || is_admin() ) {