Changeset 56635 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 09/20/2023 05:25:26 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r56571 r56635 1167 1167 */ 1168 1168 if ( ! empty( $redirect ) ) { 1169 $stylesheet_path = get_stylesheet_directory(); 1170 $template_path = get_template_directory(); 1171 1169 1172 $functions_path = ''; 1170 if ( str_contains( STYLESHEETPATH, $extension ) ) {1171 $functions_path = STYLESHEETPATH. '/functions.php';1172 } elseif ( str_contains( TEMPLATEPATH, $extension ) ) {1173 $functions_path = TEMPLATEPATH. '/functions.php';1173 if ( str_contains( $stylesheet_path, $extension ) ) { 1174 $functions_path = $stylesheet_path . '/functions.php'; 1175 } elseif ( str_contains( $template_path, $extension ) ) { 1176 $functions_path = $template_path . '/functions.php'; 1174 1177 } 1175 1178
Note: See TracChangeset
for help on using the changeset viewer.