Opened 2 years ago
Last modified 2 years ago
#16865 new enhancement
'post' definition should use menu_position
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| 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 (2)
Change History (4)
[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.
Version 0, edited 2 years ago
by scribu
(next)
Note: See
TracTickets for help on using
tickets.

enclosing function