Make WordPress Core


Ignore:
Timestamp:
08/06/2008 08:31:54 PM (13 years ago)
Author:
markjaquith
Message:

Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/locale.php

    r6589 r8572  
    191191
    192192        // Import global locale vars set during inclusion of $locale.php.
    193         foreach ( $this->locale_vars as $var ) {
     193        foreach ( (array) $this->locale_vars as $var ) {
    194194            if ( isset($GLOBALS[$var]) )
    195195                $this->$var = $GLOBALS[$var];
Note: See TracChangeset for help on using the changeset viewer.