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

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


#5612: using wp_register_script generates an error
-----------------------+----------------------------------------------------
 Reporter:  devil1591  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  2.5      
Component:  General    |     Version:  2.5      
 Severity:  normal     |    Keywords:           
-----------------------+----------------------------------------------------
 Hi there,
 I'm using using lastest svn r6582

 When I use wp_register_script inside a plugin, and it generates an error
 and it wasn't last week :
 {{{
 Fatal error: Call to undefined function: wp_get_current_user() in wp-
 includes\user.php on line 30.
 }}}

 Same error if I use this inside a plugin :
 {{{
 $wp_scripts = new WP_Scripts();
 $wp_scripts->dequeue('tiny_mce');
 }}}

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


More information about the wp-trac mailing list