Opened 6 weeks ago
Last modified 5 weeks ago
#62316 assigned defect (bug)
strict comparison should be added to check the compare in wp-include comment.php
Reported by: | deepakrohilla | Owned by: | deepakrohilla |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | 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 (2)
This ticket was mentioned in PR #7669 on WordPress/wordpress-develop by @deepakrohilla.
6 weeks ago
#1
Note: See
TracTickets for help on using
tickets.
https://core.trac.wordpress.org/ticket/62316