#5111 closed enhancement (fixed)
Make WP_User_Search class plugable
Reported by: | Viper007Bond | Owned by: | westi |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
For our iPhone submission, we needed to list out all users and will eventually add search abilities. The WP_User_Search
class in /wp-admin/users.php
seems to do this wonderfully. Sadly, you can't include users.php
as it outputs stuff.
It'd be nice if that class was pluggable for usage elsewhere.
Attachments (2)
Change History (9)
#2
@
17 years ago
I don't see a usage for it outside of the admin area really, and even if there is some fringe usage that requires it elsewhere, it's not hard to include()
it (as we've done with other files).
@
17 years ago
Moves class WP_User_Search into wp-admin/includes/user.php and makes it pluggable (Use this patch, please)
#7
in reply to:
↑ 6
@
17 years ago
Replying to Viper007Bond:
No no, props to hansengel! <3
Oh, it was just a copy/paste move (no code writing), but still. ;)
Note: See
TracTickets for help on using
tickets.
It sounds like WP_User_Search should be pulled out into wp-admin/includes/user.php.
Are you wanting to use the class solely within the admin? Or does it need to be available from wp-includes?