[wp-trac] [WordPress Trac] #57041: Deprecate `get_page_by_title()` in favour of `WP_Query`
WordPress Trac
noreply at wordpress.org
Thu Nov 10 02:19:19 UTC 2022
#57041: Deprecate `get_page_by_title()` in favour of `WP_Query`
-------------------------------+---------------------
Reporter: peterwilsoncc | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.2
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+---------------------
Comment (by peterwilsoncc):
In [changeset:"54783" 54783]:
{{{
#!CommitTicketReference repository="" revision="54783"
Posts, Post Types: Revert `get_page_by_title()`'s use of `WP_Query`.
Revert to legacy database query in `get_pages_by_title()`. Due to the lack
of `orderby` clause in the previous database query, it is not possible to
gain consistent results by converting the function to a `WP_Query`
wrapper.
Reverts [54271, 54242, 54234].
Props Bjorn2404, 10upsimon, dilipbheda, mukesh27, spacedmonkey,
TimothyBlynJacobs, rjasdfiii, stentibbing, pbiron, pento.
Merges [54782] to the 6.1 branch.
Fixes #57039, #56991.
See #57041.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57041#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list