[wp-trac] [WordPress Trac] #44495: API requires "reassign" while it's optional within WordPress core

WordPress Trac noreply at wordpress.org
Tue Jul 3 09:09:20 UTC 2018


#44495: API requires "reassign" while it's optional within WordPress core
--------------------------+-----------------------------
 Reporter:  apermo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.9.6
 Severity:  minor         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 https://core.trac.wordpress.org/browser/tags/4.9/src/wp-
 admin/includes/user.php#L289

 The WordPress function wp_delete_user() has an optional value $reassign.

 https://developer.wordpress.org/rest-api/reference/users/#delete-a-user

 While the same functionality inside the API has a required value
 $reassign.

 This is inconsistent. Is this for a special reason? If so please explain.
 Or was this simply overlooked while programming.

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


More information about the wp-trac mailing list