From e03893d75c26def5344b6e8bc943f5dbb8a8064e Mon Sep 17 00:00:00 2001 From: Paul Ryley <134939+pryley@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:03:36 -0500 Subject: [PATCH] v7.2.2 release --- changelog.txt | 4 ++++ languages/site-reviews-en_US.mo | Bin 147841 -> 147859 bytes languages/site-reviews-en_US.po | 12 ++++++------ languages/site-reviews.pot | 10 +++++----- plugin/Modules/Html/MetaboxForm.php | 11 +++++++---- plugin/Modules/Html/ReviewForm.php | 11 +++++++---- .../Modules/Validator/SignatureValidator.php | 2 +- readme.txt | 6 +++++- site-reviews.php | 2 +- .../support/common-problems-and-solutions.php | 6 ++++++ 10 files changed, 42 insertions(+), 22 deletions(-) diff --git a/changelog.txt b/changelog.txt index e8e1ae83..684907d6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ == Changelog == += 7.2.2 (2024-10-25) = + +- Fixed form validation to catch manually modified hidden fields + = 7.2.1 (2024-10-24) = - Added global color support to the Elementor widgets. diff --git a/languages/site-reviews-en_US.mo b/languages/site-reviews-en_US.mo index 0952ec3978e1bff147b75827a7eeafa4a0b0a4c0..a28aecb780cdafdda38a250e788cfe263fe9b523 100644 GIT binary patch delta 20215 zcmXZjWq1`wABW*RC%6O;5+otGC0Gaq3GVJ5N^uGlEB3NT(c)eRTBNuHDPEvyf#6oW z6bTe*p=hAM`~1$#hhF#0?C!{aWH$*NJ3i&y@hP{xO5)ab9Ou`mj#CT$zjK@#*b+12 zVyu8$F*QEM6!->H;%Cf@DW^G38Z3qZSRRA03Fg7Ct+Va*?e_ZdX^!joal>B}`%;qA5itB{od3Qgt}e^S!1r#h=eNcicN3?Dn#+9$UH=KB<*4oncUV$RD{}K zR_upeaiT4Mj5)|VOUz;pM0F?(6^Uw?UNP)KLOmRadSC*oLn}}>?m>3C-0E)Q!8X*D)vgPu9R?j+2di z1O{PK)b)Xw9cNnCqwYIquiv!giKqxOs65(Due{(yd~Oz794$`7FKzlw_RzpIG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t8g$rLv^%! zggH09L+!3VQ6qnZnwsYk?0+q~WaUi{^Pv{U=QjVf&2LAI_&(}D$y32hSqs!ihvO4m zk6JSeDw=a)1!`*6p?1#!JdQ{30M4q!{@1pNscatXhFWC(P>X9QYWs{uRWJc{;7mhx zBmp(oCs2#{wasU&V!kUXqPFQ!EQW_s5qO4U@TE&a`*~PZvuej$XQ19{i%=aoh>E~T ztbrd<+p~J4>3Ablh+CpY{3WKtG1h6Ak^Fq?TC2N@gc>-E8u=Mi2rr>VdedINhwAyi zs7Sm<-S-JKfYjAYJ^rZj0Mzq^ttC)vB@ESGHRL4}<}@IoZP5d@D2AhY8jo6p3$Z(1 z!bq&XJx%kUJp4bfqb*9N_KQls{cXD`sr(i>+b48sl**HB`-NVa1M_)1b?w}7@W8I# yK|Q*9yY(B;$2+v+KyROZUB2x0W!Em_(odb6eyV5n|8rYH`l&m1O^f%W-1&c3K|oyq diff --git a/languages/site-reviews-en_US.po b/languages/site-reviews-en_US.po index 8de3efe6..bfe5bb15 100644 --- a/languages/site-reviews-en_US.po +++ b/languages/site-reviews-en_US.po @@ -92,7 +92,7 @@ msgstr "This review is based on my own experience and is my genuine opinion." msgid "Show more" msgstr "Show more" -#: plugin/Commands/CreateReview.php:162, views/pages/documentation/support/common-problems-and-solutions.php:89 +#: plugin/Commands/CreateReview.php:162, views/pages/documentation/support/common-problems-and-solutions.php:95 msgid "" "Your review could not be submitted and the error has been logged. Please " "notify the site administrator." @@ -408,7 +408,7 @@ msgstr "The CAPTCHA failed to load, please refresh the page and try again." msgid "The CAPTCHA verification failed, please try again." msgstr "The CAPTCHA verification failed, please try again." -#: plugin/Modules/Validator/CustomValidator.php:21, views/pages/documentation/support/common-problems-and-solutions.php:119 +#: plugin/Modules/Validator/CustomValidator.php:21, views/pages/documentation/support/common-problems-and-solutions.php:125 msgid "The review submission failed. Please notify the site administrator." msgstr "The review submission failed. Please notify the site administrator." @@ -428,9 +428,9 @@ msgstr "You must be logged in to submit a review." msgid "You have already submitted a review." msgstr "You have already submitted a review." -#: plugin/Modules/Validator/SignatureValidator.php:29 -msgid "This review cannot be submitted because the form was modified." -msgstr "This review cannot be submitted because the form was modified." +#: plugin/Modules/Validator/SignatureValidator.php:29, views/pages/documentation/support/common-problems-and-solutions.php:89 +msgid "This review cannot be submitted, please refresh the page and try again." +msgstr "This review cannot be submitted, please refresh the page and try again." #: plugin/Integrations/UltimateMember/Controllers/ProfileController.php:41 msgid "Reviews" @@ -512,7 +512,7 @@ msgstr "No Title" msgid "Verified" msgstr "Verified" -#: views/pages/documentation/support/common-problems-and-solutions.php:125 +#: views/pages/documentation/support/common-problems-and-solutions.php:131 msgid "Service Unavailable." msgstr "Service Unavailable." diff --git a/languages/site-reviews.pot b/languages/site-reviews.pot index 8fee6aa2..f0977129 100644 --- a/languages/site-reviews.pot +++ b/languages/site-reviews.pot @@ -1886,7 +1886,7 @@ msgctxt "admin-text" msgid "The %s table was successly converted to InnoDB." msgstr "" -#: plugin/Commands/CreateReview.php:162, views/pages/documentation/support/common-problems-and-solutions.php:89 +#: plugin/Commands/CreateReview.php:162, views/pages/documentation/support/common-problems-and-solutions.php:95 msgid "Your review could not be submitted and the error has been logged. Please notify the site administrator." msgstr "" @@ -4881,7 +4881,7 @@ msgstr "" msgid "The CAPTCHA verification failed, please try again." msgstr "" -#: plugin/Modules/Validator/CustomValidator.php:21, views/pages/documentation/support/common-problems-and-solutions.php:119 +#: plugin/Modules/Validator/CustomValidator.php:21, views/pages/documentation/support/common-problems-and-solutions.php:125 msgid "The review submission failed. Please notify the site administrator." msgstr "" @@ -4901,8 +4901,8 @@ msgstr "" msgid "You have already submitted a review." msgstr "" -#: plugin/Modules/Validator/SignatureValidator.php:29 -msgid "This review cannot be submitted because the form was modified." +#: plugin/Modules/Validator/SignatureValidator.php:29, views/pages/documentation/support/common-problems-and-solutions.php:89 +msgid "This review cannot be submitted, please refresh the page and try again." msgstr "" #: views/integrations/multilingualpress/assigned_posts-field.php:5 @@ -5918,7 +5918,7 @@ msgctxt "admin-text" msgid "Revert" msgstr "" -#: views/pages/documentation/support/common-problems-and-solutions.php:125 +#: views/pages/documentation/support/common-problems-and-solutions.php:131 msgid "Service Unavailable." msgstr "" diff --git a/plugin/Modules/Html/MetaboxForm.php b/plugin/Modules/Html/MetaboxForm.php index 1bfd6fd6..a3ae81dd 100644 --- a/plugin/Modules/Html/MetaboxForm.php +++ b/plugin/Modules/Html/MetaboxForm.php @@ -29,6 +29,12 @@ public function build(): string public function config(): array { $config = glsr()->config('forms/metabox-fields'); + if (!wp_is_numeric_array($config)) { + $order = array_keys($config); + $order = glsr()->filterArray('metabox-form/fields/order', $order); + $ordered = array_intersect_key(array_merge(array_flip($order), $config), $config); + $config = $ordered; + } $config = glsr()->filterArray('metabox-form/fields', $config, $this); if (2 > count(glsr()->retrieveAs('array', 'review_types'))) { unset($config['type']); @@ -43,10 +49,7 @@ public function config(): array 'data-value' => esc_js($value), ]); } - $order = array_keys($config); - $order = glsr()->filterArray('metabox-form/fields/order', $order); - $ordered = array_intersect_key(array_merge(array_flip($order), $config), $config); - return $ordered; + return $config; } public function fieldClass(): string diff --git a/plugin/Modules/Html/ReviewForm.php b/plugin/Modules/Html/ReviewForm.php index 70c06a0e..46f1241a 100644 --- a/plugin/Modules/Html/ReviewForm.php +++ b/plugin/Modules/Html/ReviewForm.php @@ -23,11 +23,14 @@ public function __construct(array $args = [], array $values = []) public function config(): array { $config = glsr()->config('forms/review-form'); + if (!wp_is_numeric_array($config)) { + $order = array_keys($config); + $order = glsr()->filterArray('review-form/order', $order); + $ordered = array_intersect_key(array_merge(array_flip($order), $config), $config); + $config = $ordered; + } $config = glsr()->filterArray('review-form/fields', $config, $this); - $order = array_keys($config); - $order = glsr()->filterArray('review-form/order', $order); - $ordered = array_intersect_key(array_merge(array_flip($order), $config), $config); - return $ordered; + return $config; } public function configHidden(): array diff --git a/plugin/Modules/Validator/SignatureValidator.php b/plugin/Modules/Validator/SignatureValidator.php index 6bcc3f80..124943ba 100644 --- a/plugin/Modules/Validator/SignatureValidator.php +++ b/plugin/Modules/Validator/SignatureValidator.php @@ -26,7 +26,7 @@ public function performValidation(): void { if (!$this->isValid()) { $this->fail( - __('This review cannot be submitted because the form was modified.', 'site-reviews'), + __('This review cannot be submitted, please refresh the page and try again.', 'site-reviews'), 'The form signature could not be verified.' ); } diff --git a/readme.txt b/readme.txt index 09c9a56f..7486e417 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: geminilabs, pryley Donate link: https://ko-fi.com/pryley Tags: reviews, ratings, testimonials, product reviews, business reviews Tested up to: 6.7 -Stable tag: 7.2.1 +Stable tag: 7.2.2 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -196,6 +196,10 @@ This update requires a minimum of PHP 7.4 and WordPress 6.1. There are a few pot == Changelog == += 7.2.2 (2024-10-25) = + +- Fixed form validation to catch manually modified hidden fields + = 7.2.1 (2024-10-24) = - Added global color support to the Elementor widgets. diff --git a/site-reviews.php b/site-reviews.php index 89ce6ed6..c4d1f4f3 100644 --- a/site-reviews.php +++ b/site-reviews.php @@ -7,7 +7,7 @@ * Plugin Name: Site Reviews * Plugin URI: https://wordpress.org/plugins/site-reviews * Description: Receive and display reviews on your website - * Version: 7.2.1 + * Version: 7.2.2 * Author: Paul Ryley * Author URI: https://geminilabs.io * License: GPL3 diff --git a/views/pages/documentation/support/common-problems-and-solutions.php b/views/pages/documentation/support/common-problems-and-solutions.php index 66d63305..5f732db2 100644 --- a/views/pages/documentation/support/common-problems-and-solutions.php +++ b/views/pages/documentation/support/common-problems-and-solutions.php @@ -84,6 +84,12 @@

    This error is shown when the Akismet or Honeypot validator prevents the review from being submitted.

  • +
  • +

    + +

    +

    This error is shown when the hidden input values in the Form have been modified.

    +