WordPress.org

Make WordPress Core

Ticket #20171: 20171.diff

File 20171.diff, 1.1 KB (added by nacin, 7 years ago)
  • wp-includes/rewrite.php

     
    19501950                         $this->use_verbose_page_rules = true;
    19511951                else
    19521952                        $this->use_verbose_page_rules = false;
     1953
     1954                /**
     1955                 * Initialize rewrite rules.
     1956                 *
     1957                 * Fires whenever rewrite rules are initialized, which could occur more than once per page.
     1958                 *
     1959                 * @since 3.8.0
     1960                 *
     1961                 * @param WP_Rewrite $this The rewrite object.
     1962                 */
     1963                do_action( 'rewrite_init', $this );
    19531964        }
    19541965
    19551966        /**
  • wp-includes/taxonomy.php

     
    118118                'show_in_nav_menus' => current_theme_supports( 'post-formats' ),
    119119        ) );
    120120}
    121 add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
     121add_action( 'rewrite_init', 'create_initial_taxonomies', 0 ); // highest priority
    122122
    123123/**
    124124 * Get a list of registered taxonomy objects.