Make the current cat the selected cat when doing a category query. fixes #1194

git-svn-id: http://svn.automattic.com/wordpress/trunk@4151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-31 21:36:21 +00:00
parent 241d0e8f11
commit 37d342ef03
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ function wp_dropdown_categories($args = '') {
'hide_empty' => 1, 'child_of' => 0, 'exclude' => '', 'echo' => 1,
'selected' => 0, 'hierarchical' => 0, 'name' => 'cat',
'class' => 'postform');
$defaults['selected'] = ( is_category() ) ? get_query_var('cat') : 0;
$r = array_merge($defaults, $r);
$r['include_last_update_time'] = $r['show_last_update'];
extract($r);