Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#54926 closed defect (bug) (invalid)

Deprecated: WP_User_Query was called with an argument that is deprecated since version 5.9.0!

Reported by: sonjaysarker's profile sonjaysarker Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9
Component: Users Keywords: has-patch
Focuses: Cc:

Description

Deprecated: WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead. in public_html/wp-includes/functions.php on line 5600

Attachments (1)

Error.png (26.9 KB) - added by sonjaysarker 3 years ago.

Download all attachments as: .zip

Change History (6)

@sonjaysarker
3 years ago

This ticket was mentioned in PR #2228 on WordPress/wordpress-develop by SonjaySarker.


3 years ago
#1

  • Keywords has-patch added

Trac ticket:

---
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

https://core.trac.wordpress.org/ticket/54926

#2 @swissspidy
3 years ago

  • Component changed from General to Users
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi there and welcome to WordPress Trac!

This is related to the new capability queries in WordPress core, see https://make.wordpress.org/core/2022/01/05/new-capability-queries-in-wordpress-5-9/

It means one of your plugins or themes is using the old/deprecated way.

You can try disabling plugins one by one to find the culprit, and then reach out to the developer to let them know about this.

If you need any help, please open a support topic in the support forums at wordpress.org/support instead.

Thank you.

swissspidy commented on PR #2228:


3 years ago
#3

Not clear to me what this PR does 🤔

But note that the Trac ticket was closed now. Please use the support forums instead.

#4 follow-up: @iandunn
3 years ago

I'm also seeing this intermittently, and it looks like Gutenberg may still have several `who:author` queries. I haven't had time to dig in further, though.

#5 in reply to: ↑ 4 @ocean90
3 years ago

Replying to iandunn:

I'm also seeing this intermittently, and it looks like Gutenberg may still have several `who:author` queries. I haven't had time to dig in further, though.

This is now tracked in https://github.com/WordPress/gutenberg/issues/39986.

Note: See TracTickets for help on using tickets.