[wp-trac] [WordPress Trac] #13592: script_loader_src and style_loader_tag filters

WordPress Trac wp-trac at lists.automattic.com
Fri May 28 09:40:07 UTC 2010


#13592: script_loader_src and style_loader_tag filters
-----------------------------+----------------------------------------------
 Reporter:  olivM            |       Owner:            
     Type:  feature request  |      Status:  new       
 Priority:  normal           |   Milestone:  Unassigned
Component:  General          |     Version:            
 Severity:  normal           |    Keywords:            
-----------------------------+----------------------------------------------
 i'm trying to build a scripts and styles minifier.
 ( i don't like the way wp-minify does it ... )

 thanks to the style_loader_tag filters, i'm pretty proud of my work for
 stylesheets.

 but why don't we have a script_loader_tag ?

 something like this in class.wp-scripts.php :
 {{{
    $src .= apply_filters( 'script_loader_tag', "<script
 type='text/javascript' src='$src'></script>\n", $handle );
 }}}


 ok i'll try to submit a real patch.

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


More information about the wp-trac mailing list