Fix typo in remove_all_filters() that prevented hooks from being removed by priority. fixes #12492, props chrisbliss18.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1961ae08d
commit
8dee46ddf0
|
@ -222,7 +222,7 @@ function remove_all_filters($tag, $priority = false) {
|
||||||
global $wp_filter, $merged_filters;
|
global $wp_filter, $merged_filters;
|
||||||
|
|
||||||
if( isset($wp_filter[$tag]) ) {
|
if( isset($wp_filter[$tag]) ) {
|
||||||
if( false !== $priority && isset($$wp_filter[$tag][$priority]) )
|
if( false !== $priority && isset($wp_filter[$tag][$priority]) )
|
||||||
unset($wp_filter[$tag][$priority]);
|
unset($wp_filter[$tag][$priority]);
|
||||||
else
|
else
|
||||||
unset($wp_filter[$tag]);
|
unset($wp_filter[$tag]);
|
||||||
|
|
Loading…
Reference in New Issue