Skip to content

Commit

Permalink
Removing $hook check on chart_data function
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbossenger committed Oct 11, 2017
1 parent d42708d commit c9ef0f0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions includes/class-ssp-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit c9ef0f0

Please sign in to comment.