CPT as a submenu item does not get the correct classes when adding new
|Reported by:||helenyhou||Owned by:||nacin|
|Component:||Posts, Post Types||Keywords:||has-patch|
If you register a post type as a submenu item, the parent item does not get the appropriate classes when adding a new item, nor does the submenu item itself. This causes the menu to not be expanded. It is fine when on the list table or editing an existing item, and when the CPT has its own menu item. It seems that $typenow is not being set somehow in just this case.