[wp-trac] [WordPress Trac] #42083: Customize: Clean up longstanding annoyances in JS API

WordPress Trac noreply at wordpress.org
Wed Oct 4 06:12:56 UTC 2017


#42083: Customize: Clean up longstanding annoyances in JS API
-------------------------+-----------------
 Reporter:  westonruter  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.9
Component:  Customize    |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------
 There are some annoyances when working with the JS API which aren't
 present when working with the PHP API. In particular:

 * Manually crafting the `content` param for the `<li>` container.
 * Lack of default params for `active=true` and `priority=10`.
 * Having to create panels, sections, and controls with an `options` object
 that contains a single `params` key with the actual object that has the
 options in it. Why not just pass `params` directly?
 * Inability to specify the `templateId` via param.
 * Redundantly having to supply an `id` in addition to an instance when
 `add`'ing a `Panel`, `Control`, `Notification`, or any other such object
 that is added to `Values` instances.

 This is a subset of #30741.
 Initially #28709 and #29572 .

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


More information about the wp-trac mailing list