Changeset 47219 for trunk/src/wp-admin/network/site-settings.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-settings.php
r47198 r47219 44 44 $key = wp_unslash( $key ); 45 45 $val = wp_unslash( $val ); 46 if ( $key === 0|| is_array( $val ) || in_array( $key, $skip_options ) ) {46 if ( 0 === $key || is_array( $val ) || in_array( $key, $skip_options ) ) { 47 47 continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options. 48 48 } … … 125 125 $options = $wpdb->get_results( $query ); 126 126 foreach ( $options as $option ) { 127 if ( $option->option_name == 'default_role') {127 if ( 'default_role' === $option->option_name ) { 128 128 $editblog_default_role = $option->option_value; 129 129 }
Note: See TracChangeset
for help on using the changeset viewer.