Changeset 47219 for trunk/src/wp-admin/includes/misc.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r47198 r47219 650 650 $value = $_POST['wp_screen_options']['value']; 651 651 652 if ( $option != sanitize_key( $option )) {652 if ( sanitize_key( $option ) != $option ) { 653 653 return; 654 654 } … … 745 745 $xpath = new DOMXPath( $doc ); 746 746 $rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' ); 747 if ( $rules->length == 0) {747 if ( 0 == $rules->length ) { 748 748 return false; 749 749 } else { … … 1290 1290 */ 1291 1291 function update_option_new_admin_email( $old_value, $value ) { 1292 if ( $value == get_option( 'admin_email' )|| ! is_email( $value ) ) {1292 if ( get_option( 'admin_email' ) === $value || ! is_email( $value ) ) { 1293 1293 return; 1294 1294 }
Note: See TracChangeset
for help on using the changeset viewer.