Make WordPress Core

Changeset 14409


Ignore:
Timestamp:
05/03/2010 08:56:57 PM (14 years ago)
Author:
westi
Message:

Add is_child_theme(). Fixes #12998 props ptahdunbar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r14404 r14409  
    66 * @subpackage Template
    77 */
     8
     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 **/
     16function is_child_theme() {
     17    return ( TEMPLATEPATH !== STYLESHEETPATH );
     18}
    819
    920/**
Note: See TracChangeset for help on using the changeset viewer.