[wp-trac] [WordPress Trac] #30257: wpdb::get_var() returns NULL for existing values that are empty strings
WordPress Trac
noreply at wordpress.org
Tue Nov 18 23:08:06 UTC 2014
#30257: wpdb::get_var() returns NULL for existing values that are empty strings
--------------------------+----------------------
Reporter: tyxla | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Database | Version: 0.71
Severity: normal | Resolution: wontfix
Keywords: has-patch | Focuses:
--------------------------+----------------------
Comment (by nacin):
This odd quirk in `get_var()` is also why we use `get_row()` for a single
field in many other places, such as `get_option()`, `get_site_option()`,
`get_metadata()`, etc.
I bet we could change it and few would notice... but @pento is also right
that it would break a lot.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30257#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list