[wp-trac] [WordPress Trac] #28226: menu_page_url does not return correct URL on network admin

WordPress Trac noreply at wordpress.org
Tue May 13 12:30:08 UTC 2014


#28226: menu_page_url does not return correct URL on network admin
-------------------------------------------------+-------------------------
 Reporter:  norcross                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Menus                                |  Review
 Severity:  normal                               |     Version:  3.0
 Keywords:  has-patch dev-feedback 2nd-opinion   |  Resolution:
  needs-testing                                  |     Focuses:  multisite
-------------------------------------------------+-------------------------
Changes (by norcross):

 * keywords:  has-patch dev-feedback => has-patch dev-feedback 2nd-opinion
     needs-testing


Comment:

 I've attached a first pass at a new function `network_menu_page_url`. it
 mimics the `menu_page_url` function but swaps the `admin_url` for
 `network_admin_url`.

 in my testing, this functioned properly for any menu page function (such
 as `add_submenu_page` ) when used inside the `network_admin_menu` hook,
 which is the only place it should be used.

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


More information about the wp-trac mailing list