[wp-trac] [WordPress Trac] #6213: widget.php includes wrong javascript tag for category dropdown

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 14 02:22:15 GMT 2008


#6213: widget.php includes wrong javascript tag for category dropdown
----------------------+-----------------------------------------------------
 Reporter:  reppep    |       Owner:  anonymous 
     Type:  defect    |      Status:  new       
 Priority:  normal    |   Milestone:  2.6       
Component:  Template  |     Version:  2.3.3     
 Severity:  normal    |    Keywords:  validation
----------------------+-----------------------------------------------------
 The Category dropdown uses JavaScript, and embeds it using the wrong
 (old?) syntax. Patch:

 [root at inspector wp-includes]# diff -u widgets.php.ORIG widgets.php
 --- widgets.php.ORIG    2008-03-13 22:18:25.000000000 -0400
 +++ widgets.php 2008-03-13 22:19:10.000000000 -0400
 @@ -630,7 +630,7 @@
                 wp_dropdown_categories($cat_args . '&show_option_none= ' .
 __('Select Category'));
  ?>

 -<script lang='javascript'><!--
 +<script type="text/javascript"><!--
      var dropdown = document.getElementById("cat");
      function onCatChange() {
                 if ( dropdown.options[dropdown.selectedIndex].value > 0 )
 {

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


More information about the wp-trac mailing list