diff --git src/wp-includes/plugin.php src/wp-includes/plugin.php
index df4ba8d..151f599 100644
|
|
|
if ( ! isset( $wp_current_filter ) ) |
| 80 | 80 | * @return boolean true |
| 81 | 81 | */ |
| 82 | 82 | function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) { |
| | 83 | $tag_a = explode(' ', $tag); |
| | 84 | if (isset($tag_a[1])) { //Check if the array is longer than 1 element |
| | 85 | foreach ($tag_a as $t) { |
| | 86 | add_filter($t, $function_to_add, $priority, $accepted_args); |
| | 87 | } |
| | 88 | return; |
| | 89 | } |
| | 90 | |
| 83 | 91 | global $wp_filter, $merged_filters; |
| 84 | 92 | |
| 85 | 93 | $idx = _wp_filter_build_unique_id($tag, $function_to_add, $priority); |