[wp-trac] Re: [WordPress Trac] #6197: extra scripts function suggestion

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 13 18:13:05 GMT 2008


#6197: extra scripts function suggestion
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  enhancement        |       Status:  new      
 Priority:  normal             |    Milestone:  2.5      
Component:  General            |      Version:  2.5      
 Severity:  trivial            |   Resolution:           
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by mdawaffe):

 The wp_scripts already has a method to determine if a script, exists, has
 been queued, or has been printed.

 {{{
 global $wp_scripts;
 return $wp_scripts->query( $handle, 'queue' ); // 'scripts', 'queue', or
 'printed'
 }}}

 There's no procedural wrapper for it though.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6197#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list