[wp-trac] [WordPress Trac] #36217: WP_Post_Type class
WordPress Trac
noreply at wordpress.org
Tue Apr 12 09:28:13 UTC 2016
#36217: WP_Post_Type class
----------------------------------------------+----------------------------
Reporter: swissspidy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: Posts, Post Types | Release
Severity: normal | Version: 2.9
Keywords: dev-feedback has-patch 4.6-early | Resolution:
| Focuses:
----------------------------------------------+----------------------------
Comment (by flixos90):
[attachment:36217.3.diff] separates the post type object logic from the
additional steps that are performed when registering the post type. There
are two new methods `_register()` and `_unregister()` for that which are
called from `register_post_type()` and `unregister_post_type()`. Maybe
these should set some kind of flag so that they are not executed more than
once.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36217#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list