PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.3.30
HTML Forms – Simple WordPress Forms Plugin v1.3.30
1.7.0 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 All 67 releases
← All changes | src/class-form.php +1 -6 1.7.01.3.30 View file →
@@ -51,17 +51,12 @@
51 51 $form_action = apply_filters( 'hf_form_element_action_attr', null, $form );
52 52 $form_action_attr = is_null( $form_action ) ? '' : sprintf( 'action="%s"', $form_action );
53 53
54 54 $data_attributes = $this->get_data_attributes();
55 - $settings = hf_get_settings();
56 55
57 56 $html = '';
58 - $html .= sprintf( '<!-- HTML Forms v%s - %s -->', HTML_FORMS_VERSION, 'https://wordpress.org/plugins/html-forms/' ) . PHP_EOL;
57 + $html .= sprintf( '<!-- HTML Forms v%s - %s -->', HTML_FORMS_VERSION, 'https://wordpress.org/plugins/html-forms/' );
59 58 $html .= sprintf( '<form method="post" %s class="hf-form hf-form-%d %s" %s>', $form_action_attr, $this->ID, esc_attr( $form_classes_attr ), $data_attributes );
60 -
61 - if ( $settings['enable_nonce'] ) {
62 - $html .= wp_nonce_field( 'html_forms_submit', '_wpnonce', true, false );
63 - }
64 59
65 60 $html .= sprintf( '<input type="hidden" name="_hf_form_id" value="%d" />', $this->ID );
66 61 $html .= sprintf( '<div style="display: none;"><input type="text" name="_hf_h%d" value="" /></div>', $this->ID );
67 62 $html .= '<div class="hf-fields-wrap">';