Make WordPress Core

Ticket #5261: plugin.5261.fix.patch

File plugin.5261.fix.patch, 523 bytes (added by darkdragon, 19 years ago)

Take one, will need testing.

  • plugin.php

     
    189189
    190190        $r = isset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);
    191191
    192         unset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);
    193         unset($GLOBALS['merged_filters'][$tag]);
     192        if( true === $r) {
     193                unset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);
     194                unset($GLOBALS['merged_filters'][$tag]);
     195        }
    194196
    195197        return $r;
    196198}