[wp-trac] Re: [WordPress Trac] #5756: Wrong JavaScript syntax in Categories widget (wp-includes/widgets.php)

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 3 05:51:46 GMT 2008


#5756: Wrong JavaScript syntax in Categories widget (wp-includes/widgets.php)
---------------------+------------------------------------------------------
 Reporter:  reppep   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.6      
Component:  General  |      Version:  2.3.2    
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by reppep):

 Gnarf -- patch mis-wrapped:


 {{{
 [pico]$ diff -u widgets.php.orig widgets.php
 --- widgets.php.orig    2008-02-02 21:40:48.000000000 -0800
 +++ widgets.php 2008-02-02 21:41:12.000000000 -0800
 @@ -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/5756#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list