Make WordPress Core


Ignore:
Timestamp:
06/28/2012 08:54:20 PM (12 years ago)
Author:
markjaquith
Message:

More reliably replace $home_root in $request in get_pagenum_link(). props SergeyBiryukov. fixes #18034

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r21169 r21174  
    13881388    $home_root = parse_url(home_url());
    13891389    $home_root = ( isset($home_root['path']) ) ? $home_root['path'] : '';
    1390     $home_root = preg_quote( trailingslashit( $home_root ), '|' );
     1390    $home_root = preg_quote( $home_root, '|' );
    13911391
    13921392    $request = preg_replace('|^'. $home_root . '|', '', $request);
Note: See TracChangeset for help on using the changeset viewer.