[wp-trac] [WordPress Trac] #30257: wpdb::get_var() returns NULL for existing values that are empty strings
WordPress Trac
noreply at wordpress.org
Wed Nov 5 15:38:23 UTC 2014
#30257: wpdb::get_var() returns NULL for existing values that are empty strings
--------------------------+------------------------------
Reporter: tyxla | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by jdgrimes):
Thanks for taking the time to do some more research, @tyxla. I realize
that this won't affect the `get_row()` calls, I just wanted to document
that because it is related. I wanted to see if there was any pertinent
discussion regarding `get_var()` in the corresponding ticket, but as I
said above there wasn't.
I think this would be a good change—I just wanted to see where the code
came form and whether there was any reason for it.
It's possible that there are plugins that are relying on this behavior,
but even so, I'm not sure that the change could really break anything
badly. I guess that's something we should still consider though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30257#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list