Opened 2 years ago
Closed 2 years ago
#60601 closed defect (bug) (wontfix)
$include should be checked not empty in `comment-template.php`
| Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
If
$includeis empty, thenfile_exists()simply returnsfalse. So there is no need for an extra empty check.