WordPress.org

Make WordPress Core

Ticket #20776: 20776.diff

File 20776.diff, 501 bytes (added by ericlewis, 6 years ago)

replace is_null with is_callable

  • wp-includes/plugin.php

     
    399399
    400400        do {
    401401                foreach ( (array) current($wp_filter[$tag]) as $the_ )
    402                         if ( !is_null($the_['function']) )
     402                        if ( is_callable($the_['function']) )
    403403                                call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
    404404
    405405        } while ( next($wp_filter[$tag]) !== false );