| @@ -42,13 +42,13 @@ | ||
| 42 | 42 | * their passwords and log in). If they have any content, reassign it to the |
| 43 | 43 | * current user (the user uninstalling the plugin). |
| 44 | 44 | */ |
| 45 | 45 | if ( ! is_multisite() ) { |
| 46 | - $authorizer_reassign_user = wp_get_current_user(); | |
| 47 | - $authorizer_blocked_users = get_users( array( | |
| 46 | + $reassign_user = wp_get_current_user(); | |
| 47 | + $blocked_users = get_users( array( | |
| 48 | 48 | 'meta_key' => 'auth_blocked', // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key |
| 49 | 49 | 'meta_value' => 'yes', // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_value |
| 50 | 50 | ) ); |
| 51 | - foreach ( $authorizer_blocked_users as $authorizer_blocked_user ) { | |
| 52 | - wp_delete_user( $authorizer_blocked_user->ID, $authorizer_reassign_user->ID ); | |
| 51 | + foreach ( $blocked_users as $blocked_user ) { | |
| 52 | + wp_delete_user( $blocked_user->ID, $reassign_user->ID ); | |
| 53 | 53 | } |
| 54 | 54 | } |