Make WordPress Core

Ticket #7416: wp-user-sql.patch

File wp-user-sql.patch, 757 bytes (added by docwhat, 16 years ago)
  • wp-admin/includes/user.php

    diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php
    index 21073ba..a87535a 100644
    a b function wp_delete_user($id, $reassign = 'novalue') { 
    259259        } else {
    260260                $reassign = (int) $reassign;
    261261                $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_author = %d WHERE post_author = %d", $reassign, $id) );
    262                 $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d}", $reassign, $id) );
     262                $wpdb->query( $wpdb->prepare("UPDATE $wpdb->links SET link_owner = %d WHERE link_owner = %d", $reassign, $id) );
    263263        }
    264264
    265265        // FINALLY, delete user
    class WP_User_Search { 
    392392}
    393393endif;
    394394
    395 ?>
    396  No newline at end of file
     395?>