[wp-trac] [WordPress Trac] #35063: user deletion form hook docs incorrect and could use ids of users to be deleted

WordPress Trac noreply at wordpress.org
Mon Dec 14 00:08:33 UTC 2015


#35063: user deletion form hook docs incorrect and could use ids of users to be
deleted
----------------------------------+-----------------------------
 Reporter:  usermrpapa            |      Owner:
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Administration        |    Version:  4.4
 Severity:  normal                |   Keywords:
  Focuses:  docs, administration  |
----------------------------------+-----------------------------
 When deleting users in the wp admin, the user deletion form fires this
 action:

 {{{
         /**
          * Fires at the end of the delete users form prior to the confirm
 button.
          *
          * @since 4.0.0
          *
          * @param WP_User $current_user WP_User object for the user being
 deleted.
          */
         do_action( 'delete_user_form', $current_user );
 }}}

 the @param docs are wrong...  the $current_user is not the user object for
 the user being deleted - its the user doing the deletion...

 which actually is kind of pointless to pass... what really needs to be
 passed is the list of user ids to be deleted...

 purpose of this ticket and patch is to fix the docs and add another
 argument to the hook...

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


More information about the wp-trac mailing list