Completed
Pull Request — master (#2061)
by
unknown
37s
created
classes/controllers/FrmStylesController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,8 @@  discard block
 block discarded – undo
144 144
 	 * @return void
145 145
 	 */
146 146
 	private static function maybe_hook_into_global_settings_save() {
147
-		if ( empty( $_POST ) || ! isset( $_POST['style'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
147
+		if ( empty( $_POST ) || ! isset( $_POST['style'] ) ) {
148
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
148 149
 			// Avoid changing any style data if the style array is not sent in the request.
149 150
 			return;
150 151
 		}
@@ -765,7 +766,8 @@  discard block
 block discarded – undo
765 766
 
766 767
 		$forms = FrmForm::get_published_forms();
767 768
 		foreach ( $forms as $form ) {
768
-			if ( ! isset( $_POST['style'] ) || ! isset( $_POST['style'][ $form->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
769
+			if ( ! isset( $_POST['style'] ) || ! isset( $_POST['style'][ $form->id ] ) ) {
770
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
769 771
 				continue;
770 772
 			}
771 773
 
Please login to merge, or discard this patch.