Make WordPress Core

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#53909 closed defect (bug) (duplicate)

User Level deprecated but still used?

Reported by: des79 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.8
Component: Role/Capability Keywords:
Focuses: Cc:

Description

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

Change History (2)

#1 @swissspidy
6 months ago

  • Component changed from General to Role/Capability
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there,

Thanks for opening this ticket and welcome to WordPress Trac!

user_level is indeed deprecated but unfortunately still used in that place. We're tracking this in #16841.

#2 @des79
6 months ago

Thank you @swissspidy, Sorry, I tried to search the forum before posting but this thread was not out to me.

I move there

Note: See TracTickets for help on using tickets.