Plugin Directory

Changeset 3463482


Ignore:
Timestamp:
02/17/2026 12:18:46 PM (5 weeks ago)
Author:
mailerlite
Message:

Update to version 1.7.19 from GitHub

Location:
official-mailerlite-sign-up-forms
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • official-mailerlite-sign-up-forms/tags/1.7.19/mailerlite.php

    r3418514 r3463482  
    44 * Plugin URI: https://mailerlite.com
    55 * Description: Official MailerLite Signup forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
    6  * Version: 1.7.18
     6 * Version: 1.7.19
    77 * Author: MailerLite
    88 * Author URI: https://www.mailerlite.com
     
    3535define( 'MAILERLITE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    3636
    37 define( 'MAILERLITE_VERSION', '1.7.18' );
     37define( 'MAILERLITE_VERSION', '1.7.19' );
    3838
    3939define( 'MAILERLITE_PHP_VERSION', '7.2.5' );
  • official-mailerlite-sign-up-forms/tags/1.7.19/readme.txt

    r3418514 r3463482  
    66Tested up to: 6.8.2
    77Requires PHP: 7.2.5
    8 Stable tag: 1.7.18
     8Stable tag: 1.7.19
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    130130
    131131== Changelog ==
     132= 1.7.19 =
     133* Security fixes
     134
    132135= 1.7.18 =
    133136* Minor fixes
  • official-mailerlite-sign-up-forms/tags/1.7.19/src/Controllers/AdminController.php

    r3416100 r3463482  
    324324        elseif ( isset( $_GET['view'] ) && isset( $_GET['id'] )
    325325                 && $_GET['view'] == 'delete'
    326                  && absint( $_GET['id'] ) ) {
     326                 && absint( $_GET['id'] )
     327                 && current_user_can( 'manage_options' )) {
    327328            $wpdb->delete(
    328329                $wpdb->base_prefix . 'mailerlite_forms', [ 'id' => absint( $_GET['id'] ) ]
  • official-mailerlite-sign-up-forms/tags/1.7.19/src/Modules/Form.php

    r3070584 r3463482  
    66use MailerLiteForms\Api\PlatformAPI;
    77use MailerLiteForms\Controllers\AdminController;
     8use MailerLiteForms\Helper;
    89use MailerLiteForms\Views\CustomForm;
    910use MailerLiteForms\Views\EmbeddedForm;
     
    277278
    278279            if ( array_key_exists( 'create_signup_form_now', $_POST ) ) {
    279                 $form_name          = $_POST['form_name'];
     280                $form_name = htmlspecialchars(Helper::issetWithDefault( 'form_name',
     281                    __( 'Subscribe for newsletter!', 'mailerlite' ) ));
    280282                $form_data['lists'] = $_POST['form_lists'];
    281283                $selected_groups = explode(';*',$_POST['selected_groups']);
    282 
    283284                foreach ($selected_groups as $group) {
    284285                    $group = explode('::', $group);
    285                     $group_data = [];
    286                     $group_data['id'] = $group[0];
    287                     $group_data['name'] = $group[1];
     286                    $group_data = [
     287                        'id'   => sanitize_text_field($group[0]),
     288                        'name' => sanitize_text_field($group[1]),
     289                    ];
     290
    288291                    $form_data['selected_groups'][] = (object)$group_data;
    289292                }
  • official-mailerlite-sign-up-forms/trunk/mailerlite.php

    r3418514 r3463482  
    44 * Plugin URI: https://mailerlite.com
    55 * Description: Official MailerLite Signup forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
    6  * Version: 1.7.18
     6 * Version: 1.7.19
    77 * Author: MailerLite
    88 * Author URI: https://www.mailerlite.com
     
    3535define( 'MAILERLITE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    3636
    37 define( 'MAILERLITE_VERSION', '1.7.18' );
     37define( 'MAILERLITE_VERSION', '1.7.19' );
    3838
    3939define( 'MAILERLITE_PHP_VERSION', '7.2.5' );
  • official-mailerlite-sign-up-forms/trunk/readme.txt

    r3418514 r3463482  
    66Tested up to: 6.8.2
    77Requires PHP: 7.2.5
    8 Stable tag: 1.7.18
     8Stable tag: 1.7.19
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    130130
    131131== Changelog ==
     132= 1.7.19 =
     133* Security fixes
     134
    132135= 1.7.18 =
    133136* Minor fixes
  • official-mailerlite-sign-up-forms/trunk/src/Controllers/AdminController.php

    r3416100 r3463482  
    324324        elseif ( isset( $_GET['view'] ) && isset( $_GET['id'] )
    325325                 && $_GET['view'] == 'delete'
    326                  && absint( $_GET['id'] ) ) {
     326                 && absint( $_GET['id'] )
     327                 && current_user_can( 'manage_options' )) {
    327328            $wpdb->delete(
    328329                $wpdb->base_prefix . 'mailerlite_forms', [ 'id' => absint( $_GET['id'] ) ]
  • official-mailerlite-sign-up-forms/trunk/src/Modules/Form.php

    r3070584 r3463482  
    66use MailerLiteForms\Api\PlatformAPI;
    77use MailerLiteForms\Controllers\AdminController;
     8use MailerLiteForms\Helper;
    89use MailerLiteForms\Views\CustomForm;
    910use MailerLiteForms\Views\EmbeddedForm;
     
    277278
    278279            if ( array_key_exists( 'create_signup_form_now', $_POST ) ) {
    279                 $form_name          = $_POST['form_name'];
     280                $form_name = htmlspecialchars(Helper::issetWithDefault( 'form_name',
     281                    __( 'Subscribe for newsletter!', 'mailerlite' ) ));
    280282                $form_data['lists'] = $_POST['form_lists'];
    281283                $selected_groups = explode(';*',$_POST['selected_groups']);
    282 
    283284                foreach ($selected_groups as $group) {
    284285                    $group = explode('::', $group);
    285                     $group_data = [];
    286                     $group_data['id'] = $group[0];
    287                     $group_data['name'] = $group[1];
     286                    $group_data = [
     287                        'id'   => sanitize_text_field($group[0]),
     288                        'name' => sanitize_text_field($group[1]),
     289                    ];
     290
    288291                    $form_data['selected_groups'][] = (object)$group_data;
    289292                }
Note: See TracChangeset for help on using the changeset viewer.