File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -391,12 +391,11 @@ public function test_to_private_post_type( $structure ) {
391
391
$ this ->go_to ( get_permalink ( $ id ) );
392
392
$ this ->assertFalse ( is_single () );
393
393
394
- // comment out in wp 5.6 beta 4
395
- // $attachment_link = user_trailingslashit( trailingslashit( $post_link ) . get_post( $attachment_id )->post_name );
396
- // $this->assertEquals( $attachment_id, url_to_postid( get_attachment_link( $attachment_id ) ) );
397
- // $this->assertEquals( $attachment_link, get_attachment_link( $attachment_id ) );
398
- // $this->go_to( get_attachment_link( $attachment_id ) );
399
- // $this->assertTrue( is_attachment() );
394
+ $ attachment_link = user_trailingslashit ( trailingslashit ( $ post_link ) . get_post ( $ attachment_id )->post_name );
395
+ $ this ->assertEquals ( $ attachment_id , url_to_postid ( get_attachment_link ( $ attachment_id ) ) );
396
+ $ this ->assertEquals ( $ attachment_link , get_attachment_link ( $ attachment_id ) );
397
+ $ this ->go_to ( get_attachment_link ( $ attachment_id ) );
398
+ $ this ->assertTrue ( is_attachment () );
400
399
}
401
400
402
401
/**
You can’t perform that action at this time.
0 commit comments