[wp-trac] [WordPress Trac] #63920: get_adjacent_post() has a misplaced check for WP_Error
WordPress Trac
noreply at wordpress.org
Wed Sep 10 11:14:55 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 needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by SirLouen):
Replying to [comment:3 SergeyBiryukov]:
> Introduced in [29248] / #22112.
True, in origin `wp_get_object_terms` could return `WP_Error` it was in
[29248] with `array_map` in between when it broke this conditional.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63920#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list