Ticket #33800: 33800_2.diff
File 33800_2.diff, 459 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/includes/user.php
273 273 function wp_delete_user( $id, $reassign = null ) { 274 274 global $wpdb; 275 275 276 $id = (int) $id; 276 if ( ! is_numeric( $id ) && ! $id instanceof WP_User ){ 277 return false; 278 } 279 277 280 $user = new WP_User( $id ); 278 281 279 282 if ( !$user->exists() )