[wp-trac] [WordPress Trac] #18857: get_plugin_page_hookname uses menu_title to construct subpage load-hooks

WordPress Trac noreply at wordpress.org
Tue Jul 18 03:51:49 UTC 2017


#18857: get_plugin_page_hookname uses menu_title to construct subpage load-hooks
----------------------------------------------+----------------------------
 Reporter:  apocalip                          |       Owner:
     Type:  defect (bug)                      |  SergeyBiryukov
 Priority:  normal                            |      Status:  accepted
Component:  Plugins                           |   Milestone:  Future
 Severity:  normal                            |  Release
 Keywords:  has-patch early needs-unit-tests  |     Version:  3.1.4
                                              |  Resolution:
                                              |     Focuses:
                                              |  administration
----------------------------------------------+----------------------------

Comment (by sk.shaikat):

 Replying to [ticket:18857 apocalip]:
 > The load-hook for PluginSubPages isn't working anymore if the PluginPage
 is translated.
 >
 > The reason seems to be that the get_plugin_page_hookname function uses
 the menu_title instead of the menu_slug to create the hookname.
 >
 > I attached a possible fix.

 https://github.com/WordPress/WordPress/pull/301

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


More information about the wp-trac mailing list