WordPress.org

Make WordPress Core

Ticket #14549: filter_flush_rewrite_rules_hard.diff

File filter_flush_rewrite_rules_hard.diff, 550 bytes (added by ikailo, 8 years ago)

Moved filter to method

  • wp-includes/rewrite.php

     
    18811881        function flush_rules($hard = true) {
    18821882                delete_option('rewrite_rules');
    18831883                $this->wp_rewrite_rules();
     1884                $hard = apply_filters('flush_rewrite_rules_hard', $hard);
    18841885                if ( $hard && function_exists('save_mod_rewrite_rules') )
    18851886                        save_mod_rewrite_rules();
    18861887                if ( $hard && function_exists('iis7_save_url_rewrite_rules') )