Plugin Directory

Changeset 3300929


Ignore:
Timestamp:
05/26/2025 05:05:45 PM (10 months ago)
Author:
Mailjet
Message:

Updating trunk

Location:
mailjet-for-wordpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • mailjet-for-wordpress/trunk/CHANGELOG.md

    r3292624 r3300929  
    11## Changelog
     2
     3##### 6.1.5
     4- Fixed issue with wrong permission check on integration page
    25
    36##### 6.1.4
  • mailjet-for-wordpress/trunk/README.md

    r3292624 r3300929  
    55- Requires at least: 4.4
    66- Tested up to: 6.8.1
    7 - Stable tag: 6.1.4
     7- Stable tag: 6.1.5
    88- Requires PHP: 7.4
    99- License: GPLv2 or later
     
    163163## Changelog
    164164
     165##### 6.1.5
     166- Fixed issue with wrong permission check on integration page
     167
    165168##### 6.1.4
    166169- Fix issues in the input fields. Tested with new WP version
  • mailjet-for-wordpress/trunk/readme.txt

    r3292624 r3300929  
    55- Requires at least: 4.4
    66- Tested up to: 6.8.1
    7 - Stable tag: 6.1.4
     7- Stable tag: 6.1.5
    88- Requires PHP: 7.4
    99- License: GPLv2 or later
  • mailjet-for-wordpress/trunk/src/includes/SettingsPages/IntegrationsSettings.php

    r3292624 r3300929  
    217217                        ?>
    218218                        </label>
    219                         <input name="woocommerce[mailjet_woo_checkout_box_text]" id="sub_letter" type="text" value="<?php echo esc_attr($checkoutCheckboxText);?>" class="mj-text-field" placeholder="
    220                         <?php
    221                         echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');
    222                         ?>
    223 ">
     219                        <input name="woocommerce[mailjet_woo_checkout_box_text]" id="sub_letter" type="text" value="<?php echo esc_attr($checkoutCheckboxText);?>" class="mj-text-field" placeholder="<?php echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');?>">
    224220                    </div>
    225221                    <label class="checkboxLabel">
     
    270266                        ?>
    271267                        </label>
    272                         <input name="woocommerce[mailjet_woo_register_box_text]" id="sub_letter_register" type="text" value="
    273                         <?php
    274                         echo esc_attr($registerCheckboxText);
    275                         ?>
    276                         " class="mj-text-field" placeholder="
    277                         <?php
    278                         echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');
    279                         ?>
     268                        <input name="woocommerce[mailjet_woo_register_box_text]" id="sub_letter_register" type="text" value="<?php echo esc_attr($registerCheckboxText); ?>" class="mj-text-field" placeholder="<?php echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');?>
    280269">
    281270                    </div>
     
    328317                            ?>
    329318                            </label>
    330                             <input name="woocommerce[mailjet_woo_banner_text]" id="banner_text" value="
    331                             <?php
    332                             echo esc_attr($bannerText);
    333                             ?>
    334                             " class="mj-text-field" type="text" placeholder="
    335                             <?php
    336                             echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');
    337                             ?>
     319                            <input name="woocommerce[mailjet_woo_banner_text]" id="banner_text" value="<?php echo esc_attr($bannerText); ?>" class="mj-text-field" type="text" placeholder="<?php echo __('Subscribe to our newsletter', 'mailjet-for-wordpress'); ?>
    338320">
    339321                        </div>
     
    344326                            ?>
    345327                            </label>
    346                             <input name="woocommerce[mailjet_woo_banner_label]" id="banner_label" value="
    347                             <?php
    348                             echo esc_attr($bannerLabel);
    349                             ?>
    350                             " class="mj-text-field" type="text" placeholder="
    351                             <?php
    352                             echo __('Subscribe now', 'mailjet-for-wordpress');
    353                             ?>
     328                            <input name="woocommerce[mailjet_woo_banner_label]" id="banner_label" value="<?php echo esc_attr($bannerLabel); ?>" class="mj-text-field" type="text" placeholder="<?php echo __('Subscribe now', 'mailjet-for-wordpress');?>
    354329">
    355330                        </div>
     
    461436                            ?>
    462437                            </label>
    463                     <input name="cf7[cf7_email]" id="cf7_email" value="
    464                     <?php
    465                     echo esc_attr($email);
    466                     ?>
    467                     "  type="text"
    468                             placeholder="
    469                             <?php
    470                             _e('e.g. [your-email]', 'mailjet-for-wordpress');
    471                             ?>
    472                             "
     438                    <input name="cf7[cf7_email]" id="cf7_email" value="<?php echo esc_attr($email);?>"  type="text"
     439                            placeholder="<?php _e('e.g. [your-email]', 'mailjet-for-wordpress');?>"
    473440                            class="mj-text-field"/>
    474441                </div>
     
    480447                            ?>
    481448                            </label>
    482                     <input name="cf7[cf7_fromname]" id="cf7_fromname" value="
    483                     <?php
    484                     echo esc_attr($from);
    485                     ?>
    486                     "  type="text"
    487                             placeholder="
    488                             <?php
    489                             _e('e.g. [your-name]', 'mailjet-for-wordpress');
    490                             ?>
    491                             "
     449                    <input name="cf7[cf7_fromname]" id="cf7_fromname" value="<?php echo esc_attr($from); ?>" type="text"
     450                            placeholder="<?php _e('e.g. [your-name]', 'mailjet-for-wordpress'); ?>"
    492451                            class="mj-text-field"/>
    493452                </div>
     
    502461                    <div class="mj-copy-wrapper">
    503462                        <input name="cf7[cf7_contact_properties]" id="cf7_contact_properties"
    504                                 value='[checkbox mailjet-opt-in default:0 "
    505                                 <?php
    506                                 echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');
    507                                 ?>
    508                                 "]'
     463                                value='[checkbox mailjet-opt-in default:0 "<?php echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');?>"]'
    509464                                class="widefat cf7_input" disabled="disabled"/>
    510465                        <i class="fa fa-copy mj-copy-icon" id="copy_properties"></i>
     
    608563                            </p>
    609564                            <hr>
    610                             <form action="
    611                             <?php
    612                             echo esc_url(admin_url('admin-post.php'));
    613                             ?>
    614                             " method="POST">
     565                            <form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="POST">
    615566                                <?php
    616567                                // output security fields for the registered setting "mailjet"
     
    623574                                ?>
    624575                                <input type="hidden" name="action" value="integrationsSettings_custom_hook">
    625                                 <input type="hidden" name="custom_nonce" value="
    626                                 <?php
    627                                 echo esc_attr($nonce);
    628                                 ?>
    629                                 ">
     576                                <input type="hidden" name="custom_nonce" value="<?php echo esc_attr($nonce); ?>">
    630577                                <button type="submit" id="integrationsSubmit" class="mj-btn btnPrimary MailjetSubmit"
    631                                         name="submit">
    632                                         <?php
    633                                         echo esc_attr($saveButton);
    634                                         ?>
    635                                         </button>
     578                                        name="submit"><?php echo esc_attr($saveButton);?>
     579                                </button>
    636580                            </form>
    637581                        </div>
     
    648592    public function integrations_post_handler() {
    649593        $postData = (object) $_POST;
    650         if ( ! isset($postData->custom_nonce) || ! wp_verify_nonce($postData->custom_nonce, 'mailjet_integrations_page_html')) {
     594        if ( ! isset($postData->custom_nonce) || !wp_verify_nonce($postData->custom_nonce, 'mailjet_integrations_page_html')) {
    651595            add_settings_error('mailjet_messages', 'mailjet_message', __('Your permissions don\'t match! Please refresh your session and if the problem persists, contact our support team.', 'mailjet-for-wordpress'), 'error');
    652596            settings_errors('mailjet_messages');
  • mailjet-for-wordpress/trunk/wp-mailjet.php

    r3292624 r3300929  
    1515 * Plugin URI:        https://www.mailjet.com/partners/wordpress/
    1616 * Description:       The Best WordPress Plugin For Email Newsletters.
    17  * Version:           6.1.4
     17 * Version:           6.1.5
    1818 * Tested up to:      6.8.1
    1919 * Author:            Mailjet SAS
     
    5757 * Mailjet plugin version.
    5858 */
    59 define('MAILJET_VERSION', '6.1.4');
     59define('MAILJET_VERSION', '6.1.5');
    6060
    6161/**
Note: See TracChangeset for help on using the changeset viewer.