mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
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
|
* @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.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user