Make WordPress Core

Ticket #36506: misc.2.diff

File misc.2.diff, 943 bytes (added by WiZZarD_, 8 years ago)
  • .php

    old new  
    491491        if ( $doc->load($filename) === false )
    492492                return false;
    493493        $xpath = new DOMXPath($doc);
    494         $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]');
     494        $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress:\')]');
    495495        if ( $rules->length == 0 )
    496496                return false;
    497497        else
     
    521521        if ( $doc -> load($filename) === false )
    522522                return false;
    523523        $xpath = new DOMXPath($doc);
    524         $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]');
     524        $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress:\')]');
    525525        if ( $rules->length > 0 ) {
    526526                $child = $rules->item(0);
    527527                $parent = $child->parentNode;