Plugin Directory

Changeset 2813392


Ignore:
Timestamp:
11/07/2022 10:08:29 AM (3 years ago)
Author:
mailbluster
Message:

fields and consent error solve

Location:
mailbluster4wp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mailbluster4wp/trunk/README.txt

    r2799245 r2813392  
    66Tested up to: 6.0.1
    77Requires PHP: 5.6
    8 Stable tag: 1.1.8.2
     8Stable tag: 1.1.8.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070== Changelog ==
    7171
     72= 1.1.8.3 =
     73* Bug fix: fields warning
     74* Bug fix: consent checkbox error
     75
    7276= 1.1.8.2 =
    7377* Bug fix: added HTML support on consent text
  • mailbluster4wp/trunk/admin/partials/form-options/builder.php

    r2799245 r2813392  
    44$form_input_field = isset($form_input_field) && !empty($form_input_field) ? $form_input_field : 'email';
    55$custom_field = MailBluster4WP_Helper::get_custom_field();
     6if($custom_field->fields === 'null') $custom_field->fields = [];
    67$newArr = [];
    78foreach($custom_field->fields as $v){
     
    110111                    <div id="mb4wp_form_builder_consent" class="mb4wp-builder-content" style="display: <?php echo (isset($show_consent_checkbox) && ($show_consent_checkbox == 'yes')) ? "flex" : "none"; ?>;">
    111112                        <input type="checkbox" name="" id="mb4wp_builder_form_chekbox" disabled>
    112                         <label id="mb4wp_builder_form_checkbox_label" for="mb4wp_builder_form_chekbox"><?php echo (isset($show_consent_checkbox) && ($show_consent_checkbox == 'yes') && isset($show_consent_text)) ? strip_tags($show_consent_text, "<p>, <u>, <em>, <strong>, <a>") : MailBluster4WP_Helper::consent_default_textarea() ?></label>
     113                        <label id="mb4wp_builder_form_checkbox_label" for="mb4wp_builder_form_chekbox"><?php echo (isset($show_consent_checkbox) && ($show_consent_checkbox == 'yes') && !empty($show_consent_text)) ? strip_tags($show_consent_text, "<p>, <u>, <em>, <strong>, <a>") : MailBluster4WP_Helper::consent_default_textarea() ?></label>
    113114                    </div>
    114115                </div>
  • mailbluster4wp/trunk/admin/partials/form-options/settings.php

    r2799245 r2813392  
    4141                        <?php echo (isset($settings['consent_checkbox']) && !empty($settings['consent_textarea'])) ? strip_tags($settings['consent_textarea'], "<p>, <u>, <em>, <strong>, <a>") : MailBluster4WP_Helper::consent_default_textarea(); ?>
    4242                    </div>
    43                     <input value="<?php echo esc_attr($settings['consent_textarea']) ? esc_attr($settings['consent_textarea']) : MailBluster4WP_Helper::consent_default_textarea(); ?>" name="mb4wp_form_settings_options[consent_textarea]" id="consent_textarea" type="hidden">
     43                    <input value="<?php echo !empty($settings['consent_textarea']) ? esc_attr($settings['consent_textarea']) : MailBluster4WP_Helper::consent_default_textarea(); ?>" name="mb4wp_form_settings_options[consent_textarea]" id="consent_textarea" type="hidden">
    4444                </td>
    4545            </tr>
  • mailbluster4wp/trunk/mailbluster4wp.php

    r2799245 r2813392  
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define('MAILBLUSTER4WP_VERSION', '1.1.8.2');
     39define('MAILBLUSTER4WP_VERSION', '1.1.8.3');
    4040
    4141/**
Note: See TracChangeset for help on using the changeset viewer.