[wp-trac] [WordPress Trac] #45299: `wpdb->last_result` may not be countable
WordPress Trac
noreply at wordpress.org
Tue Nov 6 15:11:55 UTC 2018
#45299: `wpdb->last_result` may not be countable
--------------------------+-------------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Query | Version:
Severity: normal | Keywords: php73 needs-patch
Focuses: |
--------------------------+-------------------------------
In `wpdb->get_col()`, `$wpdb->last_result` may be `null` or an empty
string, which are uncountable values.
This can be triggered by passing an empty query string as a query.
Props @spacedmonkey for pointing this out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45299>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list