[wp-trac] [WordPress Trac] #40798: Backbone.js throws exception with custom endpoint

WordPress Trac noreply at wordpress.org
Thu May 18 08:18:35 UTC 2017


#40798: Backbone.js throws exception with custom endpoint
----------------------------------+-----------------------------
 Reporter:  lucrus                |      Owner:
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  REST API              |    Version:  4.7.4
 Severity:  normal                |   Keywords:
  Focuses:  javascript, rest-api  |
----------------------------------+-----------------------------
 You can find a sample plugin attached, that shows the issue. The plugin is
 supposed to show an alert dialog, but the JS code throws an exception
 instead.

 Please note that I've already tried different combinations of specifying
 the "wp-api" dependency, and the exception changes as I switch it to a
 different method (wp_register_script, wp_enqueue_script or both), but
 still none of them work.

 More details here:

 https://wordpress.stackexchange.com/questions/266890/rest-api-backbone-
 and-custom-endpoint

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40798>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list