[wp-trac] [WordPress Trac] #61715: Only type cast a scalar $comment_id in get_comment_author_link()
WordPress Trac
noreply at wordpress.org
Sat Jul 20 10:46:49 UTC 2024
#61715: Only type cast a scalar $comment_id in get_comment_author_link()
----------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Comments | Version: 6.2
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
----------------------------+----------------------------------------
Background: #60475, #61681.
In [58755], `get_comment_author()` was updated to only cast `$comment_id`
to a string if the value is scalar.
As [https://github.com/WordPress/wordpress-
develop/pull/7053#discussion_r1682103077 noted by @mukesh27],
`get_comment_author_link()` has a similar code fragment (introduced in
[55289]) and should be updated too for consistency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61715>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list