Fix error wpdb global

This commit is contained in:
Adrien Foulon 2019-03-13 21:19:21 +01:00 committed by GitHub
parent 322eed0b2c
commit 8d866d9df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -380,6 +380,8 @@ class WC_Admin_Report {
* @return mixed
*/
protected function get_cached_query( $query_type, $query ) {
global $wpdb;
$query_hash = md5( $query_type . $query );
$class = strtolower( get_class( $this ) );
if ( ! isset( self::$cached_results[ $class ] ) ) {