Changeset 1292 in tests
- Timestamp:
- 05/30/2013 02:51:53 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/query.php
r1290 r1292 44 44 function test_setup_postdata_loop() { 45 45 $post_id = $this->factory->post->create( array( 'post_content' => 'global post' ) ); 46 $GLOBALS[' post'] = get_post( $post_id );46 $GLOBALS['wp_query']->post = $GLOBALS['post'] = get_post( $post_id ); 47 47 48 48 $ids = $this->factory->post->create_many(5);
Note: See TracChangeset
for help on using the changeset viewer.