[wp-trac] [WordPress Trac] #21533: Error suppression in wp-db is lame: Part 2
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 10 01:26:24 UTC 2012
#21533: Error suppression in wp-db is lame: Part 2
------------------------------+--------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Warnings/Notices | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+--------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 3.5
Comment:
Since [21472], I get errors in Debug Bar:
{{{
WARNING: wp-includes/wp-db.php:1079 - mysql_free_result(): supplied
argument is not a valid MySQL result resource
}}}
Moved to `wpdb::flush()`, `mysql_free_result()` now runs earlier than
`$this->result` is set: [[BR]]
http://core.trac.wordpress.org/browser/trunk/wp-includes/wp-
db.php?rev=21473#L1138
[attachment:21533.patch] fixes the warning.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21533#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list