Make WordPress Core


Ignore:
Timestamp:
08/06/2008 08:31:54 PM (16 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/plugin.php

    r7999 r8572  
    9191        return false;
    9292
    93     foreach ( array_keys($wp_filter[$tag]) as $priority ) {
     93    foreach ( (array) array_keys($wp_filter[$tag]) as $priority ) {
    9494        if ( isset($wp_filter[$tag][$priority][$idx]) )
    9595            return $priority;
Note: See TracChangeset for help on using the changeset viewer.