[wp-trac] [WordPress Trac] #53909: User Level deprecated but still used?

WordPress Trac noreply at wordpress.org
Tue Aug 10 14:36:36 UTC 2021


#53909: User Level deprecated but still used?
--------------------------+-----------------------------
 Reporter:  des79         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi there,

 I use custom_user_table on different wp installation that share the same
 user.
 I read that wp_user_level has deprecated in WordPress 3.0 but that's not
 quite true
 https://codex.wordpress.org/User_Levels

 In my second wp installation I could not find the author select to change
 the author of a post so I debug code and I've found that in
 https://core.trac.wordpress.org/browser/tags/5.8/src/wp-includes/class-wp-
 user-query.php#L322 if param who is defined, meta_query use user_level to
 select all users with user_level != 0

 In all my secondary wp installations I need to set {prefix}user_level for
 every single user so my question is: why user_level is set to deprecates
 if not so?

 Am I wrong?

 Thank you
 David

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53909>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list