[wp-trac] [WordPress Trac] #20556: Always include post-thumbnail-template and deprecate require_if_theme_supports()
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 27 04:52:59 UTC 2012
#20556: Always include post-thumbnail-template and deprecate
require_if_theme_supports()
-----------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Post Thumbnails | Version:
Severity: normal | Keywords:
-----------------------------+-----------------
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().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20556>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list