Changeset 8497 for trunk/wp-includes/general-template.php
- Timestamp:
- 07/30/2008 06:21:14 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r8415 r8497 5 5 function get_header() { 6 6 do_action( 'get_header' ); 7 if ( file_exists( TEMPLATEPATH . '/header.php') ) 7 if ( file_exists( STYLESHEETPATH . '/header.php') ) 8 load_template( STYLESHEETPATH . '/header.php'); 9 elseif ( file_exists( TEMPLATEPATH . '/header.php') ) 8 10 load_template( TEMPLATEPATH . '/header.php'); 9 11 else … … 14 16 function get_footer() { 15 17 do_action( 'get_footer' ); 16 if ( file_exists( TEMPLATEPATH . '/footer.php') ) 18 if ( file_exists( STYLESHEETPATH . '/footer.php') ) 19 load_template( STYLESHEETPATH . '/footer.php'); 20 elseif ( file_exists( TEMPLATEPATH . '/footer.php') ) 17 21 load_template( TEMPLATEPATH . '/footer.php'); 18 22 else … … 23 27 function get_sidebar( $name = null ) { 24 28 do_action( 'get_sidebar' ); 25 if ( isset($name) && file_exists( TEMPLATEPATH . "/sidebar-{$name}.php") ) 29 if ( isset($name) && file_exists( STYLESHEETPATH . "/sidebar-{$name}.php") ) 30 load_template( STYLESHEETPATH . "/sidebar-{$name}.php"); 31 elseif ( isset($name) && file_exists( TEMPLATEPATH . "/sidebar-{$name}.php") ) 26 32 load_template( TEMPLATEPATH . "/sidebar-{$name}.php"); 33 elseif ( file_exists( STYLESHEETPATH . '/sidebar.php') ) 34 load_template( STYLESHEETPATH . '/sidebar.php'); 27 35 elseif ( file_exists( TEMPLATEPATH . '/sidebar.php') ) 28 36 load_template( TEMPLATEPATH . '/sidebar.php');
Note: See TracChangeset
for help on using the changeset viewer.