[wp-trac] [WordPress Trac] #36217: WP_Post_Type class
WordPress Trac
noreply at wordpress.org
Tue May 10 08:48:54 UTC 2016
#36217: WP_Post_Type class
------------------------------------+------------------
Reporter: swissspidy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.6
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+------------------
Comment (by flixos90):
What we should also consider is creating an abstract base class for both
`WP_Post_Type` and `WP_Taxonomy` (see #36224), something like
`WP_Content_Type`. This class could contain common abstract methods and
would ensure that we develop these classes in the same structure. Post
types and taxonomies are both types of certain content. This base class
could possibly serve for other use-cases (`WP_Comment_Type` for example)
in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36217#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list