Tests: Consistently pass the $force_delete parameter to wp_delete_attachment().

Convert some `wp_delete_post()` calls to `wp_delete_attachment()` to avoid an extra function call.

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@53464 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-06-04 13:39:17 +00:00
parent 82d1e32a10
commit d67674512e
3 changed files with 10 additions and 10 deletions

View File

@@ -520,7 +520,7 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase {
wp_delete_post( $post_id, true );
wp_delete_post( $page_id, true );
wp_delete_term( $tag_id, 'tags' );
wp_delete_attachment( $media_id );
wp_delete_attachment( $media_id, true );
wp_delete_comment( $comment_id );
}