Changeset 47550 for trunk/src/wp-admin/network/site-settings.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-settings.php
r47219 r47550 44 44 $key = wp_unslash( $key ); 45 45 $val = wp_unslash( $val ); 46 if ( 0 === $key || is_array( $val ) || in_array( $key, $skip_options ) ) {46 if ( 0 === $key || is_array( $val ) || in_array( $key, $skip_options, true ) ) { 47 47 continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options. 48 48 } … … 150 150 <tr class="form-field"> 151 151 <th scope="row"><label for="<?php echo esc_attr( $option->option_name ); ?>"><?php echo esc_html( ucwords( str_replace( '_', ' ', $option->option_name ) ) ); ?></label></th> 152 <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?>152 <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ), true ) ) { ?> 153 153 <td><code><?php echo esc_html( $option->option_value ); ?></code></td> 154 154 <?php } else { ?>
Note: See TracChangeset
for help on using the changeset viewer.