Use "home," not "siteurl" for widget dropdown category URLs. Props Pastinakel. fixes #4683 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@5823 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-07-30 16:23:04 +00:00
parent f57bf53f8f
commit ac7bd8d13a
1 changed files with 1 additions and 1 deletions

View File

@ -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;