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

WordPress Trac noreply at wordpress.org
Tue Jul 3 15:09:59 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         |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => close


Comment:

 Have you tried setting `reassign` to a falsey value like `0` or `'false'`?
 The API requires you to provide/acknowledge the `reassign` parameter, but
 it should not require reassigning.

 This is covered with a unit test,
 `WP_Test_REST_Users_Controller::test_delete_item()`.

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


More information about the wp-trac mailing list