[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
Wed Nov 30 23:59:17 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:
     Type:  defect (bug)                  |      Status:  new
 Priority:  high                          |   Milestone:  4.7
Component:  REST API                      |     Version:  trunk
 Severity:  major                         |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  multisite
------------------------------------------+------------------------

Comment (by jnylen0):

 As discussed in Slack ([https://wordpress.slack.com/archives/core-
 restapi/p1480546859002876 some more]) 0 has special meaning for a post
 author.

 Is `reassign=0` a valid operation? If so, we should support `null` as a
 special value rather than using `-1`. This will require removing the
 `integer` type and adding a custom `sanitize_callback` - see #38971 for a
 similar example.

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


More information about the wp-trac mailing list