[wp-trac] [WordPress Trac] #56244: Use a consistent parameter name for functions accepting a comment ID or object

WordPress Trac noreply at wordpress.org
Tue Oct 11 16:30:54 UTC 2022


#56244: Use a consistent parameter name for functions accepting a comment ID or
object
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:
                                                 |  SergeyBiryukov
     Type:  task (blessed)                       |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Comments                             |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  add-to-field-guide has-patch has-    |     Focuses:  docs,
  unit-tests                                     |  coding-standards
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54489" 54489]:
 {{{
 #!CommitTicketReference repository="" revision="54489"
 Comments: Consistently normalize `user_ID` to `user_id` in
 `wp_new_comment()`.

 For backward compatibility, the `user_id` parameter of `wp_new_comment()`
 can be spelled as `user_ID`, and plugins utilizing the
 `preprocess_comment` filter or the `comment_post` action should be able to
 receive both variations.

 Follow-up to [12267], [12300], [28915], [36038], [53729].

 Props peterwilsoncc, SergeyBiryukov.
 Fixes #56244.
 }}}

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


More information about the wp-trac mailing list