mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user