[wp-trac] [WordPress Trac] #27060: WP_User_Query using deprecated method of finding author

WordPress Trac noreply at wordpress.org
Fri Feb 21 06:59:01 UTC 2014


#27060: WP_User_Query using deprecated method of finding author
-------------------------+------------------------------
 Reporter:  Ckeboss      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:  3.8.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by senlin):

 It looks like `user_level` is used on quite a few places: `wp-
 admin/includes/deprecated.php` (3x), `wp-admin/includes/upgrade.php` (4x),
 `wp-includes/capabilities.php` (5x), `wp-includes/ms-functions.php` (2x)
 and `wp-includes/user.php` (1x, the block mentioned by @Ckeboss).

 It has also been described in detail in the Codex
 [https://codex.wordpress.org/Class_Reference/WP_User_Query#Who_Parameter]

 Perhaps it's ok to use in WP_User_Query?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27060#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list