[wp-trac] [WordPress Trac] #56991: Update to get_page_by_title in 6.1 changes WHERE clause
WordPress Trac
noreply at wordpress.org
Thu Nov 10 00:44:25 UTC 2022
#56991: Update to get_page_by_title in 6.1 changes WHERE clause
---------------------------------------------+----------------------------
Reporter: Bjorn2404 | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1.1
Component: General | Version: 6.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: performance
---------------------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"54782" 54782]:
{{{
#!CommitTicketReference repository="" revision="54782"
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.
Fixes #57039, #56991.
See #57041.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56991#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list