[wp-trac] [WordPress Trac] #40672: Undefined property `requireForceForDelete` prevents deleting terms in Backbone.js client

WordPress Trac noreply at wordpress.org
Tue Oct 31 00:19:21 UTC 2017


#40672: Undefined property `requireForceForDelete` prevents deleting terms in
Backbone.js client
--------------------------+-----------------------------------
 Reporter:  caercam       |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.9
Component:  REST API      |     Version:  4.7.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript, rest-api
--------------------------+-----------------------------------

Comment (by adamsilverstein):

 In [attachment:40672.3.diff]
 * Revert to using a hard coded list of object types that support trash
 (other types require `?force=true` to delete)

 Until we have a reliable way to determine if an object type supports the
 trash, enumerate the types them so we know when to use force=true when
 deleting.

 Ideally we would add information into the schema that the client could use
 to reliably determine if an endpoint supports the trash on DELETE. @rmccue
 - where do you think we could expose that information?

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


More information about the wp-trac mailing list