diff --git src/wp-includes/wp-db.php src/wp-includes/wp-db.php
index 9759438..3246c39 100644
|
|
class wpdb { |
1887 | 1887 | $this->num_queries++; |
1888 | 1888 | |
1889 | 1889 | 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 | ); |
1891 | 1905 | } |
1892 | 1906 | } |
1893 | 1907 | |