[wp-trac] [WordPress Trac] #57047: Misleading PHPdoc for filter {$adjacent}_post_link
WordPress Trac
noreply at wordpress.org
Tue Nov 15 00:17:19 UTC 2022
#57047: Misleading PHPdoc for filter {$adjacent}_post_link
-------------------------------+-----------------------------
Reporter: apermo | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Posts, Post Types | Version: 4.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
-------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"54841" 54841]:
{{{
#!CommitTicketReference repository="" revision="54841"
Docs: Correct type for the `$post` parameter of the
`{$adjacent}_post_link` filter.
The parameter was documented as `WP_Post`, but it contains the value of
`get_adjacent_post()`, which returns an empty string if there is no
corresponding post, so the correct type is `WP_Post|string`.
Follow-up to [11243], [16951], [28111], [32606].
Props apermo, audrasjb.
Fixes #57047.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57047#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list