[wp-trac] [WordPress Trac] #52723: Admin options.php default value to NULL for option_value may lead to MySQL Integrity constraint violation error, potential other bugs
WordPress Trac
noreply at wordpress.org
Tue Feb 27 12:01:48 UTC 2024
#52723: Admin options.php default value to NULL for option_value may lead to MySQL
Integrity constraint violation error, potential other bugs
-------------------------------------------------+-------------------------
Reporter: pinoceniccola | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: Options, Meta APIs | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests needs- | Focuses:
testing | administration
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: has-patch => has-patch needs-unit-tests needs-testing
* version: trunk => 2.7
* milestone: Awaiting Review => 6.6
Comment:
Introduced in [9506].
Casting to `0` (zero) sounds odd to me, an empty string seems to make more
sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52723#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list