mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Add missing type arg on call to _wp_filter_build_unique_id(). see #5231
git-svn-id: http://svn.automattic.com/wordpress/trunk@6319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e63de02ca
commit
902cc8e985
@ -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