Opened 3 years ago
Closed 3 years ago
#12998 closed enhancement (fixed)
Introduce is_child_theme()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Themes | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | mikeschinkel@…, aaron@… |
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)
ptahdunbar — 3 years ago
comment:1
mikeschinkel — 3 years ago
- Cc mikeschinkel@… added
comment:2
aaroncampbell — 3 years ago
- Cc aaron@… added
ptahdunbar — 3 years ago
Note: See
TracTickets for help on using
tickets.

Couldn't this just be:
function is_child_theme() { return ( TEMPLATEPATH !== STYLESHEETPATH ); }