Opened 16 years ago
Closed 16 years ago
#12998 closed enhancement (fixed)
Introduce is_child_theme()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Themes | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Patch adds a new is_child_theme() function to wp-includes/theme.php
It returns true or false depending whether the active theme is a child theme or not.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Couldn't this just be:
function is_child_theme() { return ( TEMPLATEPATH !== STYLESHEETPATH ); }