Opened 4 months ago
Closed 4 months ago
#64585 closed defect (bug) (fixed)
Incorrect PHPDoc type for WP_Theme::markup_header parameter
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | minor | Version: | 3.4 |
| Component: | Themes | Keywords: | has-patch commit |
| Focuses: | docs | Cc: |
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.
4 months ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/64585