[wp-trac] [WordPress Trac] #33068: get_post() returning current object if 0

WordPress Trac noreply at wordpress.org
Wed Jul 22 22:12:59 UTC 2015


#33068: get_post() returning current object if 0
-------------------------------+------------------------------
 Reporter:  Rahe               |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  3.5
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by Rahe):

 So if I call get_post() with a real WP_Post object on a singular page, my
 object is replaced by the current global.

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


More information about the wp-trac mailing list