WordPress.org

Make WordPress Core

Changeset 1394


Ignore:
Timestamp:
06/08/04 09:34:01 (11 years ago)
Author:
rboren
Message:

Add null check to $functions in apply_filters(). http://www.kackreiz.net/wordpress.php

File:
1 edited

Legend:

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

    r1389 r1394  
    11181118        ksort($wp_filter[$tag]); 
    11191119        foreach ($wp_filter[$tag] as $priority => $functions) { 
    1120             foreach($functions as $function) { 
     1120            if (!is_null($functions)) { 
     1121                foreach($functions as $function) { 
    11211122                    $string = $function($string); 
    1122             } 
     1123                } 
     1124            } 
    11231125        } 
    11241126    } 
Note: See TracChangeset for help on using the changeset viewer.