[wp-trac] [WordPress Trac] #56243: Use a consistent parameter name for functions accepting a post ID or post object
WordPress Trac
noreply at wordpress.org
Tue Jul 19 00:38:26 UTC 2022
#56243: Use a consistent parameter name for functions accepting a post ID or post
object
-------------------------------+-------------------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.1
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs, coding-standards
-------------------------------+-------------------------------------
Comment (by peterwilsoncc):
The [https://github.com/WordPress/wordpress-develop/pull/2988 linked pull
request]:
* restores the behaviour of `comment_form()`
* updates the description of the `comment_form_comments_closed` action to
note it fires with an invalid post ID
* includes some tests to determine the form displays as expected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56243#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list