[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 16:35:36 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):

 Replying to [comment:9 SergeyBiryukov]:
 > I've been thinking about opening a separate ticket for normalizing other
 parameters in the same way as it was done for `user_ID` → `user_id` in
 [12267], [12300], and [28915]:
 >
 > * `comment_ID` → `comment_id`
 > * `comment_post_ID` → `comment_post_id`
 > * `comment_author_IP` → `comment_author_ip`
 >
 > Then any combination of these parameters would work regardless of the
 case.

 Created: #56261

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56244#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list