- Timestamp:
- 02/24/2023 01:21:54 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/updatePostsCount.php
r54762 r55419 31 31 $post_count_after_creating = get_site()->post_count; 32 32 33 wp_delete_post( $post_id );33 wp_delete_post( $post_id, true ); 34 34 35 35 $post_count_after_deleting = get_site()->post_count; … … 48 48 /* 49 49 * Check that posts count is updated when a post is deleted: 50 * add_action( ' deleted_post', '_update_posts_count_on_delete');50 * add_action( 'after_delete_post', '_update_posts_count_on_delete', 10, 2 ); 51 51 * 52 52 * Check that _update_posts_count_on_delete() is called on that filter,
Note: See TracChangeset
for help on using the changeset viewer.