Add missing type arg on call to _wp_filter_build_unique_id(). see #5231
git-svn-id: https://develop.svn.wordpress.org/trunk@6319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f69f6c0070
commit
35f22f56cf
@ -396,7 +396,7 @@ function do_action_ref_array($tag, $args) {
|
||||
* @return boolean Whether the function is removed.
|
||||
*/
|
||||
function remove_action($tag, $function_to_remove, $priority = 10, $accepted_args = 1) {
|
||||
$function_to_remove = _wp_filter_build_unique_id($tag, $function_to_remove, $priority);
|
||||
$function_to_remove = _wp_filter_build_unique_id($tag, $function_to_remove, $priority, 'action');
|
||||
|
||||
$r = isset($GLOBALS['wp_action'][$tag][$priority][$function_to_remove]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user