WordPress.org

Make WordPress Core

Changeset 21174


Ignore:
Timestamp:
06/28/12 20:54:20 (22 months 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.