Opened 8 months ago
Closed 4 months ago
#60475 closed defect (bug) (fixed)
Possible incorrect type for $comment_id in get_comment_author filter
Reported by: | david.binda | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | 6.0 |
Component: | Comments | Keywords: | has-patch |
Focuses: | Cc: |
Description
After r52818 the $comment_id
param of the get_comment_author
filter, which is documented as numeric string, may be an int
, in case a non-existing comment ID is passed to the get_comment_author
function.
The topic has been briefly discussed in https://core.trac.wordpress.org/ticket/54379#comment:8 mentioning that the numeric string type is here for compatibility.
I'm attaching a patch containing a fix for the issue, as well as a PHPUnit test demonstrating the behaviour.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 58335: