Add is_child_theme(). Fixes #12998 props ptahdunbar.

git-svn-id: https://develop.svn.wordpress.org/trunk@14409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-05-03 20:56:57 +00:00
parent 13d35fe80a
commit c7e4d07d28
1 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,17 @@
* @subpackage Template * @subpackage Template
*/ */
/**
* Whether a child theme is in use.
*
* @since 3.0.0
*
* @return bool true if a child theme is in use, false otherwise.
**/
function is_child_theme() {
return ( TEMPLATEPATH !== STYLESHEETPATH );
}
/** /**
* Retrieve name of the current stylesheet. * Retrieve name of the current stylesheet.
* *