Opened 3 months ago
Closed 3 months ago
#64583 closed defect (bug) (fixed)
Incorrect PHPDoc type for WP_Theme::$cache_expiration
| 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::$cache_expiration is documented as bool, but the property is initialised with an int default value and is consistently treated as an int (cache TTL in seconds) throughout WP_Theme. This is a documentation/type mismatch which can mislead developers and tooling.
Change History (4)
This ticket was mentioned in PR #10838 on WordPress/wordpress-develop by @marian1.
3 months ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/64583