[wp-trac] Re: [WordPress Trac] #9370: PHP notice for get_bloginfo()

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 22 01:50:05 GMT 2009


#9370: PHP notice for get_bloginfo()
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  anonymous     
     Type:  defect (bug)  |      Status:  new           
 Priority:  lowest        |   Milestone:  Future Release
Component:  General       |     Version:  2.8           
 Severity:  minor         |    Keywords:  has-patch     
--------------------------+-------------------------------------------------
Changes (by Viper007Bond):

  * keywords:  needs-patch => has-patch


Comment:

 Looks like `get_bloginfo()` is being called somewhere before `WP_Locale`
 is initiated. Attached patch returns a blank string if the class/var
 hasn't been initiated yet. Hopefully this doesn't break anything, although
 it's no different from what's currently going on.

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


More information about the wp-trac mailing list