Make WordPress Core

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


Ignore:
Timestamp:
09/22/2012 04:33:44 PM (13 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/mw/newPost.php

    r904 r1040  
    106106        $this->assertStringMatchesFormat( '%d', $result );
    107107
    108         $out = wp_get_single_post( $result );
     108        $out = get_post( $result );
    109109        $this->assertEquals( $my_author_id, $out->post_author );
    110110        $this->assertEquals( 'Test', $out->post_title );
     
    155155        $this->assertStringMatchesFormat( '%d', $result );
    156156
    157         $out = wp_get_single_post( $result );
     157        $out = get_post( $result );
    158158        $this->assertEquals( 'Test', $out->post_title );
    159159        $this->assertEquals( 'page', $out->post_type );
Note: See TracChangeset for help on using the changeset viewer.