Make WordPress Core

Changeset 1040 in tests for trunk/tests/xmlrpc/wp/newPost.php


Ignore:
Timestamp:
09/22/2012 04:33:44 PM (12 years ago)
Author:
scribu
Message:

replace calls to deprecated wp_get_single_post() with get_post()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/xmlrpc/wp/newPost.php

    r922 r1040  
    117117        $this->assertStringMatchesFormat( '%d', $result );
    118118
    119         $out = wp_get_single_post( $result );
     119        $out = get_post( $result );
    120120        $this->assertEquals( $my_author_id, $out->post_author );
    121121        $this->assertEquals( 'Test', $out->post_title );
Note: See TracChangeset for help on using the changeset viewer.