[wp-trac] [WordPress Trac] #58060: Non-strict checking issue on line 209 of options-writing.php
WordPress Trac
noreply at wordpress.org
Sun Apr 2 13:54:46 UTC 2023
#58060: Non-strict checking issue on line 209 of options-writing.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 |
------------------------------+-----------------------------
I have found a non-strict checking issue on this line of code. This means
the code is not checking the value type returned by the 'get_option'
function. It is possible that the value could be a non-numeric string or a
boolean value other than true or false, which could lead to unexpected
behavior in the code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58060>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list