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");
|
var dropdown = document.getElementById("cat");
|
||||||
function onCatChange() {
|
function onCatChange() {
|
||||||
if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
|
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;
|
dropdown.onchange = onCatChange;
|
||||||
|
|
Loading…
Reference in New Issue