Add is_child_theme(). Fixes #12998 props ptahdunbar.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-03 20:56:57 +00:00
parent 86b856ee1b
commit 1afa45d117

View File

@ -6,6 +6,17 @@
* @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.
*