Ticket #16358: 16358-static.diff
| File 16358-static.diff, 634 bytes (added by , 15 years ago) |
|---|
-
wp-admin/includes/user.php
278 278 do_action('delete_user', $id); 279 279 280 280 if ( 'novalue' === $reassign || null === $reassign ) { 281 $post_ids = $wpdb->get_col( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_author = %d ", $id) );281 $post_ids = $wpdb->get_col( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_author = %d AND post_type IN ('post', 'page', 'attachment')", $id) ); 282 282 283 283 if ( $post_ids ) { 284 284 foreach ( $post_ids as $post_id )