WordPress.org

Make WordPress Core

Ticket #19306: 19306.diff

File 19306.diff, 502 bytes (added by nacin, 2 years ago)
  • wp-includes/plugin.php

     
    283283 
    284284        if( isset($wp_filter[$tag]) ) { 
    285285                if( false !== $priority && isset($wp_filter[$tag][$priority]) ) 
    286                         unset($wp_filter[$tag][$priority]); 
     286                        $wp_filter[$tag][$priority] = array(); 
    287287                else 
    288                         unset($wp_filter[$tag]); 
     288                        $wp_filter[$tag] = array(); 
    289289        } 
    290290 
    291291        if( isset($merged_filters[$tag]) )