[wp-trac] Re: [WordPress Trac] #4928: $locale var may be set but false

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 7 19:11:10 GMT 2007


#4928: $locale var may be set but false
--------------------+-------------------------------------------------------
 Reporter:  ashnur  |        Owner:  anonymous 
     Type:  defect  |       Status:  new       
 Priority:  normal  |    Milestone:  2.4 (next)
Component:  i18n    |      Version:  2.3       
 Severity:  minor   |   Resolution:            
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by ashnur):

 Replying to [comment:3 Nazgul]:
 > I'd go for a {{{if (isset($locale) && !empty($locale))}}} myself.

 see, i dunno if it's ok. i mean, that's exactly what I did, so it should,
 but maybe i was wrong about it and it has to be {{{if (isset($locale) &&
 $locale !== FALSE ))}}}. i doublechecked the source, but got confused.
 maybe someone else should check it too, and see if I'm right. it's not
 about religion .. how to check if it's empty or not, it's about a really
 annoying bug with wordpress MU. the !== false version works for me, but
 that's just me.

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


More information about the wp-trac mailing list