Skip to content

Commit

Permalink
Replaces Gravity Forms Cloudflare Turnstile add-on site key and secre…
Browse files Browse the repository at this point in the history
…t keys with dummy values that will always pass.
  • Loading branch information
csalzano committed Sep 20, 2024
1 parent a6159e5 commit d2c8ac4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions exfil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,21 @@ then
fi

#TODO disable all gravity forms notifications & feeds

# Is the Gravity Forms Cloudflare Turnstile add-on active?
wp plugin is-active gravityformsturnstile
if [ 0 == "$?" ]
then
# Yes.
# Replace the key and secret with always-pass dummy values.
# https://developers.cloudflare.com/turnstile/troubleshooting/testing/
wp option get gravityformsaddon_gravityformsturnstile_settings --format=json | php -r "
\$option = json_decode( fgets(STDIN) );
\$option->site_key = \"1x00000000000000000000AA\";
\$option->site_secret = \"1x0000000000000000000000000000000AA\";
print json_encode(\$option);
" | wp option set gravityformsaddon_gravityformsturnstile_settings --format=json
fi
fi

# Is the SiteGround Optimizer plugin active?
Expand Down

0 comments on commit d2c8ac4

Please sign in to comment.