Always include post-thumbnail-template and deprecate require_if_theme_supports()
|Reported by:||nacin||Owned by:||nacin|
require_if_theme_supports() was a nice idea at the time, but we've never found reason to leverage it. Let's remove it, and always include post-thumbnail-template.php.
As it is, some of these functions are useful when post thumbnails are not supported by the theme. (get_post_thumbnail_id(), for example). The whole file with these functions is under 100 lines.
Always including this file has the benefit of avoiding a sysopen call. opcode caching FTW. see #17112.
No plugins use require_if_theme_supports().
Change History (6)
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
- Keywords 2nd-opinion added
- Resolution fixed deleted
- Status changed from closed to reopened