[wp-trac] [WordPress Trac] #6637: wp_widget_categories() doesn't handle html entities in description

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 8 00:20:49 GMT 2008


#6637: wp_widget_categories() doesn't handle html entities in description
-----------------------+----------------------------------------------------
 Reporter:  guillep2k  |       Owner:  guillep2k
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  2.7      
Component:  General    |     Version:  2.5      
 Severity:  normal     |    Keywords:           
-----------------------+----------------------------------------------------
 At wp-includes/widgets.php:694, the following line:
 {{{
 wp_dropdown_categories($cat_args . '&show_option_none= ' . __('Select
 Category'));
 }}}
 Doesn't handle html entities coming from !__() translation, since they
 contain ampersands. To correct this, we can change it to:
 {{{
 wp_dropdown_categories($cat_args . '&show_option_none= ' .
 urlencode(__('Select Category')));
 }}}
 This is easily seen in Spanish (es_ES.po file can be found here:
 http://reyson.re.funpic.de/downloads/wp2.5-es_ES-po.rar), where 'Select
 Category' translates to 'Seleccionar Categoría'.

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


More information about the wp-trac mailing list