[wp-trac] [WordPress Trac] #30970: setup_postdata should be able to accept a Post ID, currently requires full WP Post object

WordPress Trac noreply at wordpress.org
Sat Sep 12 20:57:08 UTC 2015


#30970: setup_postdata should be able to accept a Post ID, currently requires full
WP Post object
----------------------------------------+---------------------------
 Reporter:  sc0ttkclark                 |       Owner:  boonebgorges
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  4.4
Component:  Posts, Post Types           |     Version:  1.5
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34089"]:
 {{{
 #!CommitTicketReference repository="" revision="34089"
 Allow `setup_postdata()` to accept a post ID.

 Previously, it accepted only a full post object.

 Props sc0ttclark, mordauk, wonderboymusic.
 Fixes #30970.
 }}}

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


More information about the wp-trac mailing list