Make WordPress Core

Ticket #42151: 42151.2.diff

File 42151.2.diff, 826 bytes (added by CrazyJaco, 7 years ago)

Second pass

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

    diff --git src/wp-includes/wp-db.php src/wp-includes/wp-db.php
    index 9759438..3246c39 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 empty query data parameter to allow custom data to be added.
     1892                         * All values added to this array should be in the form of associative
     1893                         * array elements.
     1894                         *
     1895                         * @since 4.9.0
     1896                         *
     1897                         * @param array  Custom data associated with the currently run query.
     1898                         */
     1899                        $this->queries[] = array(
     1900                                $query,
     1901                                $this->timer_stop(),
     1902                                $this->get_caller(),
     1903                                apply_filters( 'savequeries_add_querydata', array() ),
     1904                        );
    18911905                }
    18921906        }
    18931907