WordPress.org

Make WordPress Core

Ticket #14853: wp-scripts-filter-2.diff

File wp-scripts-filter-2.diff, 551 bytes (added by mattwiebe, 8 years ago)
  • wp-includes/class.wp-scripts.php

     
    125125                if ( $this->do_concat )
    126126                        $this->print_html .= "<script type='text/javascript' src='$src'></script>\n";
    127127                else
    128                         echo "<script type='text/javascript' src='$src'></script>\n";
     128                        echo apply_filters( 'wp_print_scripts', "<script type='text/javascript' src='$src'></script>\n", $handle );
    129129
    130130                return true;
    131131        }