[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
Wed Jul 9 16:42:23 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          |     Focuses:
-------------------------------+------------------------------
Changes (by dilip2615):

 * keywords:  has-patch needs-testing => has-patch
 * version:   => 6.8


Comment:

 == Patch Testing

 === Description
 Tested the patch for Ticket #63656: Twenty Seventeen theme should use
 `the_excerpt()` instead of `the_content()` on search and archive pages.

 === Environment
 - WordPress: 6.8.1
 - PHP: 8.2.23
 - Theme: Twenty Seventeen
 - Plugins: Test Reports 1.2.0

 === Steps to Reproduce
 1. Create a post with content and an excerpt.
 2. View search results or archive page.
 3. See the full content appearing.
 4. Apply the patch from the ticket.
 5. View again → now only the excerpt appears.

 === Expected Results
 ✅ Excerpt should be shown on archive/search pages.

 === Actual Results
 ✅ Excerpt is shown. Patch works as expected.

 === Additional Notes
 No layout/design issues. Works well with existing posts.

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


More information about the wp-trac mailing list