Make WordPress Core

Ticket #9243: dont_encode_script_ampersands.9243.diff

File dont_encode_script_ampersands.9243.diff, 1003 bytes (added by filosofo, 16 years ago)
  • wp-includes/class.wp-styles.php

     
    102102
    103103                $src = add_query_arg('ver', $ver, $src);
    104104                $src = apply_filters( 'style_loader_src', $src, $handle );
    105                 return clean_url( $src );
     105                return clean_url( $src , null , '' );
    106106        }
    107107
    108108        function in_default_dir($src) {
  • wp-includes/class.wp-scripts.php

     
    115115                }
    116116
    117117                $src = add_query_arg('ver', $ver, $src);
    118                 $src = clean_url(apply_filters( 'script_loader_src', $src, $handle ));
     118                $src = clean_url(apply_filters( 'script_loader_src', $src, $handle ), null, '');
    119119
    120120                if ( $this->do_concat )
    121121                        $this->print_html .= "<script type='text/javascript' src='$src'></script>\n";