@@ -51,13 +51,13 @@ discard block |
||
| 51 | 51 | type="text" |
| 52 | 52 | name="<?php echo esc_attr( $input_name ); ?>" |
| 53 | 53 | id="<?php echo esc_attr( $input_id ); ?>" |
| 54 | - value="<?php echo esc_attr( isset( $default_value[ $sub_field['name'] ] ) ? $default_value[ $sub_field['name'] ] : '' ); ?>" |
|
| 54 | + value="<?php echo esc_attr( isset( $default_value[$sub_field['name']] ) ? $default_value[$sub_field['name']] : '' ); ?>" |
|
| 55 | 55 | data-changeme="field_<?php echo esc_attr( $field_key . '_' . $sub_field['name'] ); ?>" |
| 56 | 56 | data-changeatt="value" |
| 57 | 57 | /> |
| 58 | 58 | </span> |
| 59 | 59 | <label class="frm_description" for="<?php echo esc_attr( $input_id ); ?>"> |
| 60 | - <?php echo esc_html( $labels[ $option ] ); ?> |
|
| 60 | + <?php echo esc_html( $labels[$option] ); ?> |
|
| 61 | 61 | </label> |
| 62 | 62 | </p> |
| 63 | 63 | <?php |
@@ -74,12 +74,12 @@ discard block |
||
| 74 | 74 | type="text" |
| 75 | 75 | name="<?php echo esc_attr( $input_name ); ?>" |
| 76 | 76 | id="<?php echo esc_attr( $input_id ); ?>" |
| 77 | - value="<?php echo esc_attr( isset( $input_value[ $sub_field['name'] ] ) ? $input_value[ $sub_field['name'] ] : '' ); ?>" |
|
| 77 | + value="<?php echo esc_attr( isset( $input_value[$sub_field['name']] ) ? $input_value[$sub_field['name']] : '' ); ?>" |
|
| 78 | 78 | data-changeme="field_<?php echo esc_attr( $field_key . '_' . $sub_field['name'] ); ?>" |
| 79 | 79 | data-changeatt="<?php echo esc_attr( $option ); ?>" |
| 80 | 80 | /> |
| 81 | 81 | <label class="frm_description" for="<?php echo esc_attr( $input_id ); ?>"> |
| 82 | - <?php echo esc_html( $labels[ $option ] ); ?> |
|
| 82 | + <?php echo esc_html( $labels[$option] ); ?> |
|
| 83 | 83 | </label> |
| 84 | 84 | </p> |
| 85 | 85 | <?php |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | data-changeme="frm_field_<?php echo esc_attr( $field_id . '_' . $sub_field['name'] ); ?>_desc" |
| 101 | 101 | /> |
| 102 | 102 | <label class="frm_description" for="<?php echo esc_attr( $input_id ); ?>"> |
| 103 | - <?php echo esc_html( $labels[ $option ] ); ?> |
|
| 103 | + <?php echo esc_html( $labels[$option] ); ?> |
|
| 104 | 104 | </label> |
| 105 | 105 | </p> |
| 106 | 106 | <?php |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | private function check_honeypot_setting() { |
| 49 | 49 | $form = $this->get_form(); |
| 50 | 50 | $key = $this->get_option_key(); |
| 51 | - return $form->options[ $key ]; |
|
| 51 | + return $form->options[$key]; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | protected function is_option_on() { |
| 39 | 39 | $form = $this->get_form(); |
| 40 | 40 | $key = $this->get_option_key(); |
| 41 | - return ! empty( $form->options[ $key ] ) && 'off' !== $form->options[ $key ]; |
|
| 41 | + return ! empty( $form->options[$key] ) && 'off' !== $form->options[$key]; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -46,19 +46,19 @@ discard block |
||
| 46 | 46 | $result = array(); |
| 47 | 47 | |
| 48 | 48 | foreach ( $names as $name ) { |
| 49 | - if ( empty( $this->sub_fields[ $name ] ) ) { |
|
| 49 | + if ( empty( $this->sub_fields[$name] ) ) { |
|
| 50 | 50 | continue; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - if ( ! isset( $this->sub_fields[ $name ]['wrapper_classes'] ) ) { |
|
| 54 | - $this->sub_fields[ $name ]['wrapper_classes'] = $col_class; |
|
| 55 | - } elseif ( is_array( $this->sub_fields[ $name ]['wrapper_classes'] ) ) { |
|
| 56 | - $this->sub_fields[ $name ]['wrapper_classes'] = implode( ' ', $this->sub_fields[ $name ]['wrapper_classes'] ) . ' ' . $col_class; |
|
| 53 | + if ( ! isset( $this->sub_fields[$name]['wrapper_classes'] ) ) { |
|
| 54 | + $this->sub_fields[$name]['wrapper_classes'] = $col_class; |
|
| 55 | + } elseif ( is_array( $this->sub_fields[$name]['wrapper_classes'] ) ) { |
|
| 56 | + $this->sub_fields[$name]['wrapper_classes'] = implode( ' ', $this->sub_fields[$name]['wrapper_classes'] ) . ' ' . $col_class; |
|
| 57 | 57 | } else { |
| 58 | - $this->sub_fields[ $name ]['wrapper_classes'] .= ' ' . $col_class; |
|
| 58 | + $this->sub_fields[$name]['wrapper_classes'] .= ' ' . $col_class; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - $result[ $name ] = $this->sub_fields[ $name ]; |
|
| 61 | + $result[$name] = $this->sub_fields[$name]; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | return $result; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | // Default desc. |
| 91 | 91 | foreach ( $this->sub_fields as $name => $sub_field ) { |
| 92 | - $extra_options[ $name . '_desc' ] = $sub_field['label']; |
|
| 92 | + $extra_options[$name . '_desc'] = $sub_field['label']; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | return $extra_options; |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $name_layout = $this->get_name_layout(); |
| 126 | 126 | |
| 127 | 127 | if ( ! empty( $atts['show'] ) ) { |
| 128 | - return isset( $value[ $atts['show'] ] ) ? $value[ $atts['show'] ] : ''; |
|
| 128 | + return isset( $value[$atts['show']] ) ? $value[$atts['show']] : ''; |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | $value = wp_parse_args( |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $args['sub_fields'] = $this->sub_fields; |
| 199 | 199 | |
| 200 | 200 | foreach ( $hidden_fields as $name => $hidden_field ) { |
| 201 | - $args['sub_fields'][ $name ]['wrapper_classes'] .= ' frm_hidden'; |
|
| 201 | + $args['sub_fields'][$name]['wrapper_classes'] .= ' frm_hidden'; |
|
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | foreach ( $forms as $form ) { |
| 88 | 88 | $form_title = '' === $form->name ? __( '(no title)', 'formidable' ) : FrmAppHelper::truncate( $form->name, 50 ); |
| 89 | - $options[ $form->id ] = esc_html( $form_title ); |
|
| 89 | + $options[$form->id] = esc_html( $form_title ); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | return $options; |
@@ -491,7 +491,8 @@ |
||
| 491 | 491 | |
| 492 | 492 | public static function process_entry( $errors = '', $ajax = false ) { |
| 493 | 493 | $form_id = FrmAppHelper::get_post_param( 'form_id', '', 'absint' ); |
| 494 | - if ( FrmAppHelper::is_admin() || empty( $_POST ) || empty( $form_id ) || ! isset( $_POST['item_key'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 494 | + if ( FrmAppHelper::is_admin() || empty( $_POST ) || empty( $form_id ) || ! isset( $_POST['item_key'] ) ) { |
|
| 495 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 495 | 496 | return; |
| 496 | 497 | } |
| 497 | 498 | |
@@ -77,20 +77,20 @@ discard block |
||
| 77 | 77 | global $frm_vars; |
| 78 | 78 | $form_id = FrmForm::get_current_form_id(); |
| 79 | 79 | |
| 80 | - $columns[ $form_id . '_id' ] = 'ID'; |
|
| 81 | - $columns[ $form_id . '_item_key' ] = esc_html__( 'Entry Key', 'formidable' ); |
|
| 80 | + $columns[$form_id . '_id'] = 'ID'; |
|
| 81 | + $columns[$form_id . '_item_key'] = esc_html__( 'Entry Key', 'formidable' ); |
|
| 82 | 82 | |
| 83 | 83 | if ( $form_id ) { |
| 84 | 84 | self::get_columns_for_form( $form_id, $columns ); |
| 85 | 85 | } else { |
| 86 | - $columns[ $form_id . '_form_id' ] = esc_html__( 'Form', 'formidable' ); |
|
| 87 | - $columns[ $form_id . '_name' ] = esc_html__( 'Entry Name', 'formidable' ); |
|
| 88 | - $columns[ $form_id . '_user_id' ] = esc_html__( 'Created By', 'formidable' ); |
|
| 86 | + $columns[$form_id . '_form_id'] = esc_html__( 'Form', 'formidable' ); |
|
| 87 | + $columns[$form_id . '_name'] = esc_html__( 'Entry Name', 'formidable' ); |
|
| 88 | + $columns[$form_id . '_user_id'] = esc_html__( 'Created By', 'formidable' ); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - $columns[ $form_id . '_is_draft' ] = esc_html__( 'Entry Status', 'formidable' ); |
|
| 92 | - $columns[ $form_id . '_created_at' ] = __( 'Entry creation date', 'formidable' ); |
|
| 93 | - $columns[ $form_id . '_updated_at' ] = __( 'Entry update date', 'formidable' ); |
|
| 91 | + $columns[$form_id . '_is_draft'] = esc_html__( 'Entry Status', 'formidable' ); |
|
| 92 | + $columns[$form_id . '_created_at'] = __( 'Entry creation date', 'formidable' ); |
|
| 93 | + $columns[$form_id . '_updated_at'] = __( 'Entry update date', 'formidable' ); |
|
| 94 | 94 | self::maybe_add_ip_col( $form_id, $columns ); |
| 95 | 95 | |
| 96 | 96 | $frm_vars['cols'] = $columns; |
@@ -148,10 +148,10 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | foreach ( $sub_form_cols as $k => $sub_form_col ) { |
| 150 | 150 | if ( FrmField::is_no_save_field( $sub_form_col->type ) ) { |
| 151 | - unset( $sub_form_cols[ $k ] ); |
|
| 151 | + unset( $sub_form_cols[$k] ); |
|
| 152 | 152 | continue; |
| 153 | 153 | } |
| 154 | - $columns[ $form_id . '_' . $sub_form_col->field_key . '-_-' . $field->id ] = FrmAppHelper::truncate( $sub_form_col->name, 35 ); |
|
| 154 | + $columns[$form_id . '_' . $sub_form_col->field_key . '-_-' . $field->id] = FrmAppHelper::truncate( $sub_form_col->name, 35 ); |
|
| 155 | 155 | unset( $sub_form_col ); |
| 156 | 156 | } |
| 157 | 157 | } |
@@ -168,15 +168,15 @@ discard block |
||
| 168 | 168 | $has_separate_value = ! FrmField::is_option_empty( $field, 'separate_value' ); |
| 169 | 169 | $is_post_status = FrmField::is_option_true( $field, 'post_field' ) && $field->field_options['post_field'] === 'post_status'; |
| 170 | 170 | if ( $has_separate_value && ! $is_post_status ) { |
| 171 | - $columns[ $form_id . '_frmsep_' . $col_id ] = FrmAppHelper::truncate( $field->name, 35 ); |
|
| 171 | + $columns[$form_id . '_frmsep_' . $col_id] = FrmAppHelper::truncate( $field->name, 35 ); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - $columns[ $form_id . '_' . $col_id ] = FrmAppHelper::truncate( $field->name, 35 ); |
|
| 174 | + $columns[$form_id . '_' . $col_id] = FrmAppHelper::truncate( $field->name, 35 ); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | private static function maybe_add_ip_col( $form_id, &$columns ) { |
| 178 | 178 | if ( FrmAppHelper::ips_saved() ) { |
| 179 | - $columns[ $form_id . '_ip' ] = 'IP'; |
|
| 179 | + $columns[$form_id . '_ip'] = 'IP'; |
|
| 180 | 180 | } |
| 181 | 181 | } |
| 182 | 182 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | foreach ( $meta_value as $mk => $mv ) { |
| 216 | 216 | // Remove blank values. |
| 217 | 217 | if ( empty( $mv ) ) { |
| 218 | - unset( $meta_value[ $mk ] ); |
|
| 218 | + unset( $meta_value[$mk] ); |
|
| 219 | 219 | } |
| 220 | 220 | } |
| 221 | 221 | |
@@ -290,14 +290,14 @@ discard block |
||
| 290 | 290 | ); |
| 291 | 291 | |
| 292 | 292 | if ( ! $form_id ) { |
| 293 | - $columns[ $form_id . '_user_id' ] = 'user_id'; |
|
| 294 | - $columns[ $form_id . '_name' ] = 'name'; |
|
| 295 | - $columns[ $form_id . '_form_id' ] = 'form_id'; |
|
| 293 | + $columns[$form_id . '_user_id'] = 'user_id'; |
|
| 294 | + $columns[$form_id . '_name'] = 'name'; |
|
| 295 | + $columns[$form_id . '_form_id'] = 'form_id'; |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | foreach ( $fields as $field ) { |
| 299 | 299 | if ( self::field_supports_sorting( $field ) ) { |
| 300 | - $columns[ $form_id . '_' . $field->field_key ] = 'meta_' . $field->id; |
|
| 300 | + $columns[$form_id . '_' . $field->field_key] = 'meta_' . $field->id; |
|
| 301 | 301 | } |
| 302 | 302 | } |
| 303 | 303 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $atts['form_id'] . '_item_key' => '', |
| 385 | 385 | $atts['form_id'] . '_id' => '', |
| 386 | 386 | ); |
| 387 | - $cols = $remove_first + array_reverse( $frm_vars['cols'], true ); |
|
| 387 | + $cols = $remove_first + array_reverse( $frm_vars['cols'], true ); |
|
| 388 | 388 | |
| 389 | 389 | $i = $atts['i']; |
| 390 | 390 | |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | |
| 396 | 396 | if ( empty( $result ) || ! in_array( $col_key, $result, true ) ) { |
| 397 | 397 | $result[] = $col_key; |
| 398 | - --$i; |
|
| 398 | + -- $i; |
|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | unset( $col_key, $col ); |
@@ -545,9 +545,9 @@ discard block |
||
| 545 | 545 | if ( ! isset( $frm_vars['form_params'] ) ) { |
| 546 | 546 | $frm_vars['form_params'] = array(); |
| 547 | 547 | } |
| 548 | - $frm_vars['form_params'][ $form->id ] = $params; |
|
| 548 | + $frm_vars['form_params'][$form->id] = $params; |
|
| 549 | 549 | |
| 550 | - if ( isset( $frm_vars['created_entries'][ $form_id ] ) ) { |
|
| 550 | + if ( isset( $frm_vars['created_entries'][$form_id] ) ) { |
|
| 551 | 551 | return; |
| 552 | 552 | } |
| 553 | 553 | |
@@ -563,16 +563,16 @@ discard block |
||
| 563 | 563 | */ |
| 564 | 564 | $errors = apply_filters( 'frm_entries_before_create', $errors, $form ); |
| 565 | 565 | |
| 566 | - $frm_vars['created_entries'][ $form_id ] = array( 'errors' => $errors ); |
|
| 566 | + $frm_vars['created_entries'][$form_id] = array( 'errors' => $errors ); |
|
| 567 | 567 | |
| 568 | 568 | if ( empty( $errors ) ) { |
| 569 | 569 | $_POST['frm_skip_cookie'] = 1; |
| 570 | 570 | $do_success = false; |
| 571 | 571 | if ( $params['action'] === 'create' ) { |
| 572 | - if ( apply_filters( 'frm_continue_to_create', true, $form_id ) && ! isset( $frm_vars['created_entries'][ $form_id ]['entry_id'] ) ) { |
|
| 573 | - $frm_vars['created_entries'][ $form_id ]['entry_id'] = FrmEntry::create( $_POST ); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 572 | + if ( apply_filters( 'frm_continue_to_create', true, $form_id ) && ! isset( $frm_vars['created_entries'][$form_id]['entry_id'] ) ) { |
|
| 573 | + $frm_vars['created_entries'][$form_id]['entry_id'] = FrmEntry::create( $_POST ); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 574 | 574 | |
| 575 | - $params['id'] = $frm_vars['created_entries'][ $form_id ]['entry_id']; |
|
| 575 | + $params['id'] = $frm_vars['created_entries'][$form_id]['entry_id']; |
|
| 576 | 576 | $do_success = true; |
| 577 | 577 | } |
| 578 | 578 | } |
@@ -114,13 +114,16 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public static function value_is_posted( $field, $args ) { |
| 116 | 116 | $value_is_posted = false; |
| 117 | - if ( $_POST ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 117 | + if ( $_POST ) { |
|
| 118 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 118 | 119 | $repeating = isset( $args['repeating'] ) && $args['repeating']; |
| 119 | 120 | if ( $repeating ) { |
| 120 | - if ( isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 121 | + if ( isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ][ $field->id ] ) ) { |
|
| 122 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 121 | 123 | $value_is_posted = true; |
| 122 | 124 | } |
| 123 | - } elseif ( isset( $_POST['item_meta'][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 125 | + } elseif ( isset( $_POST['item_meta'][ $field->id ] ) ) { |
|
| 126 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 124 | 127 | $value_is_posted = true; |
| 125 | 128 | } |
| 126 | 129 | } |
@@ -322,8 +325,10 @@ discard block |
||
| 322 | 325 | * @since 4.01 |
| 323 | 326 | */ |
| 324 | 327 | private static function set_parent_field_posted_value( $field, $value, $args ) { |
| 325 | - if ( isset( $_POST['item_meta'][ $args['parent_field_id'] ] ) && is_array( $_POST['item_meta'][ $args['parent_field_id'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 326 | - if ( ! isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] ) || ! is_array( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 328 | + if ( isset( $_POST['item_meta'][ $args['parent_field_id'] ] ) && is_array( $_POST['item_meta'][ $args['parent_field_id'] ] ) ) { |
|
| 329 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 330 | + if ( ! isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] ) || ! is_array( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] ) ) { |
|
| 331 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 327 | 332 | $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
| 328 | 333 | } |
| 329 | 334 | } else { |
@@ -395,7 +400,8 @@ discard block |
||
| 395 | 400 | self::set_other_repeating_vals( $field, $value, $args ); |
| 396 | 401 | |
| 397 | 402 | // Check if there are any posted "Other" values. |
| 398 | - if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta']['other'][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 403 | + if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta']['other'][ $field->id ] ) ) { |
|
| 404 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 399 | 405 | |
| 400 | 406 | // Save original value. |
| 401 | 407 | $args['temp_value'] = $value; |
@@ -425,7 +431,8 @@ discard block |
||
| 425 | 431 | } |
| 426 | 432 | |
| 427 | 433 | // Check if there are any other posted "other" values for this field. |
| 428 | - if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ]['other'][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 434 | + if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ]['other'][ $field->id ] ) ) { |
|
| 435 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 429 | 436 | // Save original value |
| 430 | 437 | $args['temp_value'] = $value; |
| 431 | 438 | $args['other'] = true; |
@@ -137,10 +137,10 @@ discard block |
||
| 137 | 137 | if ( $_POST ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
| 138 | 138 | $repeating = isset( $args['repeating'] ) && $args['repeating']; |
| 139 | 139 | if ( $repeating ) { |
| 140 | - if ( isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 140 | + if ( isset( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']][$field->id] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 141 | 141 | $value_is_posted = true; |
| 142 | 142 | } |
| 143 | - } elseif ( isset( $_POST['item_meta'][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 143 | + } elseif ( isset( $_POST['item_meta'][$field->id] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 144 | 144 | $value_is_posted = true; |
| 145 | 145 | } |
| 146 | 146 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | preg_match_all( "/\[(default-message|default_message)\b(.*?)(?:(\/))?\]/s", $message, $shortcodes, PREG_PATTERN_ORDER ); |
| 173 | 173 | |
| 174 | 174 | foreach ( $shortcodes[0] as $short_key => $tag ) { |
| 175 | - $add_atts = FrmShortcodeHelper::get_shortcode_attribute_array( $shortcodes[2][ $short_key ] ); |
|
| 175 | + $add_atts = FrmShortcodeHelper::get_shortcode_attribute_array( $shortcodes[2][$short_key] ); |
|
| 176 | 176 | if ( ! empty( $add_atts ) ) { |
| 177 | 177 | $this_atts = array_merge( $atts, $add_atts ); |
| 178 | 178 | } else { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | $default = FrmEntriesController::show_entry_shortcode( $this_atts ); |
| 183 | 183 | |
| 184 | 184 | // Add the default message. |
| 185 | - $message = str_replace( $shortcodes[0][ $short_key ], $default, $message ); |
|
| 185 | + $message = str_replace( $shortcodes[0][$short_key], $default, $message ); |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | return $message; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * @return string |
| 196 | 196 | */ |
| 197 | 197 | public static function prepare_display_value( $entry, $field, $atts ) { |
| 198 | - $field_value = isset( $entry->metas[ $field->id ] ) ? $entry->metas[ $field->id ] : false; |
|
| 198 | + $field_value = isset( $entry->metas[$field->id] ) ? $entry->metas[$field->id] : false; |
|
| 199 | 199 | |
| 200 | 200 | if ( FrmAppHelper::pro_is_installed() ) { |
| 201 | 201 | $empty = empty( $field_value ); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $child_entries = FrmEntry::getAll( array( 'it.parent_item_id' => $entry->id ), '', '', true ); |
| 221 | 221 | } else { |
| 222 | 222 | // Get all values for this field. |
| 223 | - $child_values = isset( $entry->metas[ $atts['embedded_field_id'] ] ) ? $entry->metas[ $atts['embedded_field_id'] ] : false; |
|
| 223 | + $child_values = isset( $entry->metas[$atts['embedded_field_id']] ) ? $entry->metas[$atts['embedded_field_id']] : false; |
|
| 224 | 224 | |
| 225 | 225 | if ( $child_values ) { |
| 226 | 226 | $child_entries = FrmEntry::getAll( array( 'it.id' => (array) $child_values ) ); |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | $value = $args['temp_value']; |
| 339 | 339 | } |
| 340 | 340 | if ( empty( $args['parent_field_id'] ) ) { |
| 341 | - $_POST['item_meta'][ $field->id ] = $value; |
|
| 341 | + $_POST['item_meta'][$field->id] = $value; |
|
| 342 | 342 | } else { |
| 343 | 343 | self::set_parent_field_posted_value( $field, $value, $args ); |
| 344 | 344 | } |
@@ -350,17 +350,17 @@ discard block |
||
| 350 | 350 | * @since 4.01 |
| 351 | 351 | */ |
| 352 | 352 | private static function set_parent_field_posted_value( $field, $value, $args ) { |
| 353 | - if ( isset( $_POST['item_meta'][ $args['parent_field_id'] ] ) && is_array( $_POST['item_meta'][ $args['parent_field_id'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 354 | - if ( ! isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] ) || ! is_array( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 355 | - $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 353 | + if ( isset( $_POST['item_meta'][$args['parent_field_id']] ) && is_array( $_POST['item_meta'][$args['parent_field_id']] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 354 | + if ( ! isset( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']] ) || ! is_array( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 355 | + $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 356 | 356 | } |
| 357 | 357 | } else { |
| 358 | 358 | // All of the section was probably removed. |
| 359 | - $_POST['item_meta'][ $args['parent_field_id'] ] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 360 | - $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 359 | + $_POST['item_meta'][$args['parent_field_id']] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 360 | + $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']] = array(); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | - $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ][ $field->id ] = $value; // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 363 | + $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']][$field->id] = $value; // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | public static function get_posted_value( $field, &$value, $args ) { |
@@ -390,9 +390,9 @@ discard block |
||
| 390 | 390 | private static function get_posted_meta( $field_id, $args ) { |
| 391 | 391 | if ( empty( $args['parent_field_id'] ) ) { |
| 392 | 392 | // Sanitizing is done next. |
| 393 | - $value = isset( $_POST['item_meta'][ $field_id ] ) ? wp_unslash( $_POST['item_meta'][ $field_id ] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 393 | + $value = isset( $_POST['item_meta'][$field_id] ) ? wp_unslash( $_POST['item_meta'][$field_id] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 394 | 394 | } else { |
| 395 | - $value = isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ][ $field_id ] ) ? wp_unslash( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ][ $field_id ] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 395 | + $value = isset( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']][$field_id] ) ? wp_unslash( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']][$field_id] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 396 | 396 | } |
| 397 | 397 | return $value; |
| 398 | 398 | } |
@@ -423,14 +423,14 @@ discard block |
||
| 423 | 423 | self::set_other_repeating_vals( $field, $value, $args ); |
| 424 | 424 | |
| 425 | 425 | // Check if there are any posted "Other" values. |
| 426 | - if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta']['other'][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 426 | + if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta']['other'][$field->id] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 427 | 427 | |
| 428 | 428 | // Save original value. |
| 429 | 429 | $args['temp_value'] = $value; |
| 430 | 430 | $args['other'] = true; |
| 431 | 431 | |
| 432 | 432 | // Sanitizing is done next. |
| 433 | - $other_vals = wp_unslash( $_POST['item_meta']['other'][ $field->id ] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 433 | + $other_vals = wp_unslash( $_POST['item_meta']['other'][$field->id] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 434 | 434 | FrmAppHelper::sanitize_value( 'sanitize_text_field', $other_vals ); |
| 435 | 435 | |
| 436 | 436 | // Set the validation value now |
@@ -453,12 +453,12 @@ discard block |
||
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | // Check if there are any other posted "other" values for this field. |
| 456 | - if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ]['other'][ $field->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 456 | + if ( FrmField::is_option_true( $field, 'other' ) && isset( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']]['other'][$field->id] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 457 | 457 | // Save original value |
| 458 | 458 | $args['temp_value'] = $value; |
| 459 | 459 | $args['other'] = true; |
| 460 | 460 | |
| 461 | - $other_vals = wp_unslash( $_POST['item_meta'][ $args['parent_field_id'] ][ $args['key_pointer'] ]['other'][ $field->id ] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 461 | + $other_vals = wp_unslash( $_POST['item_meta'][$args['parent_field_id']][$args['key_pointer']]['other'][$field->id] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 462 | 462 | FrmAppHelper::sanitize_value( 'sanitize_text_field', $other_vals ); |
| 463 | 463 | |
| 464 | 464 | // Set the validation value now. |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | if ( is_array( $value ) && $field->type === 'checkbox' ) { |
| 486 | 486 | // Combine "Other" values with checked values. "Other" values will override checked box values. |
| 487 | 487 | foreach ( $other_vals as $k => $v ) { |
| 488 | - if ( isset( $value[ $k ] ) && trim( $v ) === '' ) { |
|
| 488 | + if ( isset( $value[$k] ) && trim( $v ) === '' ) { |
|
| 489 | 489 | // If the other box is checked, but doesn't have a value. |
| 490 | 490 | $value = ''; |
| 491 | 491 | break; |
@@ -502,25 +502,25 @@ discard block |
||
| 502 | 502 | |
| 503 | 503 | // Multi-select dropdown. |
| 504 | 504 | if ( is_array( $value ) ) { |
| 505 | - $o_key = array_search( $field->options[ $other_key ], $value ); |
|
| 505 | + $o_key = array_search( $field->options[$other_key], $value ); |
|
| 506 | 506 | |
| 507 | 507 | if ( $o_key !== false ) { |
| 508 | 508 | // Modify the original value so other key will be preserved. |
| 509 | - $value[ $other_key ] = $value[ $o_key ]; |
|
| 509 | + $value[$other_key] = $value[$o_key]; |
|
| 510 | 510 | |
| 511 | 511 | // By default, the array keys will be numeric for multi-select dropdowns. |
| 512 | 512 | // If going backwards and forwards between pages, the array key will match the other key. |
| 513 | 513 | if ( $o_key !== $other_key ) { |
| 514 | - unset( $value[ $o_key ] ); |
|
| 514 | + unset( $value[$o_key] ); |
|
| 515 | 515 | } |
| 516 | 516 | |
| 517 | 517 | $args['temp_value'] = $value; |
| 518 | - $value[ $other_key ] = reset( $other_vals ); |
|
| 519 | - if ( FrmAppHelper::is_empty_value( $value[ $other_key ] ) ) { |
|
| 520 | - unset( $value[ $other_key ] ); |
|
| 518 | + $value[$other_key] = reset( $other_vals ); |
|
| 519 | + if ( FrmAppHelper::is_empty_value( $value[$other_key] ) ) { |
|
| 520 | + unset( $value[$other_key] ); |
|
| 521 | 521 | } |
| 522 | 522 | } |
| 523 | - } elseif ( $field->options[ $other_key ] == $value ) { |
|
| 523 | + } elseif ( $field->options[$other_key] == $value ) { |
|
| 524 | 524 | $value = $other_vals; |
| 525 | 525 | }//end if |
| 526 | 526 | }//end if |
@@ -766,7 +766,7 @@ discard block |
||
| 766 | 766 | * @return void |
| 767 | 767 | */ |
| 768 | 768 | public static function maybe_render_captcha_score( $entry_id ) { |
| 769 | - $query = array( |
|
| 769 | + $query = array( |
|
| 770 | 770 | 'item_id' => (int) $entry_id, |
| 771 | 771 | 'field_id' => 0, |
| 772 | 772 | ); |
@@ -820,7 +820,7 @@ discard block |
||
| 820 | 820 | public static function get_entry_status_label( $status ) { |
| 821 | 821 | $statuses = self::get_entry_statuses(); |
| 822 | 822 | |
| 823 | - return $statuses[ self::get_entry_status( $status ) ]; |
|
| 823 | + return $statuses[self::get_entry_status( $status )]; |
|
| 824 | 824 | } |
| 825 | 825 | |
| 826 | 826 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $this->beta = ! empty( $this->api_data['beta'] ) ? true : false; |
| 45 | 45 | $this->cache_key = md5( serialize( $this->slug . $this->version . $this->api_data['license'] . $this->beta ) ); |
| 46 | 46 | |
| 47 | - $frm_edd_plugin_data[ $this->slug ] = $this->api_data; |
|
| 47 | + $frm_edd_plugin_data[$this->slug] = $this->api_data; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Fires after the $frm_edd_plugin_data is setup. |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $_transient_data = new stdClass(); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) { |
|
| 96 | + if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[$this->name] ) && false === $this->wp_override ) { |
|
| 97 | 97 | return $_transient_data; |
| 98 | 98 | } |
| 99 | 99 | |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | $version_info->plugin = $this->name; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - $_transient_data->response[ $this->name ] = $version_info; |
|
| 123 | + $_transient_data->response[$this->name] = $version_info; |
|
| 124 | 124 | |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $_transient_data->last_checked = time(); |
| 128 | - $_transient_data->checked[ $this->name ] = $this->version; |
|
| 128 | + $_transient_data->checked[$this->name] = $this->version; |
|
| 129 | 129 | |
| 130 | 130 | } |
| 131 | 131 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) { |
| 190 | 190 | $new_sections = array(); |
| 191 | 191 | foreach ( $_data->sections as $key => $value ) { |
| 192 | - $new_sections[ $key ] = $value; |
|
| 192 | + $new_sections[$key] = $value; |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | $_data->sections = $new_sections; |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) { |
| 200 | 200 | $new_banners = array(); |
| 201 | 201 | foreach ( $_data->banners as $key => $value ) { |
| 202 | - $new_banners[ $key ] = $value; |
|
| 202 | + $new_banners[$key] = $value; |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | $_data->banners = $new_banners; |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | $slug = sanitize_text_field( $_REQUEST['slug'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
| 319 | - $data = $frm_edd_plugin_data[ $slug ]; |
|
| 319 | + $data = $frm_edd_plugin_data[$slug]; |
|
| 320 | 320 | $beta = ! empty( $data['beta'] ) ? true : false; |
| 321 | 321 | $cache_key = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' ); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
| 322 | 322 | $version_info = $this->get_cached_version_info( $cache_key ); |
@@ -303,11 +303,13 @@ |
||
| 303 | 303 | |
| 304 | 304 | global $frm_edd_plugin_data; |
| 305 | 305 | |
| 306 | - if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 306 | + if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) { |
|
| 307 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 307 | 308 | return; |
| 308 | 309 | } |
| 309 | 310 | |
| 310 | - if ( empty( $_REQUEST['plugin'] ) || empty( $_REQUEST['slug'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 311 | + if ( empty( $_REQUEST['plugin'] ) || empty( $_REQUEST['slug'] ) ) { |
|
| 312 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 311 | 313 | return; |
| 312 | 314 | } |
| 313 | 315 | |
@@ -42,7 +42,8 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | // Only do this for single site installs. |
| 45 | - if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 45 | + if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { |
|
| 46 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 46 | 47 | return; |
| 47 | 48 | } |
| 48 | 49 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | */ |
| 184 | 184 | public function add_settings( $sections ) { |
| 185 | 185 | wp_enqueue_style( 'formidable-pro-fields' ); |
| 186 | - $sections[ $this->plugin_slug ] = array( |
|
| 186 | + $sections[$this->plugin_slug] = array( |
|
| 187 | 187 | 'class' => $this, |
| 188 | 188 | 'function' => 'settings_page', |
| 189 | 189 | 'name' => $this->plugin_name(), |
@@ -349,9 +349,9 @@ discard block |
||
| 349 | 349 | // Set the current step. |
| 350 | 350 | if ( ! isset( $step['current'] ) ) { |
| 351 | 351 | if ( $step['complete'] ) { |
| 352 | - $steps[ $k ]['current'] = false; |
|
| 352 | + $steps[$k]['current'] = false; |
|
| 353 | 353 | } else { |
| 354 | - $steps[ $k ]['current'] = ! $has_current; |
|
| 354 | + $steps[$k]['current'] = ! $has_current; |
|
| 355 | 355 | $has_current = true; |
| 356 | 356 | } |
| 357 | 357 | } elseif ( $step['current'] ) { |
@@ -361,10 +361,10 @@ discard block |
||
| 361 | 361 | // Set disabled buttons. |
| 362 | 362 | $class = isset( $step['button_class'] ) ? $step['button_class'] : ''; |
| 363 | 363 | $class .= ' button-primary frm-button-primary'; |
| 364 | - if ( ! $steps[ $k ]['current'] ) { |
|
| 364 | + if ( ! $steps[$k]['current'] ) { |
|
| 365 | 365 | $class .= ' frm_grey disabled'; |
| 366 | 366 | } |
| 367 | - $steps[ $k ]['button_class'] = $class; |
|
| 367 | + $steps[$k]['button_class'] = $class; |
|
| 368 | 368 | }//end foreach |
| 369 | 369 | |
| 370 | 370 | return $steps; |
@@ -519,7 +519,7 @@ discard block |
||
| 519 | 519 | $addons = $api->get_api_info(); |
| 520 | 520 | |
| 521 | 521 | $id = $this->download_id(); |
| 522 | - $has_file = isset( $addons[ $id ] ) && isset( $addons[ $id ]['beta'] ); |
|
| 522 | + $has_file = isset( $addons[$id] ) && isset( $addons[$id]['beta'] ); |
|
| 523 | 523 | |
| 524 | 524 | if ( ! $step['current'] ) { |
| 525 | 525 | ?> |
@@ -534,10 +534,10 @@ discard block |
||
| 534 | 534 | |
| 535 | 535 | if ( ! $has_file ) { |
| 536 | 536 | echo '<p class="frm_error_style">' . esc_html__( 'We didn\'t find anything to import. Please contact our team.', 'formidable' ) . '</p>'; |
| 537 | - } elseif ( ! isset( $addons[ $id ]['beta']['package'] ) ) { |
|
| 537 | + } elseif ( ! isset( $addons[$id]['beta']['package'] ) ) { |
|
| 538 | 538 | echo '<p class="frm_error_style">' . esc_html__( 'Looks like you may not have a current subscription for this solution. Please check your account.', 'formidable' ) . '</p>'; |
| 539 | 539 | } else { |
| 540 | - $xml = $addons[ $id ]['beta']['package']; |
|
| 540 | + $xml = $addons[$id]['beta']['package']; |
|
| 541 | 541 | if ( is_array( $xml ) ) { |
| 542 | 542 | $xml = reset( $xml ); |
| 543 | 543 | } |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | foreach ( $options as $info ) { |
| 615 | 615 | // Count the number of options displayed for css. |
| 616 | 616 | if ( $count > 1 && ! isset( $info['img'] ) ) { |
| 617 | - --$count; |
|
| 617 | + -- $count; |
|
| 618 | 618 | } |
| 619 | 619 | } |
| 620 | 620 | $width = floor( ( 533 - ( ( $count - 1 ) * 20 ) ) / $count ); |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | foreach ( $forms as $form ) { |
| 705 | 705 | $was_imported = isset( $form['form'] ) ? FrmForm::get_id_by_key( $form['form'] ) : false; |
| 706 | 706 | if ( $was_imported ) { |
| 707 | - $imported[ $form['form'] ] = $was_imported; |
|
| 707 | + $imported[$form['form']] = $was_imported; |
|
| 708 | 708 | } |
| 709 | 709 | } |
| 710 | 710 | |