[wp-trac] [WordPress Trac] #19867: wp_dropdown_users() still not scalable
WordPress Trac
noreply at wordpress.org
Sat Nov 15 15:46:18 UTC 2014
#19867: wp_dropdown_users() still not scalable
-------------------------------------+------------------------------
Reporter: prettyboymp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Users | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: ui, performance
-------------------------------------+------------------------------
Comment (by tharsheblows):
Hi - I know this is well underway but thought I'd put in a quick request
just in case.
Would it be possible to hook the wp_dropdown_users select and eventually
the autosuggest to an action that we could remove or add to? It would be
really helpful to be able to completely remove that action and add my own
- not just filter the wp_dropdown_users query, although that would be
cool, too.
What I've done for users who want to be deleted is assign their content to
a dummy user creatively named "_deleted account" (the underscore was to
pop it to the top of the dropdown list). However, now I can't use the list
(85k users) although it still loads and only breaks if I touch it.
To work around this, I've put a checkbox on the new and edit users pages
that allows me to include them in a list of users to whom it's ok to
reassign content. I keep this list as an array in wp_options so I don't
have to hunt through either of the users tables piecing it together. I'm
currently using this array to replace the options in the wp_dropdown_users
select using jQuery.
Having a small curated list really works for me. Putting users on it might
take a tiny bit more time but then once I do, I never have to remember
again who I am using for deleted user accounts. And I don't have to worry
about me or anyone else accidentally assigning content to the wrong person
(disastrous! or maybe hilarious, it would depend...)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19867#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list