Fix error wpdb global
This commit is contained in:
parent
322eed0b2c
commit
8d866d9df7
|
@ -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 ] ) ) {
|
||||
|
|
Loading…
Reference in New Issue