Ticket #5615: wordpress-general-template.diff
File wordpress-general-template.diff, 721 bytes (added by , 17 years ago) |
---|
-
trunk/wp-includes/general-template.php
20 20 } 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 28 30 load_template( ABSPATH . 'wp-content/themes/default/sidebar.php');