Changeset 2576883
- Timestamp:
- 08/03/2021 04:26:12 AM (5 years ago)
- Location:
- poll-dude
- Files:
-
- 39 added
- 5 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/CHANGELOG.md (added)
-
tags/1.0.2/LICENSE.txt (added)
-
tags/1.0.2/README.md (added)
-
tags/1.0.2/README.txt (added)
-
tags/1.0.2/admin (added)
-
tags/1.0.2/admin/class-poll-dude-admin.php (added)
-
tags/1.0.2/admin/css (added)
-
tags/1.0.2/admin/css/poll-dude-admin.css (added)
-
tags/1.0.2/admin/index.php (added)
-
tags/1.0.2/admin/js (added)
-
tags/1.0.2/admin/js/poll-dude-admin.js (added)
-
tags/1.0.2/includes (added)
-
tags/1.0.2/includes/class-poll-dude-activator.php (added)
-
tags/1.0.2/includes/class-poll-dude-shortcodes.php (added)
-
tags/1.0.2/includes/class-poll-dude-utility.php (added)
-
tags/1.0.2/includes/class-poll-dude-widget.php (added)
-
tags/1.0.2/includes/class-poll-dude.php (added)
-
tags/1.0.2/includes/index.php (added)
-
tags/1.0.2/index.php (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/languages/plugin-name.pot (added)
-
tags/1.0.2/lib (added)
-
tags/1.0.2/lib/index.php (added)
-
tags/1.0.2/poll-dude.php (added)
-
tags/1.0.2/public (added)
-
tags/1.0.2/public/class-poll-dude-public.php (added)
-
tags/1.0.2/public/css (added)
-
tags/1.0.2/public/css/poll-dude-public.css (added)
-
tags/1.0.2/public/index.php (added)
-
tags/1.0.2/public/js (added)
-
tags/1.0.2/public/js/poll-dude-public.js (added)
-
tags/1.0.2/uninstall.php (added)
-
tags/1.0.2/view (added)
-
tags/1.0.2/view/index.php (added)
-
tags/1.0.2/view/page-poll-dude-add-form.php (added)
-
tags/1.0.2/view/page-poll-dude-control-panel.php (added)
-
tags/1.0.2/view/page-poll-dude-options.php (added)
-
tags/1.0.2/view/page-poll-dude-poll-profile.php (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.md (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-poll-dude-shortcodes.php (modified) (2 diffs)
-
trunk/poll-dude.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
poll-dude/trunk/CHANGELOG.md
r2564876 r2576883 1 1 # Changelog 2 [1.0.2] 3 Verified recaptchaV2 server side verification on Heroku 2 4 [1.0.1] 3 5 Fix "failed to verify referrer" when voting -
poll-dude/trunk/README.md
r2564877 r2576883 5 5 Requires at least: 5.7.2 6 6 Tested up to: 5.7.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 79 79 80 80 == Changelog == 81 81 = 1.0.2 = 82 * Verified recaptchaV2 server side verification on Heroku 82 83 = 1.0.1 = 83 84 * Fix "failed to verify referrer" when voting -
poll-dude/trunk/README.txt
r2564877 r2576883 5 5 Requires at least: 5.7.2 6 6 Tested up to: 5.7.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 79 79 80 80 == Changelog == 81 81 = 1.0.2 = 82 * Verified recaptchaV2 server side verification on Heroku 82 83 = 1.0.1 = 83 84 * Fix "failed to verify referrer" when voting -
poll-dude/trunk/includes/class-poll-dude-shortcodes.php
r2564876 r2576883 139 139 wp_add_inline_script('jquery', 'jQuery("#polls_form_'.$poll_id.' :input").each(function (i){jQuery(this).attr("disabled","disabled")})'); 140 140 141 return $this->display_pollvote($poll_id, $display, $recaptcha) .$disable_poll_js;141 return $this->display_pollvote($poll_id, $display, $recaptcha); 142 142 } elseif( $poll_active === 1 ) { 143 143 … … 500 500 501 501 $secretKey = get_option('pd_recaptcha_secretkey'); 502 $ip = $_SERVER['REMOTE_ADDR']; 502 503 // post request to server 503 504 505 $url = 'https://www.google.com/recaptcha/api/siteverify?secret='.urlencode($secretKey).'&response='.urlencode($captcha)."&remoteip=".urlencode($ip); 506 507 $response = wp_remote_get($url); 508 $body = wp_remote_retrieve_body( $response ); 509 var_dump($body); 510 $responseKeys = json_decode($body,true); 511 512 // should return JSON with success as true 513 if($responseKeys["success"]) { 514 _e('Recaptcha verify passed.', 'poll-dude'); 515 } else { 516 _e('Recaptcha verify failed.', 'poll-dude'); 517 } 518 504 519 unset($_POST['g-recaptcha-response']); 505 520 } -
poll-dude/trunk/poll-dude.php
r2564883 r2576883 20 20 * With reCaptchaV2 client side to prevent robots accessing. 21 21 * The color of each answer voted-bar can be set differently. 22 * Version: 1.0. 122 * Version: 1.0.2 23 23 * Author: Liaison Chang 24 24 * Author URI: https://github.com/liaisontw/
Note: See TracChangeset
for help on using the changeset viewer.