Ticket #10493: closures.2.diff
File closures.2.diff, 742 bytes (added by , 16 years ago) |
---|
-
wp-includes/plugin.php
675 675 global $wp_filter; 676 676 static $filter_id_count = 0; 677 677 678 if ( is_string($function) ) {678 if ( is_string($function) ) 679 679 return $function; 680 } else if (is_object($function[0]) ) { 680 681 $function = (array) $function; 682 683 if (is_object($function[0]) ) { 681 684 // Object Class Calling 682 685 if ( function_exists('spl_object_hash') ) { 683 686 return spl_object_hash($function[0]) . $function[1]; … … 692 695 } else { 693 696 $obj_idx .= $function[0]->wp_filter_id; 694 697 } 695 698 696 699 return $obj_idx; 697 700 } 698 701 } else if ( is_string($function[0]) ) {