[wp-trac] [WordPress Trac] #4683: category dropdown javascript wrong location after moved blog

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 29 14:02:24 GMT 2007


#4683: category dropdown javascript wrong location after moved blog
------------------------+---------------------------------------------------
 Reporter:  Pastinakel  |       Owner:  anonymous              
     Type:  defect      |      Status:  new                    
 Priority:  normal      |   Milestone:                         
Component:  General     |     Version:  2.2.1                  
 Severity:  normal      |    Keywords:  category dropdown moved
------------------------+---------------------------------------------------
 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:[[BR]]
 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: [[BR]]
 Blog: http://www.mysite.net/ [[BR]]
 WP: http://www.mysite.net/wordpress/ [[BR]]
 Dropdown points to: http://www.mysite.net/wordpress/?cat=1 [[BR]]
 Dropdown should point to: http://www.mysite.net/?cat=1 [[BR]]

 Caused by:[[BR]]
 wp-includes/widgets.php:633


 {{{
 location.href = "<?php echo get_option('siteurl');
 ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
 }}}


 Fix:[[BR]]
 wp-includes/widgets.php:633


 {{{
 location.href = "<?php echo get_option('home');
 ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4683>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list