[wp-trac] Re: [WordPress Trac] #5612: using wp_register_script generates an error in plugin

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 9 14:59:25 GMT 2008


#5612: using wp_register_script generates an error in plugin
------------------------------+---------------------------------------------
 Reporter:  devil1591         |        Owner:  westi   
     Type:  defect            |       Status:  assigned
 Priority:  normal            |    Milestone:  2.5     
Component:  General           |      Version:  2.5     
 Severity:  normal            |   Resolution:          
 Keywords:  reporter-feeback  |  
------------------------------+---------------------------------------------
Comment (by devil1591):

 Using this sample plugin i'm getting the error.
 {{{
 <?php
 /*
 Plugin Name: BUG TEST
 Version: 1.0
 */

 wp_register_script('jscalendar',
 get_bloginfo('template_directory').'/js/jscalendar/calendar_stripped.js',
 array(), '1.51');

 // this is buggy too
 /*
 $wp_scripts = new WP_Scripts();
 $wp_scripts->dequeue('tiny_mce');
 */

 ?>
 }}}

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


More information about the wp-trac mailing list