[wp-trac] [WordPress Trac] #57041: Deprecate `get_page_by_title()` in favour of `WP_Query`
WordPress Trac
noreply at wordpress.org
Sun Feb 5 22:19:03 UTC 2023
#57041: Deprecate `get_page_by_title()` in favour of `WP_Query`
--------------------------------------+----------------------------
Reporter: peterwilsoncc | Owner: peterwilsoncc
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Posts, Post Types | Version: 2.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+----------------------------
Comment (by peterwilsoncc):
@afragen For your plugin, you'll need to hold off until the
`plugins_loaded` hook runs as pluggable functions aren't available until
then. This is a part of the issue in which the function could lead to a
404 for some users.
This fact will need to be included in the dev note.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57041#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list