[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 02:19:20 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 fixed-      |     Focuses:
  major dev-reviewed                             |
-------------------------------------------------+-------------------------
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/57039#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list