From c9ef0f0e81db51faca17f7115f776451dabb3749 Mon Sep 17 00:00:00 2001 From: Jonathan Bossenger Date: Wed, 11 Oct 2017 12:22:10 +0200 Subject: [PATCH] Removing $hook check on chart_data function --- includes/class-ssp-stats.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/includes/class-ssp-stats.php b/includes/class-ssp-stats.php index 49a8b11..59d8926 100755 --- a/includes/class-ssp-stats.php +++ b/includes/class-ssp-stats.php @@ -939,17 +939,14 @@ private function daily_stat ( $number = '', $description = '' ) { * @since 1.0.0 * @return void */ - public function chart_data ( $hook = '' ) { + public function chart_data ( ) { - if( 'podcast_page_podcast_stats' == $hook ) { + $output = ''; - $output = ''; + $output .= $this->daily_listens_chart(); + $output .= $this->referrers_chart(); - $output .= $this->daily_listens_chart(); - $output .= $this->referrers_chart(); - - echo $output; - } + echo $output; } /**