mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
241d0e8f11
commit
37d342ef03
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user