WordPress.org

Make WordPress Core

Changeset 27835


Ignore:
Timestamp:
03/29/14 05:17:57 (4 years ago)
Author:
nacin
Message:

Rewrite: Use same delimiter in url_to_postid() we use in WP::parse_request().

props stevenkword.
fixes #23587.

File:
1 edited

Legend:

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

    r27346 r27835  
    363363            $request_match = $url . '/' . $request; 
    364364 
    365         if ( preg_match("!^$match!", $request_match, $matches) ) { 
     365        if ( preg_match("#^$match#", $request_match, $matches) ) { 
    366366 
    367367            if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { 
Note: See TracChangeset for help on using the changeset viewer.