[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
Tue Dec 8 06:04:33 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 flixos90):
[comment:1 @nacin]:
> I'd like to see us start to add methods to these functions.
I'm not sure what you mean. Could you elaborate a little?
[comment:2 @boonebgorges]:
> Also, we should be encouraging dependency injection with stable
interfaces rather than extending classes.
That sounds like a solid alternative. Do you know of any resources on it
that are already out there? In particular, do you have a specific approach
to it?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34875#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list