[wp-trac] [WordPress Trac] #36217: WP_Post_Type class

WordPress Trac noreply at wordpress.org
Fri Oct 7 17:11:05 UTC 2016


#36217: WP_Post_Type class
--------------------------------------+-------------------------
 Reporter:  swissspidy                |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.6
Component:  Posts, Post Types         |     Version:  2.9
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by swissspidy):

 In [changeset:"38747"]:
 {{{
 #!CommitTicketReference repository="" revision="38747"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36217#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list