[wp-trac] [WordPress Trac] #19125: CPT as a submenu item does not get the correct classes when adding new
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 21 15:55:09 UTC 2011
#19125: CPT as a submenu item does not get the correct classes when adding new
--------------------------+------------------
Reporter: helenyhou | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Post Types | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by nacin):
* component: General => Post Types
Comment:
Ideally, $submenu_file should be set to post-new.php?post_type=$post_type
if that's been added, and otherwise be set to
edit.php?post_type=$post_type. Since admin_menu has already been fired,
there's probably the ability to check for this in a semi-sane way. Here's
a patch for review.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19125#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list