Make WordPress Core

Ticket #26970: 26970.diff

File 26970.diff, 497 bytes (added by Denis-de-Bernardy, 11 years ago)
  • wp-includes/rewrite.php

    diff --git wp-includes/rewrite.php wp-includes/rewrite.php
    index 2b48cdf..16761f9 100644
    function url_to_postid($url) { 
    364364
    365365                        // Got a match.
    366366                        // Trim the query of everything up to the '?'.
    367                         $query = preg_replace("!^.+\?!", '', $query);
     367                        $query = preg_replace("#^.+\?#", '', $query);
    368368
    369369                        // Substitute the substring matches into the query.
    370370                        $query = addslashes(WP_MatchesMapRegex::apply($query, $matches));