[wp-trac] [WordPress Trac] #34993: Deleting a user no longer asks what to do with their content

WordPress Trac noreply at wordpress.org
Thu Dec 10 22:30:19 UTC 2015


#34993: Deleting a user no longer asks what to do with their content
----------------------------+-----------------------------
 Reporter:  beerallica      |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Users           |    Version:  4.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 The process that deletes a user seems to only notice '''posts''', and
 ignore other post_types, so it doesn't ask me if I want to attribute their
 content to other users if that content is of custom post_type.

 On a certain installation, trying to delete a user that has zero posts,
 but 10 bbpress topics and 19 replies. the following query:

 {{{
 $users_posts = new WP_Query( array( 'post_type' => 'any', 'author'
 =>$user_id, 'posts_per_page' => 1    ) );
 var_dump( $users_posts->found_posts, $users_posts->have_posts() );
 }}}

 returns

 {{{
 int(0) bool(false)
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34993>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list