WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2016 05:11:02 PM (4 years ago)
Author:
swissspidy
Message:

Taxonomy: Introduce WP_Taxonomy and use it in register_taxonomy() and unregister_taxonomy().

This changes the global $wp_taxonomies to an array of WP_Taxonomy objects. WP_Taxonomy includes methods to handle rewrite rules and hooks.
Each taxonomy argument becomes a property of WP_Taxonomy. Introducing such a class makes further improvements in the future much more feasible.

Props boonebgorges for review.
Fixes #36224. See #36217.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r38496 r38747  
    188188require( ABSPATH . WPINC . '/script-loader.php' );
    189189require( ABSPATH . WPINC . '/taxonomy.php' );
     190require( ABSPATH . WPINC . '/class-wp-taxonomy.php' );
    190191require( ABSPATH . WPINC . '/class-wp-term.php' );
    191192require( ABSPATH . WPINC . '/class-wp-term-query.php' );
Note: See TracChangeset for help on using the changeset viewer.