[wp-trac] [WordPress Trac] #28093: Widgets JS API (was: Backbonify widgets admin UI)

WordPress Trac noreply at wordpress.org
Fri May 2 18:46:29 UTC 2014


#28093: Widgets JS API
-------------------------+------------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Widgets      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  javascript
-------------------------+------------------------------
Description changed by westonruter:

Old description:

> The widgets admin UI needs a rewrite to utilize Backbone. The 3.9 work on
> bringing widget management to the customizer introduced some use of
> Backbone there, but the underlying Backbone logic should be abstracted so
> that it is suitable for use on the widgets admin page, as well as in the
> customizer (not to mention elsewhere, such as a TinyMCE view!)
>
> Related:
>
> * #27151 Live search of available widgets
> * #16613 Extend Widget API to allow sidebar/widget manipulation

New description:

 There is currently no unified JS API for managing widgets (nor is there an
 API in PHP). Any widget manipulation requires a lot of manual Ajax calls
 and reverse engineering of how the widgets admin UI manages widgets.

 The widgets admin UI needs a rewrite to utilize Backbone. The 3.9 work on
 bringing widget management to the customizer introduced some use of
 Backbone there, but the underlying Backbone logic should be abstracted so
 that it is suitable for use on the widgets admin page, as well as in the
 customizer (not to mention elsewhere, such as a TinyMCE view!)

 Related:

 * #27151 Live search of available widgets
 * #16613 Extend Widget API to allow sidebar/widget manipulation

--

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


More information about the wp-trac mailing list