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

WordPress Trac noreply at wordpress.org
Fri May 5 16:46:04 UTC 2017


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

 * keywords:   => has-patch reporter-feedback needs-unit-tests


Comment:

 In [attachment:40672.diff]:
 * base addition of `?force=delete` when destroying a model on the schema
 route method data
 * apply force=delete to models with and without parents

 @caercam can you please give this a test, in my testing Category models
 now get `?force=delete`, while Post models do not. Some unit test for the
 expected behavior would be a good addition, I don't think we test for this
 yet.

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


More information about the wp-trac mailing list