[wp-trac] [WordPress Trac] #15903: Don't use self_admin_url() on ms-users list

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 19 22:57:31 UTC 2010


#15903: Don't use self_admin_url() on ms-users list
---------------------------+-----------------------
 Reporter:  ocean90        |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  high           |  Milestone:  3.1
Component:  Network Admin  |    Version:  3.1
 Severity:  major          |   Keywords:  has-patch
---------------------------+-----------------------
 ''self_admin_url()'' returns only the network url, if
 ''is_network_admin()'' is true.

 The problem, if we have an AJAX request ''is_network_admin()'' is always
 false.

 On network/users I have on page 2 a user which I want to grant super admin
 privileges. But it's not possible because it the edit link is linked to
 ''wp-admin/user-edit.php'' and not to ''wp-admin/network/user-edit.php''.

 The fix would be to use ''network_admin_url()'' here, because the ms-user
 list class is used only in the network admin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15903>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list