Ticket #12998: is_child_theme.diff
| File is_child_theme.diff, 594 bytes (added by , 17 years ago) |
|---|
-
wp-includes/theme.php
7 7 */ 8 8 9 9 /** 10 * Whether a child theme is in use. 11 * 12 * @since 3.0.0 13 * 14 * @return bool true if a child theme is in use, false otherwise. 15 **/ 16 function is_child_theme() { 17 if ( TEMPLATEPATH !== STYLESHEETPATH ) 18 return true; 19 else 20 return false; 21 } 22 23 /** 10 24 * Retrieve name of the current stylesheet. 11 25 * 12 26 * The theme name that the administrator has currently set the front end theme
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)