Ticket #36506: misc.php.patch
File misc.php.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/misc.php
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; … … 562 562 $xpath = new DOMXPath($doc); 563 563 564 564 // First check if the rule already exists as in that case there is no need to re-add it 565 $wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\' wordpress\')]');565 $wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress:\')]'); 566 566 if ( $wordpress_rules->length > 0 ) 567 567 return true; 568 568