[wp-trac] [WordPress Trac] #36217: WP_Post_Type class
WordPress Trac
noreply at wordpress.org
Thu Jun 16 10:07:48 UTC 2016
#36217: WP_Post_Type class
-------------------------------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.6
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: dev-feedback has-patch needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by swissspidy):
> Also, while we're at it, these classes should try to be more SOLID then
the rest of WordPress, so I think we should aim for a better way for
dealing with the rewrite rules. As rewriting rules are also used for other
data types, why not split this out into its own object?
Next generation rewrites are being worked on in #36292.
> I would think that calling `WP_Taxonomy` a type of `Content` will add to
the confusion about what taxonomies even are and how they are used.
> Also, the terminology of posts is widely established in the community
and a change like that would probably lead to confusion as we cannot
change it everywhere in the Core code (inconsistency).
Correct, that would definitely confusing and inconsistent. Imaging
`register_post_type()` returning a `WP_Content_Type` object.
https://markjaquith.wordpress.com/2010/11/12/post-formats-vs-custom-post-
types/ is a great read for that. I don't think the class name is up for
discussion here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36217#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list