Changeset 46220 for trunk/src/wp-includes/plugin.php
- Timestamp:
- 09/20/2019 10:33:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/plugin.php
r46149 r46220 926 926 if ( is_object( $function[0] ) ) { 927 927 // Object Class Calling 928 if ( function_exists( 'spl_object_hash' ) ) { 929 return spl_object_hash( $function[0] ) . $function[1]; 930 } else { 931 $obj_idx = get_class( $function[0] ) . $function[1]; 932 if ( ! isset( $function[0]->wp_filter_id ) ) { 933 if ( false === $priority ) { 934 return false; 935 } 936 $obj_idx .= isset( $wp_filter[ $tag ][ $priority ] ) ? count( (array) $wp_filter[ $tag ][ $priority ] ) : $filter_id_count; 937 $function[0]->wp_filter_id = $filter_id_count; 938 ++$filter_id_count; 939 } else { 940 $obj_idx .= $function[0]->wp_filter_id; 941 } 942 943 return $obj_idx; 944 } 928 return spl_object_hash( $function[0] ) . $function[1]; 945 929 } elseif ( is_string( $function[0] ) ) { 946 930 // Static Calling
Note: See TracChangeset
for help on using the changeset viewer.