WordPress.org

Make WordPress Core

Changeset 14691


Ignore:
Timestamp:
05/16/10 13:41:02 (5 years ago)
Author:
westi
Message:

Fix remaining notice when using closures. Fixes #10493 props scribu.

File:
1 edited

Legend:

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

    r14690 r14691  
    738738        return $function; 
    739739 
    740     // Closures are currently implemented as objects 
    741740    if ( is_object($function) ) { 
    742         $function = array( $function ); 
     741        // Closures are currently implemented as objects 
     742        $function = array( $function, '' ); 
    743743    } else { 
    744744        $function = (array) $function; 
Note: See TracChangeset for help on using the changeset viewer.