[wp-trac] [WordPress Trac] #28936: Plugin submenu first item has strange behaviors

WordPress Trac noreply at wordpress.org
Sat Jul 19 04:23:52 UTC 2014


#28936: Plugin submenu first item has strange behaviors
------------------------------+--------------------
 Reporter:  MikeHansenMe      |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.0
Component:  Administration    |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch commit


Comment:

 Caused by `add_submenu_page()` copying the parent item, including classes:
 [source:tags/3.9.1/src/wp-admin/includes/plugin.php#L1122].

 I think we can just skip adding custom classes for the first submenu item,
 see [attachment:28936.2.diff].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28936#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list