Changeset 5857

Show
Ignore:
Timestamp:
08/08/07 17:41:46 (1 year ago)
Author:
markjaquith
Message:

explicitly check next() against FALSE when iterating through filters. Props Denis-de-Bernardy, Otto42, Nazgul, santosj (go team effort!). fixes #4625 for trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/plugin.php

    r5413 r5857  
    5858            } 
    5959 
    60     } while ( next($wp_filter[$tag]) ); 
     60    } while ( next($wp_filter[$tag]) !== false ); 
    6161 
    6262    return $string; 
     
    162162                call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); 
    163163 
    164     } while ( next($wp_filter[$tag]) ); 
     164    } while ( next($wp_filter[$tag]) !== false ); 
    165165 
    166166}