WordPress.org

Make WordPress Core

Ticket #10493: closures.3.diff

File closures.3.diff, 434 bytes (added by scribu, 8 years ago)

Fix notices

  • wp-includes/plugin.php

     
    737737        if ( is_string($function) )
    738738                return $function;
    739739
    740         $function = (array) $function;
     740        // Closure
     741        if ( is_object($function) )
     742                return spl_object_hash($function);
    741743
    742744        if (is_object($function[0]) ) {
    743745                // Object Class Calling