[wp-trac] [WordPress Trac] #19810: Autocomplete for users and sites in Network admin

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 22 10:43:19 UTC 2012


#19810: Autocomplete for users and sites in Network admin
------------------------------+------------------
 Reporter:  markjaquith       |       Owner:
     Type:  task (blessed)    |      Status:  new
 Priority:  high              |   Milestone:  3.4
Component:  Multisite         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by DrewAPicture):

 Attached [attachment:ticket:19810:19810.21.patch 19810.21.patch]
 accomplishes several things:

 * Removes all instances of the (undefined)
 `autocomplete_sites_for_site_admins` filter as the only site-searching
 fields affected are in the network admin, which is only accessible by
 super admins

 * Removes several uses of the `autocomplete_users_for_site_admins` filter
 in network admin files as network admin pages are only accessible by super
 admins

 * Adds `is_network_admin` cap checks to the `wp-
 admin/includes/dashboard.php` enqueues, without which the scripts would
 load on individual sites' `dashboard.php` for no valid purpose

 * Applies coding standards whitespacing to several included code blocks

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19810#comment:53>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list