[wp-trac] [WordPress Trac] #23085: Calling $wpdb->query() when no connection exists causes mysql_error() to throw an error
WordPress Trac
noreply at wordpress.org
Fri Jun 12 18:45:16 UTC 2015
#23085: Calling $wpdb->query() when no connection exists causes mysql_error() to
throw an error
-------------------------------------------------+-------------------------
Reporter: mbijon | Owner: mbijon
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting
Component: Database | Review
Severity: normal | Version: 3.5
Keywords: dev-feedback good-first-bug has- | Resolution:
patch | Focuses:
-------------------------------------------------+-------------------------
Changes (by Craig Ralston):
* keywords: dev-feedback good-first-bug needs-refresh => dev-feedback
good-first-bug has-patch
Comment:
23085.3.patch refreshes 23085.2.diff
As far as I can tell, there doesn't need to be anything special for mysqli
as there is already a check before {{{ $this->last_error }}} is set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23085#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list