[wp-trac] [WordPress Trac] #63655: Suggestion to Add PHPDoc Block for twenty_twenty_one_can_show_post_thumbnail Filter
WordPress Trac
noreply at wordpress.org
Wed Jul 2 18:06:57 UTC 2025
#63655: Suggestion to Add PHPDoc Block for
twenty_twenty_one_can_show_post_thumbnail Filter
---------------------------+----------------------
Reporter: viralsampat | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Bundled Theme | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses: docs
---------------------------+----------------------
Changes (by sabernhardt):
* keywords: dev-feedback 2nd-opinion needs-testing =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The `twenty_twenty_one_can_show_post_thumbnail` filter already has a
correct docblock:
{{{
/**
* Filters whether post thumbnail can be displayed.
*
* @since Twenty Twenty-One 1.0
*
* @param bool $show_post_thumbnail Whether to show post
thumbnail.
*/
}}}
It sets the `$show_post_thumbnail` conditions within `apply_filters()`,
not in a separate line.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63655#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list