Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60025, comment 5


Ignore:
Timestamp:
12/11/2023 11:33:27 PM (2 years ago)
Author:
CodeGeek
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60025, comment 5

    initial v1  
    2828}}}
    2929
    30 As best as we can figure, what appears to be happening is that there is a function is_child_theme() in wp-includes/theme.php which has changed. It had been dependent upon two global constants (STYLESHEETDIR and TEMPLATEDIR), but now it is using the functions get_template_directory() and get_stylesheet_directory().
     30As best as we can figure, what appears to be happening is that there is a function is_child_theme() in wp-includes/theme.php which has changed. It had been dependent upon two global constants (STYLESHEETPATH and TEMPLATEPATH), but now it is using the functions get_template_directory() and get_stylesheet_directory().
    3131
    3232In the past the two global constants were being set by calling the same functions, but likely before the theme was loaded or initialized. In WP 6.3 and earlier, the is_child_theme() function call returned false. Now that function call is returning true.