WordPress.org

Make WordPress Core

Ticket #30459: 30459.patch

File 30459.patch, 330 bytes (added by cais, 5 years ago)

Patch of ../wp-includes/theme.php

  • ../wp-includes/theme.php

     
    128128 * @return bool true if a child theme is in use, false otherwise.
    129129 **/
    130130function is_child_theme() {
    131         return ( TEMPLATEPATH !== STYLESHEETPATH );
     131        return ( get_template_directory() !== get_stylesheet_directory() );
    132132}
    133133
    134134/**