Skip to content

Commit

Permalink
Fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
raftaar1191 committed Dec 15, 2023
1 parent 8b99840 commit 7339915
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-view-analytics-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function get_view_setting() {
*/
public function get_view_setting_active( $key ) {
$settings = $this->get_view_setting();
return empty( $settings[ $key ] ) ? false : $settings[ $key ];
return empty( $settings[ $key ] ) ? $this->get_key_default_value( $key ) : $settings[ $key ];
}

/**
Expand Down
1 change: 0 additions & 1 deletion includes/media/class-view-analytics-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public function default_value() {
);
}


/**
* Return the View Analytics Media Count Key
*/
Expand Down

0 comments on commit 7339915

Please sign in to comment.