[wp-trac] [WordPress Trac] #9370: PHP in get_bloginfo() - $wp_locale not setup early enough for script-loader

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 5 22:12:47 UTC 2009


#9370: PHP in get_bloginfo() - $wp_locale not setup early enough for script-loader
------------------------------+---------------------------------------------
 Reporter:  Viper007Bond      |        Owner:  westi   
     Type:  defect (bug)      |       Status:  reopened
 Priority:  normal            |    Milestone:  2.9     
Component:  Warnings/Notices  |      Version:  2.8     
 Severity:  normal            |   Resolution:          
 Keywords:  needs-patch       |  
------------------------------+---------------------------------------------

Comment(by dd32):

 I'm not sure why this ticket is still open..

 using wp_enqueue_script() before init is a recipe for disaster, I came
 accross a plugin which was doing exactly that a few days ago and sent me
 on a wild goose chase trying to work out what was happening to make
 wp_styles spit out errors.. - http://dd32.id.au/2009/11/01/youre-doing-it-
 wrong-1/

 In my opinion: The fix is to just return false if someone tries to enqueue
 too early.. They obviously dont care what page their output is going to
 appear on.. so they're broken already.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9370#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list