diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php
index 4796503dcc..b933a6e8eb 100644
|
a
|
b
|
final class WP_Hook implements Iterator, ArrayAccess { |
| 74 | 74 | public function add_filter( $hook_name, $callback, $priority, $accepted_args ) { |
| 75 | 75 | $idx = _wp_filter_build_unique_id( $hook_name, $callback, $priority ); |
| 76 | 76 | |
| | 77 | if ( ! is_int( $priority ) ) { |
| | 78 | $priority = (string) $priority; |
| | 79 | } |
| | 80 | |
| 77 | 81 | $priority_existed = isset( $this->callbacks[ $priority ] ); |
| 78 | 82 | |
| 79 | 83 | $this->callbacks[ $priority ][ $idx ] = array( |