|
@@ -52,9 +52,9 @@ |
|
|
block discarded – undo |
|
52
|
52
|
|
|
53
|
53
|
// Get object hash.. This bypasses issues with serializing closures. |
|
54
|
54
|
if ( is_object( $hook ) ) { |
|
55
|
|
- $args[1] = spl_object_hash( $args[1] ); |
|
56
|
|
- } elseif ( is_array( $hook ) && is_object( $hook[0] ) ) { |
|
57
|
|
- $args[1][0] = spl_object_hash( $hook[0] ); |
|
|
55
|
+ $args[ 1 ] = spl_object_hash( $args[ 1 ] ); |
|
|
56
|
+ } elseif ( is_array( $hook ) && is_object( $hook[ 0 ] ) ) { |
|
|
57
|
+ $args[ 1 ][ 0 ] = spl_object_hash( $hook[ 0 ] ); |
|
58
|
58
|
} |
|
59
|
59
|
|
|
60
|
60
|
$key = md5( serialize( $args ) ); |
Please login to merge, or discard this patch.