[wp-trac] [WordPress Trac] #64583: Incorrect PHPDoc type for WP_Theme::$cache_expiration
WordPress Trac
noreply at wordpress.org
Mon Feb 2 02:48:10 UTC 2026
#64583: Incorrect PHPDoc type for WP_Theme::$cache_expiration
--------------------------+-----------------------------
Reporter: marian1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: minor | Keywords:
Focuses: docs |
--------------------------+-----------------------------
`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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64583>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list