[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:23:47 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 tyxla):
I understand, although this was not what I expected to be the conclusion
here.
Recently I performed a thorough research on the core and did not find a
single location where this would break. I guess it might probably break
something on a plugin or theme that expects this behavior.
Anyway, I believe that this one wouldn't be the first or the last time
where updates would be needed on themes and plugins, in order to make them
compatible with the WordPress core. But if the main goal is keeping
backward compatibility (and not squashing bugs), you guys are definitely
right.
Guess we have to stick with using `get_col()` and `get_row()`. Anyway,
fixing that issue was worth a shot, at least I rest calm that I tried. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30257#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list