Changeset 5393
- Timestamp:
- 05/04/2007 11:27:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r5202 r5393 98 98 */ 99 99 function remove_filter($tag, $function_to_remove, $priority = 10, $accepted_args = 1) { 100 global $wp_filter, $merged_filters; 101 102 unset($GLOBALS['wp_filter'][$tag][$priority][serialize($function_to_remove)]); 103 unset( $merged_filters[ $tag ] ); 104 105 return true; 100 $function_to_remove = serialize($function_to_remove); 101 102 $r = isset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]); 103 104 unset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]); 105 unset($GLOBALS['merged_filters'][$tag]); 106 107 return $r; 106 108 } 107 109 … … 217 219 */ 218 220 function remove_action($tag, $function_to_remove, $priority = 10, $accepted_args = 1) { 219 re move_filter($tag, $function_to_remove, $priority, $accepted_args);221 return remove_filter($tag, $function_to_remove, $priority, $accepted_args); 220 222 } 221 223
Note: See TracChangeset
for help on using the changeset viewer.