[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
Thu Nov 3 04:25:15 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:  Awaiting Review
Component:  General       |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 It should be noted that with [attachment:19125.diff], there won't be any
 submenu added, unless you call add_submenu_page() manually for the post-
 new.php?post_type=$post_type file.

 Or, if you want the main submenu selected, you'd want $submenu_file to
 equal that edit.php page.

 Because this wasn't implemented originally, I'd be somewhat hesitant to do
 it now. Then again, I think it can be done in a backwards compatible way,
 as any developer wanting to customize this would set $submenu_file and
 $parent_file later on. (Or we could wrap it in an isset()).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19125#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list