Ticket #33800: 33800_1.diff
File 33800_1.diff, 898 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() ) -
src/wp-includes/class-wp-user.php
125 125 if ( $id instanceof WP_User ) { 126 126 $this->init( $id->data, $blog_id ); 127 127 return; 128 } elseif ( is_object( $id ) ) { 128 } elseif ( 129 ( $id ) ) { 129 130 $this->init( $id, $blog_id ); 130 131 return; 131 132 }