#61715 closed defect (bug) (fixed)
Only type cast a scalar $comment_id in get_comment_author_link()
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.7 |
| Component: | Comments | Version: | 6.2 |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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.
2 years ago
#1
- Keywords has-patch added; needs-patch removed
#2
@
2 years 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
@
2 years 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
@
2 years 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.
2 years ago
#6
Track ticket: https://core.trac.wordpress.org/ticket/61715
@mukesh27 commented on PR #7084:
2 years ago
#7
Thanks for the PR.
It's duplicate PR of #7066
@SergeyBiryukov commented on PR #7066:
2 years ago
#9
Thanks for the PR! Merged in r58809.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/61715