- Timestamp:
- 02/12/2024 10:15:45 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-post-type-controller.php
r56549 r57603 78 78 } 79 79 80 if ( post_type_supports( $post->post_type, 'thumbnail' ) ) { 80 if ( 81 post_type_supports( $post->post_type, 'thumbnail' ) || 82 ( 83 'attachment' === $post->post_type && 84 ( 85 post_type_supports( 'attachment:audio', 'thumbnail' ) || 86 post_type_supports( 'attachment:video', 'thumbnail' ) 87 ) 88 ) 89 ) { 81 90 $this->assertSame( (int) get_post_thumbnail_id( $post->ID ), $data['featured_media'] ); 82 91 } else {
Note: See TracChangeset
for help on using the changeset viewer.