mirror of
git://develop.git.wordpress.org/
synced 2025-02-12 02:44:22 +01:00
This changes the global `$wp_post_types` to an array of `WP_Post_Type` objects. `WP_Post_Type` includes methods to handle post type supports, rewrite rules, meta boxes, hooks, and taxonomies. Each post type argument becomes a property of `WP_Post_Type`. Props swissspidy, flixos90. Fixes #36217. git-svn-id: https://develop.svn.wordpress.org/trunk@37890 602fd350-edb4-49c9-b593-d223f7449a82