WordPress.org

Make WordPress Core

Changeset 14866


Ignore:
Timestamp:
05/25/2010 12:13:03 AM (10 years ago)
Author:
wpmuguru
Message:

eliminate warning in global_terms(), global to static, fixes #13517

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes

    • Property svn:ignore set to
      .functions.php.swp
  • trunk/wp-includes/ms-functions.php

    r14844 r14866  
    12101210 */
    12111211function global_terms( $term_id, $deprecated = '' ) {
    1212     global $wpdb, $global_terms_recurse;
     1212    global $wpdb;
     1213    static $global_terms_recurse;
    12131214
    12141215    if ( !global_terms_enabled() )
     
    12161217
    12171218    // prevent a race condition
     1219    $recurse_start = false;
    12181220    if ( !isset( $global_terms_recurse ) ) {
    12191221        $recurse_start = true;
     
    12211223    } elseif ( 10 < $global_terms_recurse++ ) {
    12221224        return $term_id;
    1223         $recurse_start = false;
    12241225    }
    12251226
Note: See TracChangeset for help on using the changeset viewer.