[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
Thu Mar 19 19:12:35 UTC 2015


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

 * keywords:  needs-patch needs-unit-tests => needs-unit-tests has-patch


Comment:

 [https://core.trac.wordpress.org/attachment/ticket/30970/30970.patch
 30970.patch] modifies `setup_postdata()` to support passing a post ID or
 post object.

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


More information about the wp-trac mailing list