Opened 2 years ago

Last modified 2 years ago

#16865 new enhancement

'post' definition should use menu_position

Reported by: scribu 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)

16865.diff (4.0 KB) - added by scribu 2 years ago.
16865.2.diff (6.2 KB) - added by scribu 2 years ago.
enclosing function

Download all attachments as: .zip

Change History (4)

scribu2 years ago

scribu2 years ago

enclosing function

[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)
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.