#26716 closed enhancement (fixed)
Add Boolean Return Values to `require_if_theme_supports`
| Reported by: | jeffsebring | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Themes | Version: | 3.8 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to add boolean return values to
require_if_theme_supports