@@ -119,7 +119,8 @@ |
||
119 | 119 | * @return void |
120 | 120 | */ |
121 | 121 | private static function maybe_hook_into_global_settings_save() { |
122 | - if ( empty( $_POST ) || ! isset( $_POST['style'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
122 | + if ( empty( $_POST ) || ! isset( $_POST['style'] ) ) { |
|
123 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
123 | 124 | // Avoid changing any style data if the style array is not sent in the request. |
124 | 125 | return; |
125 | 126 | } |
@@ -67,7 +67,8 @@ |
||
67 | 67 | $new_instance = (array) $new_instance; |
68 | 68 | $this->id = $new_instance['ID']; |
69 | 69 | |
70 | - if ( $id != $this->id || ! $_POST || ! isset( $_POST['frm_style_setting'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
70 | + if ( $id != $this->id || ! $_POST || ! isset( $_POST['frm_style_setting'] ) ) { |
|
71 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
71 | 72 | // Don't continue if not saving this style. |
72 | 73 | continue; |
73 | 74 | } |
@@ -285,7 +285,8 @@ |
||
285 | 285 | public static function get_settings_for_output( $style ) { |
286 | 286 | if ( self::previewing_style() ) { |
287 | 287 | $frm_style = new FrmStyle(); |
288 | - if ( isset( $_POST['frm_style_setting'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
288 | + if ( isset( $_POST['frm_style_setting'] ) ) { |
|
289 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
289 | 290 | |
290 | 291 | // Sanitizing is done later. |
291 | 292 | $posted = wp_unslash( $_POST['frm_style_setting'] ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * @param bool $hidden |
81 | 81 | * @return array |
82 | 82 | */ |
83 | - private function get_params_for_style_card( $style, $hidden = false ) { |
|
83 | + private function get_params_for_style_card( $style, $hidden = false ) { |
|
84 | 84 | if ( ! empty( $style->post_content['position'] ) ) { |
85 | 85 | $label_position = $style->post_content['position']; |
86 | 86 | } else { |
@@ -26,7 +26,8 @@ |
||
26 | 26 | public static function toggle( $id, $name, $args ) { |
27 | 27 | wp_enqueue_script( 'formidable_settings' ); |
28 | 28 | return FrmAppHelper::clip( |
29 | - function() use ( $id, $name, $args ) { // @phpstan-ignore-line |
|
29 | + function() use ( $id, $name, $args ) { |
|
30 | +// @phpstan-ignore-line |
|
30 | 31 | require FrmAppHelper::plugin_path() . '/classes/views/shared/toggle.php'; |
31 | 32 | }, |
32 | 33 | isset( $args['echo'] ) ? $args['echo'] : false |