[wp-trac] [WordPress Trac] #58048: Fix non-strict checking issue in /wp-admin/includes/class-ftp.php
WordPress Trac
noreply at wordpress.org
Sat Apr 1 18:27:01 UTC 2023
#58048: Fix non-strict checking issue in /wp-admin/includes/class-ftp.php
------------------------------+-----------------------------
Reporter: sharif200 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: coding-standards |
------------------------------+-----------------------------
To fix this issue, the == operator should be replaced with the ===
operator. This is a strict comparison operator, which checks both the
value and type of the variables being compared. Therefore, using ===
ensures that the values and types match exactly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58048>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list