Ticket #26970: 26970.diff
File 26970.diff, 497 bytes (added by , 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) { 364 364 365 365 // Got a match. 366 366 // Trim the query of everything up to the '?'. 367 $query = preg_replace(" !^.+\?!", '', $query);367 $query = preg_replace("#^.+\?#", '', $query); 368 368 369 369 // Substitute the substring matches into the query. 370 370 $query = addslashes(WP_MatchesMapRegex::apply($query, $matches));