Skip to content

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
@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.

3 participants