Changeset 47557 for trunk/src/wp-admin/network/site-info.php
- Timestamp:
- 04/09/2020 03:41:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-info.php
r47198 r47557 73 73 $existing_details = get_site( $id ); 74 74 $blog_data_checkboxes = array( 'public', 'archived', 'spam', 'mature', 'deleted' ); 75 75 76 foreach ( $blog_data_checkboxes as $c ) { 76 if ( ! in_array( $existing_details->$c, array( 0, 1 )) ) {77 if ( ! in_array( (int) $existing_details->$c, array( 0, 1 ), true ) ) { 77 78 $blog_data[ $c ] = $existing_details->$c; 78 79 } else { … … 195 196 <legend class="screen-reader-text"><?php _e( 'Set site attributes' ); ?></legend> 196 197 <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?> 197 <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( $details->$field_key, array( 0, 1 )) ); ?> />198 <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> /> 198 199 <?php echo $field_label; ?></label><br/> 199 200 <?php endforeach; ?>
Note: See TracChangeset
for help on using the changeset viewer.