[wp-trac] [WordPress Trac] #30292: Stop get_post() overwriting non-WP_Post objects passed as first parameter
WordPress Trac
noreply at wordpress.org
Tue Oct 13 02:13:21 UTC 2015
#30292: Stop get_post() overwriting non-WP_Post objects passed as first parameter
------------------------------------+------------------------------
Reporter: MikeSchinkel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Changes (by MikeSchinkel):
* keywords: => has-patch dev-feedback
Comment:
Replying to [comment:3 sc0ttkclark]:
> This looks good to me, do we need a set of unit tests to test that
custom objects aren't entirely destroyed when using the WP API template
tags as you said? Or do all of those ultimately call get_post() which this
would entirely resolve?
In my review they all call `get_post()`.
Related #26877
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30292#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list