Opened 13 months ago
Closed 13 months ago
#63655 closed defect (bug) (invalid)
Suggestion to Add PHPDoc Block for twenty_twenty_one_can_show_post_thumbnail Filter
| Reported by: | viralsampat | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
Description
Hello Team,
While reviewing the theme files, I noticed that the twenty_twenty_one_can_show_post_thumbnail filter currently lacks a PHPDoc block.
Adding a proper PHPDoc comment would improve code clarity and enhance the overall documentation, making it easier for developers to understand and utilize the filter effectively.
Thanks,
Attachments (1)
Change History (2)
#1
@
13 months ago
- Keywords dev-feedback 2nd-opinion needs-testing removed
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I have checked above mentioned issue and resolved it. Here, I have added my patch.