mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-06 08:28:07 +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';
|
$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 );
|
wpmu_delete_blog( $id, true );
|
||||||
$updated_action = 'delete';
|
$updated_action = 'delete';
|
||||||
}
|
}
|
||||||
@ -182,7 +182,9 @@ if ( isset( $_GET['action'] ) ) {
|
|||||||
$doaction = $_POST['action'];
|
$doaction = $_POST['action'];
|
||||||
|
|
||||||
foreach ( (array) $_POST['allblogs'] as $site_id ) {
|
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 ) {
|
switch ( $doaction ) {
|
||||||
case 'delete':
|
case 'delete':
|
||||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
@ -197,12 +199,14 @@ if ( isset( $_GET['action'] ) ) {
|
|||||||
<ul class="ul-disc">
|
<ul class="ul-disc">
|
||||||
<?php
|
<?php
|
||||||
foreach ( $_POST['allblogs'] as $site_id ) :
|
foreach ( $_POST['allblogs'] as $site_id ) :
|
||||||
|
$site_id = (int) $site_id;
|
||||||
|
|
||||||
$site = get_site( $site_id );
|
$site = get_site( $site_id );
|
||||||
$site_address = untrailingslashit( $site->domain . $site->path );
|
$site_address = untrailingslashit( $site->domain . $site->path );
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<?php echo $site_address; ?>
|
<?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>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user