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

WordPress Trac noreply at wordpress.org
Mon May 12 21:10:35 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 Review
Component:  Menus                   |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  multisite
------------------------------------+------------------------------

Comment (by Denis-de-Bernardy):

 Replying to [comment:4 norcross]:
 > not sure `is_user_admin` would be required, since it's not in the
 original function. any settings page should do be doing it's various user
 cap checks anyway (as some settings could be made available to editors,
 etc), unless I'm missing something that's unique to multisite

 There's a blog/site admin area (wp-admin), a network admin area (wp-
 admin/network) and a user admin area (wp-admin/user or users, can't
 recollect off the top of my head). They use is_blog_admin(),
 is_network_admin() and is_user_admin() respectively, with is_admin()
 equivalent to OR'ing the three.

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


More information about the wp-trac mailing list