WordPress.org

Make WordPress Core

Ticket #12998: is_child_theme.2.diff

File is_child_theme.2.diff, 559 bytes (added by ptahdunbar, 5 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        return ( TEMPLATEPATH !== STYLESHEETPATH ); 
     18} 
     19 
     20/** 
    1021 * Retrieve name of the current stylesheet. 
    1122 * 
    1223 * The theme name that the administrator has currently set the front end theme