[wp-trac] [WordPress Trac] #56991: Update to get_page_by_title in 6.1 changes WHERE clause

WordPress Trac noreply at wordpress.org
Sat Nov 5 00:46:33 UTC 2022


#56991: Update to get_page_by_title in 6.1 changes WHERE clause
--------------------------+---------------------
 Reporter:  Bjorn2404     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1.1
Component:  General       |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by spacedmonkey):

 Am I missing something here? The old querying in 6.0 did not limit the
 querying by if the post status was public. Instead of not limit by post
 status, we are querying by all post statuses. Which is functionally the
 same. If we change this to only get no trashed posts, that is a breaking
 change. What am I missing here?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56991#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list