Skip to content

Commit

Permalink
Fix logic on showing analytics and marketing (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf authored Jan 28, 2024
1 parent c0889bb commit 7d252d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public static function get_settings_description() {
* @return bool
*/
public static function is_analytics_shown() {
$hidden = '' === get_option( 'ilcc_settings_analytics_is_shown', '1' );
$hidden = empty( get_option( 'ilcc_settings_analytics_is_shown' ) );
$shown = ! $hidden;

return apply_filters( 'ilcc_settings_analytics_is_shown', $shown );
Expand All @@ -238,7 +238,7 @@ public static function is_analytics_shown() {
* @return bool
*/
public static function is_marketing_shown() {
$hidden = '' === get_option( 'ilcc_settings_marketing_is_shown', '1' );
$hidden = empty( get_option( 'ilcc_settings_marketing_is_shown' ) );
$shown = ! $hidden;

return apply_filters( 'ilcc_settings_marketing_is_shown', $shown );
Expand Down

0 comments on commit 7d252d3

Please sign in to comment.