[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
Mon Jul 18 18:09:46 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: | Focuses: docs, coding-standards
-------------------------------+-------------------------------------
Comment (by pbiron):
There are also **a lot** of occurrences of `$post_ID` (some of which need
to be an ID and not a post object, so not sure if they all should be
changed to `$post`).
I can provide a list of those occurrences if needed...but I suspect
@SergeyBiryukov is better at searching the code base than I am :-)
Not sure if it would be "scope creep" for this ticket, there are also mix
of `$comment_ID` and `$comment_id` throughout code. Should those be
standardized as well?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56243#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list