[wp-trac] [WordPress Trac] #57023: _update_posts_count_on_delete() is still called incorrectly
WordPress Trac
noreply at wordpress.org
Mon Nov 7 17:45:43 UTC 2022
#57023: _update_posts_count_on_delete() is still called incorrectly
-------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.2
Component: Posts, Post Types | Version: 5.9
Severity: normal | Resolution:
Keywords: | Focuses: multisite
-------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"54760" 54760]:
{{{
#!CommitTicketReference repository="" revision="54760"
Tests: Combine duplicate `update_posts_count()` tests.
This combines the newer test for `update_posts_count()` located in its own
file with the pre-existing one from `tests/multisite/site.php`, which was
essentially testing the same thing in a similar way.
Includes:
* Renaming the test class per the
[https://make.wordpress.org/core/handbook/testing/automated-testing
/writing-phpunit-tests/#naming-and-organization naming conventions].
* Adjusting comments per the documentation standards.
* Updating `@covers` tags for accuracy.
* Removing unnecessary blog switching.
* Using `assertSame()` to check the value type.
Follow-up to [28835], [29667], [52207].
See #57023, #56793.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57023#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list