[wp-trac] [WordPress Trac] #62316: strict comparison should be added to check the compare in wp-include comment.php
WordPress Trac
noreply at wordpress.org
Tue Oct 29 06:21:58 UTC 2024
#62316: strict comparison should be added to check the compare in wp-include
comment.php
---------------------------+-----------------------------
Reporter: deepakrohilla | Owner: deepakrohilla
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch
Focuses: |
---------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62316>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list