Make WordPress Core

Opened 8 months ago

Closed 8 months ago

#60601 closed defect (bug) (wontfix)

$include should be checked not empty in `comment-template.php`

Reported by: monzuralam's profile monzuralam Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.4.3
Component: Comments Keywords:
Focuses: Cc:

Description

$include should be checked not empty in if condition wp-includes/comment-template.php line number 1617.

I think, here need to check ! empty() and file_exits() both.

Change History (1)

#1 @swissspidy
8 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

If $include is empty, then file_exists() simply returns false. So there is no need for an extra empty check.

Note: See TracTickets for help on using tickets.