Make WordPress Core

Changes between Version 7 and Version 8 of Ticket #13239, comment 103


Ignore:
Timestamp:
10/10/2016 12:26:33 PM (7 years ago)
Author:
tifosi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13239, comment 103

    v7 v8  
    4242add_filter( 'locate_template', function( $location, $template_names ) {
    4343    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';
    4545    }
    4646    return $location;