[wp-trac] [WordPress Trac] #38962: REST API: Don't delete posts/links when deleting/removing a user from a site in a multisite install

WordPress Trac noreply at wordpress.org
Fri Dec 2 17:35:10 UTC 2016


#38962: REST API: Don't delete posts/links when deleting/removing a user from a
site in a multisite install
--------------------------------------+-------------------------
 Reporter:  ocean90                   |       Owner:  jeremyfelt
     Type:  defect (bug)              |      Status:  assigned
 Priority:  high                      |   Milestone:  4.7
Component:  REST API                  |     Version:  trunk
 Severity:  major                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+-------------------------
Changes (by pento):

 * keywords:  has-patch has-unit-tests commit dev-feedback i18n-change =>
     has-patch has-unit-tests


Comment:

 As @jnylen0 suggested, the tests should use `assertErrorResponse()` to
 test the error.

 I don't think we need to change the error code, though. There are no other
 multisite-specific error codes.

 I removed the `i18n-change` keyword, because this isn't a new string.

 Apart from that, I'm cool with this change.

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


More information about the wp-trac mailing list