mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -367,7 +367,8 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) {
|
||||
function refresh_user_details( $id ) {
|
||||
$id = (int) $id;
|
||||
|
||||
if ( ! $user = get_userdata( $id ) ) {
|
||||
$user = get_userdata( $id );
|
||||
if ( ! $user ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -908,7 +909,8 @@ function confirm_delete_users( $users ) {
|
||||
?>
|
||||
<table class="form-table" role="presentation">
|
||||
<?php
|
||||
foreach ( ( $allusers = (array) $_POST['allusers'] ) as $user_id ) {
|
||||
$allusers = (array) $_POST['allusers'];
|
||||
foreach ( $allusers as $user_id ) {
|
||||
if ( $user_id != '' && $user_id != '0' ) {
|
||||
$delete_user = get_userdata( $user_id );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user