Changeset 3463482
- Timestamp:
- 02/17/2026 12:18:46 PM (5 weeks ago)
- Location:
- official-mailerlite-sign-up-forms
- Files:
-
- 8 edited
- 1 copied
-
tags/1.7.19 (copied) (copied from official-mailerlite-sign-up-forms/trunk)
-
tags/1.7.19/mailerlite.php (modified) (2 diffs)
-
tags/1.7.19/readme.txt (modified) (2 diffs)
-
tags/1.7.19/src/Controllers/AdminController.php (modified) (1 diff)
-
tags/1.7.19/src/Modules/Form.php (modified) (2 diffs)
-
trunk/mailerlite.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Controllers/AdminController.php (modified) (1 diff)
-
trunk/src/Modules/Form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
official-mailerlite-sign-up-forms/tags/1.7.19/mailerlite.php
r3418514 r3463482 4 4 * Plugin URI: https://mailerlite.com 5 5 * 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.1 86 * Version: 1.7.19 7 7 * Author: MailerLite 8 8 * Author URI: https://www.mailerlite.com … … 35 35 define( 'MAILERLITE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 36 36 37 define( 'MAILERLITE_VERSION', '1.7.1 8' );37 define( 'MAILERLITE_VERSION', '1.7.19' ); 38 38 39 39 define( 'MAILERLITE_PHP_VERSION', '7.2.5' ); -
official-mailerlite-sign-up-forms/tags/1.7.19/readme.txt
r3418514 r3463482 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 1.7.1 88 Stable tag: 1.7.19 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 130 130 131 131 == Changelog == 132 = 1.7.19 = 133 * Security fixes 134 132 135 = 1.7.18 = 133 136 * Minor fixes -
official-mailerlite-sign-up-forms/tags/1.7.19/src/Controllers/AdminController.php
r3416100 r3463482 324 324 elseif ( isset( $_GET['view'] ) && isset( $_GET['id'] ) 325 325 && $_GET['view'] == 'delete' 326 && absint( $_GET['id'] ) ) { 326 && absint( $_GET['id'] ) 327 && current_user_can( 'manage_options' )) { 327 328 $wpdb->delete( 328 329 $wpdb->base_prefix . 'mailerlite_forms', [ 'id' => absint( $_GET['id'] ) ] -
official-mailerlite-sign-up-forms/tags/1.7.19/src/Modules/Form.php
r3070584 r3463482 6 6 use MailerLiteForms\Api\PlatformAPI; 7 7 use MailerLiteForms\Controllers\AdminController; 8 use MailerLiteForms\Helper; 8 9 use MailerLiteForms\Views\CustomForm; 9 10 use MailerLiteForms\Views\EmbeddedForm; … … 277 278 278 279 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' ) )); 280 282 $form_data['lists'] = $_POST['form_lists']; 281 283 $selected_groups = explode(';*',$_POST['selected_groups']); 282 283 284 foreach ($selected_groups as $group) { 284 285 $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 288 291 $form_data['selected_groups'][] = (object)$group_data; 289 292 } -
official-mailerlite-sign-up-forms/trunk/mailerlite.php
r3418514 r3463482 4 4 * Plugin URI: https://mailerlite.com 5 5 * 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.1 86 * Version: 1.7.19 7 7 * Author: MailerLite 8 8 * Author URI: https://www.mailerlite.com … … 35 35 define( 'MAILERLITE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 36 36 37 define( 'MAILERLITE_VERSION', '1.7.1 8' );37 define( 'MAILERLITE_VERSION', '1.7.19' ); 38 38 39 39 define( 'MAILERLITE_PHP_VERSION', '7.2.5' ); -
official-mailerlite-sign-up-forms/trunk/readme.txt
r3418514 r3463482 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 1.7.1 88 Stable tag: 1.7.19 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 130 130 131 131 == Changelog == 132 = 1.7.19 = 133 * Security fixes 134 132 135 = 1.7.18 = 133 136 * Minor fixes -
official-mailerlite-sign-up-forms/trunk/src/Controllers/AdminController.php
r3416100 r3463482 324 324 elseif ( isset( $_GET['view'] ) && isset( $_GET['id'] ) 325 325 && $_GET['view'] == 'delete' 326 && absint( $_GET['id'] ) ) { 326 && absint( $_GET['id'] ) 327 && current_user_can( 'manage_options' )) { 327 328 $wpdb->delete( 328 329 $wpdb->base_prefix . 'mailerlite_forms', [ 'id' => absint( $_GET['id'] ) ] -
official-mailerlite-sign-up-forms/trunk/src/Modules/Form.php
r3070584 r3463482 6 6 use MailerLiteForms\Api\PlatformAPI; 7 7 use MailerLiteForms\Controllers\AdminController; 8 use MailerLiteForms\Helper; 8 9 use MailerLiteForms\Views\CustomForm; 9 10 use MailerLiteForms\Views\EmbeddedForm; … … 277 278 278 279 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' ) )); 280 282 $form_data['lists'] = $_POST['form_lists']; 281 283 $selected_groups = explode(';*',$_POST['selected_groups']); 282 283 284 foreach ($selected_groups as $group) { 284 285 $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 288 291 $form_data['selected_groups'][] = (object)$group_data; 289 292 }
Note: See TracChangeset
for help on using the changeset viewer.