Make WordPress Core


Ignore:
Timestamp:
02/29/2012 01:10:44 AM (12 years ago)
Author:
markoheijnen
Message:

XMLRPC: Add theme support post-thumbnails when it get used in the post methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test-xmlrpc-api/test_wp_editPost.php

    r555 r556  
    8686
    8787    function test_featured_image() {
     88        add_theme_support( 'post-thumbnails' );
     89
    8890        $author_id = get_user_by( 'login', 'author' )->ID;
    8991        $post = array( 'post_title' => 'Featured Image Test', 'post_author' => $author_id );
     
    133135        $this->assertNotInstanceOf( 'IXR_Error', $result );
    134136        $this->assertEquals( '', get_post_meta( $post_id, '_thumbnail_id', true ) );
     137
     138        remove_theme_support( 'post-thumbnails' );
    135139    }
    136140
Note: See TracChangeset for help on using the changeset viewer.