WordPress.org

Make WordPress Core

Ticket #12492: 12492-patch.diff

File 12492-patch.diff, 510 bytes (added by chrisbliss18, 4 years ago)

Bug fix

  • wp-includes/plugin.php

    diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php
    index 8d8a7c7..3a9c507 100644
    a b function remove_all_filters($tag, $priority = false) { 
    222222        global $wp_filter, $merged_filters; 
    223223 
    224224        if( isset($wp_filter[$tag]) ) { 
    225                 if( false !== $priority && isset($$wp_filter[$tag][$priority]) ) 
     225                if( false !== $priority && isset($wp_filter[$tag][$priority]) ) 
    226226                        unset($wp_filter[$tag][$priority]); 
    227227                else 
    228228                        unset($wp_filter[$tag]);