Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WP 5.9 deprecation notice with who in WP_User_Query #701

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

rebeccahum
Copy link
Contributor

@rebeccahum rebeccahum commented Oct 3, 2023

Description

Fixes deprecation notice Deprecated: WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

Uses publish_posts cap since that's the one granted to authors and above.

Steps to Test

Go to wp-admin > Posts > Add New Post and see if it triggers in PHP logs/QM

rebasaurus       ttys000      28 Sep 15:46
rebasaurus       ttys001       3 Oct 13:13
rebasaurus       ttys003       3 Oct 10:34
rebasaurus       ttys004       3 Oct 08:28  in WP_User_Query
@rebeccahum rebeccahum merged commit 8c39de0 into master Oct 4, 2023
6 of 19 checks passed
@rebeccahum rebeccahum deleted the 5.9-deprecation-notice branch October 4, 2023 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants