Opened 19 years ago
Closed 19 years ago
#4683 closed defect (bug) (fixed)
category dropdown javascript wrong location after moved blog
| Reported by: | Pastinakel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2.2 |
| Component: | General | Version: | 2.2.1 |
| Severity: | normal | Keywords: | category dropdown moved has-patch |
| Cc: | Focuses: |
Description
After moving the blog address to a different location from the wordpress address, the categories dropdown gives a 404 because it uses a wrong value.
Condition:
This happens only when the location of wordpress is not the same as the blog's location, i.e.
get_option('siteurl') != get_option('home')
Example:
Blog: http://www.mysite.net/
WP: http://www.mysite.net/wordpress/
Dropdown points to: http://www.mysite.net/wordpress/?cat=1
Dropdown should point to: http://www.mysite.net/?cat=1
Caused by:
wp-includes/widgets.php:633
location.href = "<?php echo get_option('siteurl'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
Fix:
wp-includes/widgets.php:633
location.href = "<?php echo get_option('home'); ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
diff