WordPress.org

Make WordPress Core

Ticket #18034: 18034.4.patch

File 18034.4.patch, 572 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-includes/link-template.php

     
    13851385
    13861386        $home_root = parse_url(home_url());
    13871387        $home_root = ( isset($home_root['path']) ) ? $home_root['path'] : '';
    1388         $home_root = preg_quote( trailingslashit( $home_root ), '|' );
     1388        $home_root = preg_quote( $home_root, '|' );
    13891389
    13901390        $request = preg_replace('|^'. $home_root . '|', '', $request);
    13911391        $request = preg_replace('|^/+|', '', $request);