We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3957456 commit d2c6bbeCopy full SHA for d2c6bbe
1 file changed
includes/util/class-hook-registry.php
@@ -238,7 +238,8 @@ private static function callback_to_string( $callback ) {
238
239
if ( is_array( $callback ) ) {
240
if ( is_object( $callback[0] ) ) {
241
- return get_class( $callback[0] ) . '::' . $callback[1];
+ $object_hash = spl_object_hash( $callback[0] );
242
+ return get_class( $callback[0] ) . '#' . $object_hash . '::' . $callback[1];
243
}
244
return $callback[0] . '::' . $callback[1];
245
0 commit comments