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

PHP Deprecated: get_page_by_title is deprecated since WP 6.2 #193

Open
jessecowens opened this issue Jan 17, 2024 · 0 comments
Open

PHP Deprecated: get_page_by_title is deprecated since WP 6.2 #193

jessecowens opened this issue Jan 17, 2024 · 0 comments

Comments

@jessecowens
Copy link
Member

Describe the bug
PHP warnings are thrown since WordPress 6.2:

PHP Deprecated:  Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead. in /home/wordpress/doc_root/wp-includes/functions.php on line 6031

This function is referenced in the following classes:

/includes/class-boldgrid-inspirations-deploy.php
/includes/class-boldgrid-inspirations-utility.php
/includes/class-boldgrid-inspirations-built.php
/includes/class-boldgrid-inspirations-blog.php

To Reproduce
I discovered the bug using the wp-cli profile command, but it should be discoverable on any site with wp_debug enabled.

Expected behavior
Use WP_Query as noted in the deprecation notice

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

No branches or pull requests

1 participant