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

End restricting usage of get_page_by_title() #814

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

GaryJones
Copy link
Contributor

In WP 6.1.0, get_page_by_title() was changed to use WP_Query internally`. See core.trac.wordpress.org/ticket/36905. This means that reporting this function as not being cached is not true anymore.

Note that since WP 6.2.0, the function was reverted from using WP_Query but was deprecated in favour of using WP_Query directly. WordPress Coding Standards highlights this deprecation already.

See #801 and specifically this comment.

In WP 6.1.0, `get_page_by_title()` was changed to use `WP_Query` internally`. See core.trac.wordpress.org/ticket/36905. This means that reporting this function as not being cached is not true anymore.

Note that since WP 6.2.0, the function was reverted from using `WP_Query` but was deprecated in favour of using `WP_Query` directly. WordPress Coding Standards highlights this deprecation already.

See #801.
@rebeccahum rebeccahum merged commit 73d8e6d into develop Feb 16, 2024
40 checks passed
@rebeccahum rebeccahum deleted the fix/remove-get-page-by-title-error branch February 16, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants