Ticket #23067: 23067.diff

File 23067.diff, 401 bytes (added by scribu, 5 months ago)
  • wp-admin/includes/user.php

    diff --git wp-admin/includes/user.php wp-admin/includes/user.php
    index 1d60aa5..ea3bdbf 100644
    function wp_delete_user( $id, $reassign = 'novalue' ) { 
    240240        $id = (int) $id; 
    241241        $user = new WP_User( $id ); 
    242242 
     243        if ( !$user->exists() ) 
     244                return false; 
     245 
    243246        // allow for transaction statement 
    244247        do_action('delete_user', $id); 
    245248