Make WordPress Core

Changeset 5857


Ignore:
Timestamp:
08/08/2007 05:41:46 PM (17 years 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.