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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 13 10:39:54 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            |    Keywords:           
-------------------------------+--------------------------------------------
 a wp_is_enqueued_script($handle) function could be useful... something
 like:


 {{{
 function wp_is_enqueued_script($handle)
 {
   global $wp_scripts;
   if ( !is_object($wp_scripts) )
     return false;
   else
     return in_array($handle, (array) $wp_scripts->queue);
 }
 }}}

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


More information about the wp-trac mailing list