Changeset 36693 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 02/24/2016 08:56:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r36671 r36693 37 37 $templates = array(); 38 38 $name = (string) $name; 39 if ( '' !== $name ) 39 if ( '' !== $name ) { 40 40 $templates[] = "header-{$name}.php"; 41 } 41 42 42 43 $templates[] = 'header.php'; 43 44 44 // Backward compat code will be removed in a future release 45 if ('' == locate_template($templates, true)) 46 load_template( ABSPATH . WPINC . '/theme-compat/header.php'); 45 locate_template( $templates, true ); 47 46 } 48 47 … … 77 76 $templates = array(); 78 77 $name = (string) $name; 79 if ( '' !== $name ) 78 if ( '' !== $name ) { 80 79 $templates[] = "footer-{$name}.php"; 81 82 $templates[] = 'footer.php'; 83 84 // Backward compat code will be removed in a future release 85 if ('' == locate_template($templates, true)) 86 load_template( ABSPATH . WPINC . '/theme-compat/footer.php'); 80 } 81 82 $templates[] = 'footer.php'; 83 84 locate_template( $templates, true ); 87 85 } 88 86 … … 122 120 $templates[] = 'sidebar.php'; 123 121 124 // Backward compat code will be removed in a future release 125 if ('' == locate_template($templates, true)) 126 load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php'); 122 locate_template( $templates, true ); 127 123 } 128 124
Note: See TracChangeset
for help on using the changeset viewer.