Changes between Version 7 and Version 8 of Ticket #13239, comment 103
- Timestamp:
- 10/10/2016 12:26:33 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13239, comment 103
v7 v8 42 42 add_filter( 'locate_template', function( $location, $template_names ) { 43 43 if ( in_array( 'header.php', $template_names ) ) { 44 $location = ( is_child_theme() ) ? get_stylesheet_directory() : get_template_directory() . '/partials';44 $location = ( is_child_theme() ) ? get_stylesheet_directory() . '/header.php' : get_template_directory() . '/partials/header.php'; 45 45 } 46 46 return $location;