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:
parent
86b856ee1b
commit
1afa45d117
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue