Opened 16 years ago
Closed 16 years ago
#12998 closed enhancement (fixed)
Introduce is_child_theme()
| Reported by: | ptahdunbar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Themes | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Couldn't this just be:
function is_child_theme() { return ( TEMPLATEPATH !== STYLESHEETPATH ); }