Make WordPress Core

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's profile deepakrohilla Owned by: deepakrohilla's profile 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)

@narenin commented on PR #7669:


5 weeks ago
#2

@deepakrohillas The PR looks good to me.

Note: See TracTickets for help on using tickets.