WordPress.org

Make WordPress Core

Ticket #20171: rewrite_init.diff

File rewrite_init.diff, 849 bytes (added by duck_, 2 years ago)
  • wp-includes/taxonomy.php

     
    110110                'show_in_nav_menus' => current_theme_supports( 'post-formats' ), 
    111111        ) ); 
    112112} 
    113 add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority 
     113add_action( 'rewrite_init', 'create_initial_taxonomies', 0 ); // highest priority 
    114114 
    115115/** 
    116116 * Get a list of registered taxonomy objects. 
  • wp-includes/rewrite.php

     
    19751975                         $this->use_verbose_page_rules = true; 
    19761976                else 
    19771977                        $this->use_verbose_page_rules = false; 
     1978 
     1979                do_action( 'rewrite_init' ); 
    19781980        } 
    19791981 
    19801982        /**