l'] ); $total_pages = (int) ceil( $expected_interval_count / $params['per_page'] ); // Default, empty data object. $data = (object) array( 'totals' => null, 'intervals' => array(), 'total' => $expected_interval_count, 'pages' => $total_pages, 'page_no' => (int) $query_args['page'], ); // If the requested page is out off range, return the default empty object. if ( $query_args['page'] >= 1 && $query_args['page'] <= $total_pages ) { // Fetch the actual data. $data = $this->get_noncached_stats_data( $query_args, $params, $data, $expected_interval_count ); if ( ! is_wp_error( $data ) && is_array( $data->intervals ) ) { $this->create_interval_subtotals( $data->intervals ); } } return $data; } }
Fatal error: Trait "Automattic\WooCommerce\Admin\API\Reports\StatsDataStoreTrait" not found in /htdocs/wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php on line 22