WordPress.org

Make WordPress Core

Changeset 1303 in tests for trunk/tests/media.php


Ignore:
Timestamp:
07/05/2013 08:37:50 PM (8 years ago)
Author:
markjaquith
Message:

Switch to using get_attached_media(), as the get_attached_images() wrapper is going away

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/media.php

    r1299 r1303  
    192192        ) );
    193193
    194         $images = get_attached_images( $post_id );
     194        $images = get_attached_media( 'image', $post_id );
    195195        $this->assertEquals( $images, array( $attachment_id => get_post( $attachment_id ) ) );
    196196    }
Note: See TracChangeset for help on using the changeset viewer.