[wp-trac] [WordPress Trac] #21286: Add filter to wp_dropdown_users to help huge networks

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 16 04:46:56 UTC 2012


#21286: Add filter to wp_dropdown_users to help huge networks
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Users           |    Version:  2.3
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 wp_dropdown_users( ) currently has a filter, but it only filters the
 output. The query args need to be filterable, otherwise sites with a huge
 number of users cannot turn off or limit this function.

 Gravity Forms calls this function in the admin, which causes PHP to run
 out of memory easily when you have 1,000,000 users. Other plugins can call
 this at will.

 I have added a new filter for dropdown_users_args in my patch

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


More information about the wp-trac mailing list