[wp-trac] [WordPress Trac] #60601: $include should be checked not empty in `comment-template.php`

WordPress Trac noreply at wordpress.org
Thu Feb 22 12:06:21 UTC 2024


#60601: $include should be checked not empty in `comment-template.php`
--------------------------+----------------------
 Reporter:  monzuralam    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Comments      |     Version:  6.4.3
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60601#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list