#61715 closed defect (bug) (fixed)
Only type cast a scalar $comment_id in get_comment_author_link()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | 6.2 |
Component: | Comments | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
In [58755], get_comment_author()
was updated to only cast $comment_id
to a string if the value is scalar.
As noted by @mukesh27, get_comment_author_link()
has a similar code fragment (introduced in [55289]) and should be updated too for consistency.
Attachments (2)
Change History (11)
This ticket was mentioned in PR #7066 on WordPress/wordpress-develop by @narenin.
10 months ago
#1
- Keywords has-patch added; needs-patch removed
#2
@
10 months ago
Thanks, @narenin, for the PR.
Just for your information, the good-first-bug
type is intended for new contributors to help them onboard. Since you are already familiar with contributing, please avoid submitting PRs or patches for these types of tickets.
Hope you understand. Thanks!
#4
follow-up:
↓ 5
@
10 months ago
Reviewed and updated the get_comment_author() function in wp-includes/comment-template.php to improve type handling and readability. This function is critical for retrieving and formatting the comment author's information in WordPress.
#5
in reply to:
↑ 4
@
10 months ago
Replying to iflairwebtechnologies:
Reviewed and updated the get_comment_author() function in wp-includes/comment-template.php to improve type handling and readability.
Thanks for the patch! I might be missing something, but I don't see any changes to the get_comment_author_link()
function in that patch, which was the point of this ticket. Instead, the patch appears to remove all of the contents in the wp-includes/comment-template.php
file.
This ticket was mentioned in PR #7084 on WordPress/wordpress-develop by @umeshsinghin.
10 months ago
#6
Track ticket: https://core.trac.wordpress.org/ticket/61715
@mukesh27 commented on PR #7084:
10 months ago
#7
Thanks for the PR.
It's duplicate PR of #7066
#8
@
10 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 58809:
@SergeyBiryukov commented on PR #7066:
10 months ago
#9
Thanks for the PR! Merged in r58809.
Trac ticket: https://core.trac.wordpress.org/ticket/61715