[wp-trac] [WordPress Trac] #22115: Further Simplifying errors
WordPress Trac
noreply at wordpress.org
Sun Feb 23 02:35:45 UTC 2014
#22115: Further Simplifying errors
-------------------------+-----------------------------
Reporter: msolution | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Database | Version: 3.4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Comment (by johnbillion):
We could take this a little further. My Query Monitor plugin extends the
`wpdb` class in order to log the result of each query (the number of
affected rows) in the `$wpdb->queries` array. When a result is an error it
adds it as a `WP_Error`. [https://github.com/johnbillion/query-
monitor/blob/2.6.5/wp-content/db.php#L88-L91 The code can be seen here].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22115#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list