Changeset 55876
- Timestamp:
- 06/02/2023 12:38:21 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/sites.php
r55676 r55876 143 143 144 144 $updated_action = 'not_deleted'; 145 if ( '0' != $id && ! is_main_site( $id ) && current_user_can( 'delete_site', $id ) ) {145 if ( 0 !== $id && ! is_main_site( $id ) && current_user_can( 'delete_site', $id ) ) { 146 146 wpmu_delete_blog( $id, true ); 147 147 $updated_action = 'delete'; … … 183 183 184 184 foreach ( (array) $_POST['allblogs'] as $site_id ) { 185 if ( '0' != $site_id && ! is_main_site( $site_id ) ) { 185 $site_id = (int) $site_id; 186 187 if ( 0 !== $site_id && ! is_main_site( $site_id ) ) { 186 188 switch ( $doaction ) { 187 189 case 'delete': … … 198 200 <?php 199 201 foreach ( $_POST['allblogs'] as $site_id ) : 202 $site_id = (int) $site_id; 203 200 204 $site = get_site( $site_id ); 201 205 $site_address = untrailingslashit( $site->domain . $site->path ); … … 203 207 <li> 204 208 <?php echo $site_address; ?> 205 <input type="hidden" name="site_ids[]" value="<?php echo (int) $site_id; ?>" />209 <input type="hidden" name="site_ids[]" value="<?php echo esc_attr( $site_id ); ?>" /> 206 210 </li> 207 211 <?php endforeach; ?>
Note: See TracChangeset
for help on using the changeset viewer.