[wp-trac] [WordPress Trac] #12955: Add get_post filter
WordPress Trac
noreply at wordpress.org
Wed Mar 21 21:48:50 UTC 2018
#12955: Add get_post filter
------------------------------------------------+--------------------------
Reporter: JohnLamansky | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future
Component: Posts, Post Types | Release
Severity: normal | Version:
Keywords: has-patch dev-feedback 2nd-opinion | Resolution:
| Focuses:
------------------------------------------------+--------------------------
Changes (by Andy Schmidt):
* keywords: has-patch dev-feedback => has-patch dev-feedback 2nd-opinion
Comment:
Replying to [comment:54 MikeSchinkel]:
> Replying to [comment:52 danieliser]:
> > 1. The WP_Post class needs to have Final removed so it can be extended
properly.
> For me the entire point of this ticket is a workaround to `WP_Post`
being `final`.
In that case, please note that there is a request to have "final" removed:
https://core.trac.wordpress.org/ticket/24672.
(I currently work around the ''final'' keyword with '''available PHP
extensions for that purpose'''. It's still cleaner than adding a whole
bunch of hooks and logic in odd places that just increases the complexity
and chance of error. Of course I much rather be able to officially use
"''extends''".)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12955#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list