diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php
index 27a65ee..684ea0a 100644
a
|
b
|
if ( ! isset( $wp_current_filter ) ) |
81 | 81 | function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) { |
82 | 82 | global $wp_filter, $merged_filters; |
83 | 83 | |
| 84 | if( !is_int($priority) ) |
| 85 | return false; |
| 86 | |
84 | 87 | $idx = _wp_filter_build_unique_id($tag, $function_to_add, $priority); |
85 | 88 | $wp_filter[$tag][$priority][$idx] = array('function' => $function_to_add, 'accepted_args' => $accepted_args); |
86 | 89 | unset( $merged_filters[ $tag ] ); |