Changeset 14312
- Timestamp:
- 04/29/2010 09:41:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r13806 r14312 489 489 return false; 490 490 $xpath = new DOMXPath($doc); 491 $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[ @name=\'wordpress\']');491 $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]'); 492 492 if ( $rules->length == 0 ) 493 493 return false; … … 518 518 return false; 519 519 $xpath = new DOMXPath($doc); 520 $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[ @name=\'wordpress\']');520 $rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]'); 521 521 if ( $rules->length > 0 ) { 522 522 $child = $rules->item(0); … … 558 558 559 559 // First check if the rule already exists as in that case there is no need to re-add it 560 $wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[ @name=\'wordpress\']');560 $wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')]'); 561 561 if ( $wordpress_rules->length > 0 ) 562 562 return true;
Note: See TracChangeset
for help on using the changeset viewer.