[wp-trac] [WordPress Trac] #26716: Add Boolean Return Values to `require_if_theme_supports`
WordPress Trac
noreply at wordpress.org
Tue Dec 24 20:00:40 UTC 2013
#26716: Add Boolean Return Values to `require_if_theme_supports`
-------------------------+-----------------------------
Reporter: jeffsebring | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
-------------------------+-----------------------------
Boolean return values make this function much more useful, saving a call
to `current_theme_supports` in some use cases.
Example:
{{{
if ( require_if_theme_supports( 'plugin-theme-magic', __DIR__ . '/includes
/plugin-theme-magic.php' ) ) {
// parents, children, plugins and core getting along really well
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26716>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list