WordPress.org

Make WordPress Core

Ticket #12998: is_child_theme.diff

File is_child_theme.diff, 594 bytes (added by ptahdunbar, 8 years ago)
  • wp-includes/theme.php

     
    77 */
    88
    99/**
     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        if ( TEMPLATEPATH !== STYLESHEETPATH )
     18                return true;
     19        else
     20                return false;
     21}
     22
     23/**
    1024 * Retrieve name of the current stylesheet.
    1125 *
    1226 * The theme name that the administrator has currently set the front end theme