Rewrite: Use same delimiter in url_to_postid() we use in WP::parse_request().
props stevenkword. fixes #23587. git-svn-id: https://develop.svn.wordpress.org/trunk@27835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84cf72160d
commit
9b0101e59d
@ -362,7 +362,7 @@ function url_to_postid($url) {
|
||||
if ( !empty($url) && ($url != $request) && (strpos($match, $url) === 0) )
|
||||
$request_match = $url . '/' . $request;
|
||||
|
||||
if ( preg_match("!^$match!", $request_match, $matches) ) {
|
||||
if ( preg_match("#^$match#", $request_match, $matches) ) {
|
||||
|
||||
if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {
|
||||
// this is a verbose page match, lets check to be sure about it
|
||||
|
Loading…
Reference in New Issue
Block a user