Ticket #36506: misc.2.diff
File misc.2.diff, 943 bytes (added by , 9 years ago) |
---|
-
.php
old new 491 491 if ( $doc->load($filename) === false ) 492 492 return false; 493 493 $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:\')]'); 495 495 if ( $rules->length == 0 ) 496 496 return false; 497 497 else … … 521 521 if ( $doc -> load($filename) === false ) 522 522 return false; 523 523 $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:\')]'); 525 525 if ( $rules->length > 0 ) { 526 526 $child = $rules->item(0); 527 527 $parent = $child->parentNode;