#26716 closed enhancement (fixed)
Add Boolean Return Values to `require_if_theme_supports`
Reported by: | jeffsebring | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.8 |
Component: | Themes | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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 }
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Patch to add boolean return values to
require_if_theme_supports