Changeset 57685 for trunk/src/wp-includes/load.php
- Timestamp:
- 02/21/2024 07:24:12 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r57608 r57685 1047 1047 * @access private 1048 1048 * 1049 * @global string $pagenow The filename of the current screen. 1049 * @global string $pagenow The filename of the current screen. 1050 * @global string $wp_stylesheet_path Path to current theme's stylesheet directory. 1051 * @global string $wp_template_path Path to current theme's template directory. 1050 1052 * 1051 1053 * @return string[] Array of absolute paths to theme directories. 1052 1054 */ 1053 1055 function wp_get_active_and_valid_themes() { 1054 global $pagenow ;1056 global $pagenow, $wp_stylesheet_path, $wp_template_path; 1055 1057 1056 1058 $themes = array(); … … 1060 1062 } 1061 1063 1062 $stylesheet_path = get_stylesheet_directory(); 1063 $template_path = get_template_directory(); 1064 1065 if ( $template_path !== $stylesheet_path ) { 1066 $themes[] = $stylesheet_path; 1067 } 1068 1069 $themes[] = $template_path; 1064 if ( is_child_theme() ) { 1065 $themes[] = $wp_stylesheet_path; 1066 } 1067 1068 $themes[] = $wp_template_path; 1070 1069 1071 1070 /*
Note: See TracChangeset
for help on using the changeset viewer.