[wp-trac] [WordPress Trac] #63656: get_page_by_path $post_type supports string and array but the check in the loop is checking by string

WordPress Trac noreply at wordpress.org
Mon Jul 14 13:44:52 UTC 2025


#63656: get_page_by_path $post_type supports string and array but the check in the
loop is checking by string
-------------------------------------+------------------------------
 Reporter:  salimali                 |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Posts, Post Types        |     Version:  6.8
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by mindctrl):

 @dilip2615 your test report refers to "Twenty Seventeen theme should use
 the_excerpt() instead of the_content() on search and archive pages.", but
 that is not what this ticket is about.

 This ticket is about `get_page_by_path` throwing PHP warnings.

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


More information about the wp-trac mailing list