Opened 9 months ago
Closed 9 months ago
#64585 closed defect (bug) (fixed)
Incorrect PHPDoc type for WP_Theme::markup_header parameter
| Reported by: | marian1 | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0 |
| Component: | Themes | Version: | 3.4 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
Description
WP_Theme::markup_header() documents its $translate parameter as string, but the value is used as a boolean throughout the call chain:
WP_Theme::display()defines its third parameter$translateasbooland passes it directly intomarkup_header().- Inside
markup_header(),$translateis then passed as the third argument toWP_Theme::display(), where it is again expected to be boolean.
In other words: markup_header()'s $translate parameter is documented as string, but it is supplied and consumed as bool.
Change History (3)
This ticket was mentioned in PR #10840 on WordPress/wordpress-develop by @marian1.
9 months ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/64585