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

WordPress Trac noreply at wordpress.org
Tue Nov 8 20:18:21 UTC 2022


#57039: WP 6.1 - get_page_by_title(null) returns a page
--------------------------------------+---------------------
 Reporter:  stentibbing               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.1.1
Component:  Posts, Post Types         |     Version:  6.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by stentibbing):

 Replying to [comment:6 pbiron]:
 > Replying to [comment:5 TimothyBlynJacobs]:
 > > I don't think this patch fixes the issue because of @pbiron's second
 comment, right?
 >
 > Timothy: I think you're right.

 Semantically it would make sense if get_page_by_title("") would return
 posts with empty string as post_title and get_page_by_title(null) would
 return null.

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


More information about the wp-trac mailing list