[wp-trac] Re: [WordPress Trac] #9370: PHP notice for get_bloginfo()
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 23 07:26:06 GMT 2009
#9370: PHP notice for get_bloginfo()
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: westi
Type: defect (bug) | Status: reopened
Priority: lowest | Milestone: 2.8
Component: General | Version: 2.8
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Changes (by Viper007Bond):
* status: closed => reopened
* resolution: invalid =>
* milestone: => 2.8
Comment:
WordPress bug triggered by my plugin. I guess it's registering/enqueueing
styles before the locale class is initiated.
The issue comes from this line in `script-loader.php`:
{{{
$styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ?
'rtl' : 'ltr';
}}}
If I comment that out (or my `wp_enqueue_style()`'s), the error goes away.
Waiting until "`init`" rather than "`plugins_loaded`" also fixes the
problem, so I guess it was partially my fault.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9370#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list