mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
Coding Standards: Use strict comparison in wp-admin/network/sites.php
.
Follow-up to [12603], [18562], [55676]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. Built from https://develop.svn.wordpress.org/trunk@55876 git-svn-id: http://core.svn.wordpress.org/trunk@55388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a04d9a32b3
commit
01121c3440
@ -142,7 +142,7 @@ if ( isset( $_GET['action'] ) ) {
|
||||
}
|
||||
|
||||
$updated_action = 'not_deleted';
|
||||
if ( '0' != $id && ! is_main_site( $id ) && current_user_can( 'delete_site', $id ) ) {
|
||||
if ( 0 !== $id && ! is_main_site( $id ) && current_user_can( 'delete_site', $id ) ) {
|
||||
wpmu_delete_blog( $id, true );
|
||||
$updated_action = 'delete';
|
||||
}
|
||||
@ -182,7 +182,9 @@ if ( isset( $_GET['action'] ) ) {
|
||||
$doaction = $_POST['action'];
|
||||
|
||||
foreach ( (array) $_POST['allblogs'] as $site_id ) {
|
||||
if ( '0' != $site_id && ! is_main_site( $site_id ) ) {
|
||||
$site_id = (int) $site_id;
|
||||
|
||||
if ( 0 !== $site_id && ! is_main_site( $site_id ) ) {
|
||||
switch ( $doaction ) {
|
||||
case 'delete':
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
@ -197,12 +199,14 @@ if ( isset( $_GET['action'] ) ) {
|
||||
<ul class="ul-disc">
|
||||
<?php
|
||||
foreach ( $_POST['allblogs'] as $site_id ) :
|
||||
$site_id = (int) $site_id;
|
||||
|
||||
$site = get_site( $site_id );
|
||||
$site_address = untrailingslashit( $site->domain . $site->path );
|
||||
?>
|
||||
<li>
|
||||
<?php echo $site_address; ?>
|
||||
<input type="hidden" name="site_ids[]" value="<?php echo (int) $site_id; ?>" />
|
||||
<input type="hidden" name="site_ids[]" value="<?php echo esc_attr( $site_id ); ?>" />
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55875';
|
||||
$wp_version = '6.3-alpha-55876';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user