Changeset 6609
- Timestamp:
- 01/14/2008 04:51:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r6601 r6609 21 21 22 22 23 function get_sidebar( ) {23 function get_sidebar( $name = null ) { 24 24 do_action( 'get_sidebar' ); 25 if ( file_exists( TEMPLATEPATH . '/sidebar.php') ) 25 if ( isset($name) && file_exists( TEMPLATEPATH . "/sidebar-{$name}.php") ) 26 load_template( TEMPLATEPATH . "/sidebar-{$name}.php"); 27 elseif ( file_exists( TEMPLATEPATH . '/sidebar.php') ) 26 28 load_template( TEMPLATEPATH . '/sidebar.php'); 27 29 else
Note: See TracChangeset
for help on using the changeset viewer.