Make WordPress Core

Ticket #26827: patch.diff

File patch.diff, 609 bytes (added by bansod_deven, 11 years ago)

Patch for the Bug ! Hope it Works ! Just Changed the Delimiter from ' ! ' to ' ` '

  • rewrite.php

     
    354354                if ( !empty($url) && ($url != $request) && (strpos($match, $url) === 0) )
    355355                        $request_match = $url . '/' . $request;
    356356
    357                 if ( preg_match("!^$match!", $request_match, $matches) ) {
     357                if ( preg_match("`^$match`", $request_match, $matches) ) {
    358358
    359359                        if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {
    360360                                // this is a verbose page match, lets check to be sure about it