[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:06:02 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:
----------------------------------------+-----------------------------

Comment (by wonderboymusic):

 [attachment:30970.diff 30970.diff] combines and cleans up the patches. I'm
 not really sure what the point of
 `Tests_Query_SetupPostdata::test_fake_post()` is...?

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


More information about the wp-trac mailing list