#42083 closed enhancement (fixed)
Customize: Clean up longstanding annoyances in JS API
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Customize | Keywords: | commit |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (9)
@westonruter
7 weeks ago
#1
@westonruter
7 weeks ago
- Keywords commit added
- Owner set to westonruter
- Status changed from new to accepted
#2
@westonruter
7 weeks ago
- Resolution set to fixed
- Status changed from accepted to closed
In 41726:
#3
@westonruter
7 weeks ago
In 41739:
#4
@westonruter
7 weeks ago
In 41750:
#5
@westonruter
3 weeks ago
In 42035:
#6
@westonruter
3 weeks ago
In 42037:
#7
@westonruter
3 weeks ago
In 42038:
#8
@westonruter
3 weeks ago
In 42048:
Note: See
TracTickets for help on using
tickets.
https://github.com/xwp/wordpress-develop/pull/274