#62316 closed defect (bug) (fixed)
strict comparison should be added to check the compare in wp-include comment.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Description
A strict comparison should be added in the pingback function within wp-includes/comment.php to ensure accurate ID matching. The url_to_postid function is used to fetch the ID and returns an integer value, and $post->ID also returns an integer. To improve precision, a strict comparison should be used when comparing these integer values.
and also in multiple palaces in comment.php strict comparison should be added.
Change History (8)
This ticket was mentioned in PR #7669 on WordPress/wordpress-develop by @deepakrohilla.
5 months ago
#1
#3
@
3 months ago
- Focuses coding-standards added
- Milestone changed from Awaiting Review to 6.8
- Owner changed from deepakrohilla to SergeyBiryukov
- Status changed from assigned to reviewing
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
2 weeks ago
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
4 days ago
Note: See
TracTickets for help on using
tickets.
https://core.trac.wordpress.org/ticket/62316