Make WordPress Core


Ignore:
Timestamp:
06/04/2022 01:39:17 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r53152 r53464  
    521521        wp_delete_post( $page_id, true );
    522522        wp_delete_term( $tag_id, 'tags' );
    523         wp_delete_attachment( $media_id );
     523        wp_delete_attachment( $media_id, true );
    524524        wp_delete_comment( $comment_id );
    525525    }
Note: See TracChangeset for help on using the changeset viewer.