[wp-trac] [WordPress Trac] #34875: Allow developers to use an extended version of WP_Post (also WP_Term & WP_Comment)
WordPress Trac
noreply at wordpress.org
Sun Dec 6 21:03:42 UTC 2015
#34875: Allow developers to use an extended version of WP_Post (also WP_Term &
WP_Comment)
-------------------------------+------------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by boonebgorges):
Replying to [comment:1 nacin]:
> I think I'm still against this. I'd like to see us start to add methods
to these functions. If others are allowed to extend `WP_Post` et al., core
will end up breaking their code, and I don't think core should take on
this responsibility right now.
Also, we should be encouraging dependency injection with stable interfaces
rather than extending classes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34875#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list