Make WordPress Core


Ignore:
Timestamp:
05/25/2010 12:31:07 AM (16 years ago)
Author:
wpmuguru
Message:

give static var initial value, fixes #13517

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r14866 r14867  
    12111211function global_terms( $term_id, $deprecated = '' ) {
    12121212        global $wpdb;
    1213         static $global_terms_recurse;
     1213        static $global_terms_recurse = null;
    12141214
    12151215        if ( !global_terms_enabled() )
    … …  
    12181218        // prevent a race condition
    12191219        $recurse_start = false;
    1220         if ( !isset( $global_terms_recurse ) ) {
     1220        if ( $global_terms_recurse === null ) {
    12211221                $recurse_start = true;
    12221222                $global_terms_recurse = 1;
    … …  
    12591259        }
    12601260        if( $recurse_start )
    1261                 unset( $global_terms_recurse );
     1261                $global_terms_recurse = null;
    12621262
    12631263        return $global_id;
Note: See TracChangeset for help on using the changeset viewer.