[wp-trac] [WordPress Trac] #30292: Stop get_post() overwriting non-WP_Post objects passed as first parameter

WordPress Trac noreply at wordpress.org
Mon Jan 12 17:43:12 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:                     |     Focuses:
-------------------------------+------------------------------

Comment (by 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?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30292#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list