[wp-trac] [WordPress Trac] #56244: Use a consistent parameter name for functions accepting a comment ID or object
WordPress Trac
noreply at wordpress.org
Wed Jul 20 14:47:55 UTC 2022
#56244: Use a consistent parameter name for functions accepting a comment ID or
object
----------------------------+-------------------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.1
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: | Focuses: docs, coding-standards
----------------------------+-------------------------------------
Comment (by SergeyBiryukov):
In [changeset:"53732" 53732]:
{{{
#!CommitTicketReference repository="" revision="53732"
Tests: Correct the test for passing all expected parameters to the
`preprocess_comment` filter.
Previously, `assertSame()` was replaced with `assertSameSets()`, which
does not preserve the array keys. `assertSameSetsWithIndex()` should have
been used instead.
Follow-up to [36038], [48937], [53729], [53730].
See #55647, #56244.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56244#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list