WordPress.org

Make WordPress Core

Ticket #4160: patch.diff

File patch.diff, 484 bytes (added by alexkingorg, 8 years ago)

patch

  • wp-includes/rewrite.php

     
    6363// determine the post ID it represents. 
    6464function url_to_postid($url) { 
    6565        global $wp_rewrite; 
     66         
     67        $url = apply_filters('url_to_postid', $url); 
    6668 
    6769        // First, check to see if there is a 'p=N' or 'page_id=N' to match against 
    6870        preg_match('#[?&](p|page_id)=(\d+)#', $url, $values);