Use "home," not "siteurl" for widget dropdown category URLs. Props Pastinakel. fixes #4683 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
51ce46e892
commit
e06883dfcc
|
@ -632,7 +632,7 @@ function wp_widget_categories($args, $number = 1) {
|
|||
var dropdown = document.getElementById("cat");
|
||||
function onCatChange() {
|
||||
if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
|
||||
location.href = "<?php echo get_option('siteurl'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
|
||||
location.href = "<?php echo get_option('home'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
|
||||
}
|
||||
}
|
||||
dropdown.onchange = onCatChange;
|
||||
|
|
Loading…
Reference in New Issue