Changeset 37274 for branches/4.5/src/wp-admin/includes/misc.php
- Timestamp:
- 04/21/2016 09:36:50 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5/src/wp-admin/includes/misc.php
r36587 r37274 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\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]'); 495 495 if ( $rules->length == 0 ) 496 496 return 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\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]'); 525 525 if ( $rules->length > 0 ) { 526 526 $child = $rules->item(0); … … 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\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]'); 566 566 if ( $wordpress_rules->length > 0 ) 567 567 return true;
Note: See TracChangeset
for help on using the changeset viewer.