[wp-trac] [WordPress Trac] #57039: WP 6.1 - get_page_by_title(null) returns a page

WordPress Trac noreply at wordpress.org
Thu Nov 10 00:44:25 UTC 2022


#57039: WP 6.1 - get_page_by_title(null) returns a page
--------------------------------------+----------------------------
 Reporter:  stentibbing               |       Owner:  peterwilsoncc
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1.1
Component:  Posts, Post Types         |     Version:  6.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------------
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/57039#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list