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

WordPress Trac noreply at wordpress.org
Fri Sep 12 15:16:13 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:  4.0
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing has-unit-tests  |     Focuses:
----------------------------------------------------+---------------------

Comment (by mindctrl):

 Hi all, I've added a PR that matches the original patch, but with some
 suggested phpunit test cases.

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


More information about the wp-trac mailing list