[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 Oct 9 15:53:52 UTC 2017


#42151: Create a filter to add information to query data saved when SAVEQUERIES is
true
-----------------------------------+------------------------------
 Reporter:  CrazyJaco              |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Database               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:
-----------------------------------+------------------------------
Changes (by CrazyJaco):

 * keywords:  2nd-opinion needs-patch => 2nd-opinion has-patch


Comment:

 @johnbillion Added an updated patch. Let me know what you think.

 Testing this with a test plugin works as I would expect, except for the
 first query that gets run, but I think that query might fire before
 plugins are loaded. All other queries show the new meta data added by my
 test plugin.

 This is the first query:
 SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42151#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list