[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 02:19:20 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:
fixed-major dev-reviewed | performance
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
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/56991#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list