Opened 2 years ago
Last modified 20 months ago
#17704 new enhancement
Automatically enqueue necessary scripts when custom meta boxes are used
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
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 (7)
mitchoyoshitaka
— 2 years ago
comment:1
mitchoyoshitaka
— 2 years ago
Sorry, I lied... I meant that patch should work but only with a fix for #9346.
comment:2
scribu
— 2 years ago
Note that 'postbox' is also needed for collapsing and dragging boxes.
comment:3
scribu
— 2 years ago
- Summary changed from Give options pages screen options support for free if custom meta boxes are being used to Automatically enqueue necessary scripts when custom meta boxes are used
comment:4
scribu
— 2 years ago
- Milestone changed from Awaiting Review to Future Release
- Type changed from defect (bug) to 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 2 years ago
by scribu
(next)
comment:5
mitchoyoshitaka
— 20 months ago
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Test plugin to create page with custom meta boxes