Make WordPress Core

Ticket #42151: 42151.diff

File 42151.diff, 681 bytes (added by CrazyJaco, 7 years ago)

First pass.

  • src/wp-includes/wp-db.php

    diff --git src/wp-includes/wp-db.php src/wp-includes/wp-db.php
    index 9759438..f5f897d 100644
    class wpdb { 
    18871887                $this->num_queries++;
    18881888
    18891889                if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
    1890                         $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() );
     1890                        /**
     1891                         * Filters the query data before it is added to the saved query array.
     1892                         *
     1893                         * @since 4.9.0
     1894                         *
     1895                         * @param array  The data associated with the currently run query.
     1896                         */
     1897                        $this->queries[] = apply_filters( 'savequeries_add_query', array( $query, $this->timer_stop(), $this->get_caller() ) );
    18911898                }
    18921899        }
    18931900