#16865 closed enhancement (fixed)
'post' definition should use menu_position
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Since WP 3.1, we don't need to hardcode the Posts $menu array, since register_post_type() is flexible enough to handle it.
Attachments (3)
Change History (12)
#1
@
14 years ago
16865.2.diff wraps most of the code in an enclosing function, so that we don't have to worry about polluting the global namespace with temporary vars anymore.
#4
@
9 years ago
- Keywords has-patch added; needs-refresh removed
- Milestone changed from Future Release to 4.4
16865.3.diff refreshes this. Posts and Pages can opt in via menu_position
when registering the post type. Requires a few things in the post type loop below
#5
@
9 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
In 33723:
This ticket was mentioned in Slack in #core by boren. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
enclosing function