Opened 15 years ago
Last modified 3 months ago
#17704 new enhancement
Automatically enqueue necessary scripts when custom meta boxes are used
| Reported by: | mitchoyoshitaka | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Right now if you add_meta_box() to a custom page, like using add_submenu_page() and then calling do_meta_boxes(), the screen options and post box JS don't work automagically. They should.
Attachments (2)
Change History (10)
#3
@
15 years ago
- Summary Give options pages screen options support for free if custom meta boxes are being used → Automatically enqueue necessary scripts when custom meta boxes are used
#4
@
15 years ago
- Milestone Awaiting Review → Future Release
- Type defect (bug) → enhancement
Also, we have to admit that this is an enhancement.
Currently, plugins can hook into "load-$pagehook", for example, and enqueue the script manually.
Version 0, edited 15 years ago by
(next)
#6
@
12 years ago
- Focuses administration added
- Keywords needs-refresh added; has-patch removed
Refresh needed
This ticket was mentioned in PR #11730 on WordPress/wordpress-develop by @abcd95.
3 months ago
#8
- Keywords has-patch added; needs-refresh removed
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Test plugin to create page with custom meta boxes