WordPress.org

Make WordPress Core

Changeset 6614


Ignore:
Timestamp:
01/14/08 21:44:08 (8 years ago)
Author:
ryan
Message:

Don't double requested url in url_to_postid(). Props filosofo. fixes #5661

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r6592 r6614  
    128128        // If the requesting file is the anchor of the match, prepend it 
    129129        // to the path info. 
    130         if ( (! empty($url)) && (strpos($match, $url) === 0) ) { 
     130        if ( (! empty($url)) && (strpos($match, $url) === 0) && ($url != $request)) { 
    131131            $request_match = $url . '/' . $request; 
    132132        } 
Note: See TracChangeset for help on using the changeset viewer.