Coding Standards: Remove unused `$key` variable in `wp-admin/network/sites.php`.
Rename `$val` to `$site_id` for clarity. Follow-up to [12603], [18562], [30020]. See #57839. Built from https://develop.svn.wordpress.org/trunk@55676 git-svn-id: http://core.svn.wordpress.org/trunk@55188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8659101491
commit
ead3a2ec81
|
@ -181,8 +181,8 @@ if ( isset( $_GET['action'] ) ) {
|
|||
if ( isset( $_POST['action'] ) && isset( $_POST['allblogs'] ) ) {
|
||||
$doaction = $_POST['action'];
|
||||
|
||||
foreach ( (array) $_POST['allblogs'] as $key => $val ) {
|
||||
if ( '0' != $val && ! is_main_site( $val ) ) {
|
||||
foreach ( (array) $_POST['allblogs'] as $site_id ) {
|
||||
if ( '0' != $site_id && ! is_main_site( $site_id ) ) {
|
||||
switch ( $doaction ) {
|
||||
case 'delete':
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
@ -217,7 +217,7 @@ if ( isset( $_GET['action'] ) ) {
|
|||
case 'spam':
|
||||
case 'notspam':
|
||||
$updated_action = ( 'spam' === $doaction ) ? 'all_spam' : 'all_notspam';
|
||||
update_blog_status( $val, 'spam', ( 'spam' === $doaction ) ? '1' : '0' );
|
||||
update_blog_status( $site_id, 'spam', ( 'spam' === $doaction ) ? '1' : '0' );
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55675';
|
||||
$wp_version = '6.3-alpha-55676';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue