[wp-trac] [WordPress Trac] #42151: Create a filter to add information to query data saved when SAVEQUERIES is true
WordPress Trac
noreply at wordpress.org
Mon Jul 15 11:57:58 UTC 2019
#42151: Create a filter to add information to query data saved when SAVEQUERIES is
true
-------------------------+---------------------
Reporter: CrazyJaco | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: Database | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+---------------------
Changes (by ocean90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"45635" 45635]:
WPDB: Allow custom data to be added to logged queries.
This adds a new method, `wpdb::log_query()`, and a new filter,
`log_query_custom_data`. The custom data is stored as a new element in
each entry of the `wpdb::$queries` array.
Props CrazyJaco, johnbillion, pento.
Fixes #42151.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42151#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list