Changeset 6609
- Timestamp:
- 01/14/08 04:51:29 (4 months ago)
- Files:
-
- trunk/wp-includes/general-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
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
