#16865 closed enhancement (fixed)
'post' definition should use menu_position
| Reported by: | scribu | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
15 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
@
11 years ago
- Keywords has-patch added; needs-refresh removed
- Milestone Future Release → 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
This ticket was mentioned in Slack in #core by boren. View the logs.
11 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
enclosing function