[wp-trac] [WordPress Trac] #63920: get_adjacent_post() has a misplaced check for WP_Error

WordPress Trac noreply at wordpress.org
Wed Sep 3 17:37:31 UTC 2025


#63920: get_adjacent_post() has a misplaced check for WP_Error
-------------------------------+---------------------
 Reporter:  kitchin            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  6.9
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------
Changes (by westonruter):

 * keywords:   => has-patch
 * milestone:  Awaiting Review => 6.9


Comment:

 @kitchin thanks for the report and the patch. It looks good to me. Would
 you like to add a test case for the scenario that causes a failure without
 the fix?

 Also, it would be good to open a pull request with your patch so we can
 see the existing automated tests run.

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


More information about the wp-trac mailing list