Skip to content

Commit

Permalink
Merge branch 'hotfix/fix-screen-matching'
Browse files Browse the repository at this point in the history
  • Loading branch information
vak-towa committed Apr 14, 2020
2 parents f7eba50 + 0e9f238 commit 4b38e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper/PluginHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function isGdprPluginAdminScreen()
{
$screen = \get_current_screen();

return ($screen && Str::contains($screen, 'towa-gdpr-plugin'));
return ($screen instanceof \WP_Screen && Str::contains($screen->id, 'towa-gdpr-plugin'));
}

/**
Expand Down

0 comments on commit 4b38e01

Please sign in to comment.