Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57671, comment 2


Ignore:
Timestamp:
02/08/2023 03:59:52 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57671, comment 2

    initial v1  
    55Reopening, as this can be done separately from #56261. That ticket is mostly focused on the `comment_ID` value of the comment data array in functions like `wp_new_comment()`, `wp_update_comment()`, or `wp_filter_comment()`, where plugins may expect both `comment_id` and `comment_ID` values to exist in the array.
    66
    7 This ticket can be focused strictly on renaming the `$comment_ID` variable to match core coding standards. This will affect function parameters, internal variables, and hook DocBlocks and encourage better practices.
     7This ticket can be focused strictly on renaming the `$comment_ID` variable to match core coding standards. This will affect function parameters, internal variables, and update hook DocBlocks to encourage better practices.
    88
    99Aside from using PHP 8.0+ named parameters, which WordPress does not explicitly support at this time, backward compatibility should not be affected, so I think this can be done in 6.2 as part of other coding standards fixes.