Changeset 3464398
- Timestamp:
- 02/18/2026 02:15:27 PM (5 weeks ago)
- Location:
- official-mailerlite-sign-up-forms
- Files:
-
- 10 edited
- 1 copied
-
tags/1.7.20 (copied) (copied from official-mailerlite-sign-up-forms/trunk)
-
tags/1.7.20/mailerlite.php (modified) (2 diffs)
-
tags/1.7.20/readme.txt (modified) (2 diffs)
-
tags/1.7.20/src/Admin/Views/EditCustomView.php (modified) (1 diff)
-
tags/1.7.20/src/Admin/Views/GroupsView.php (modified) (2 diffs)
-
tags/1.7.20/src/Controllers/AdminController.php (modified) (1 diff)
-
trunk/mailerlite.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Admin/Views/EditCustomView.php (modified) (1 diff)
-
trunk/src/Admin/Views/GroupsView.php (modified) (2 diffs)
-
trunk/src/Controllers/AdminController.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
official-mailerlite-sign-up-forms/tags/1.7.20/mailerlite.php
r3463482 r3464398 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. 196 * Version: 1.7.20 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. 19' );37 define( 'MAILERLITE_VERSION', '1.7.20' ); 38 38 39 39 define( 'MAILERLITE_PHP_VERSION', '7.2.5' ); -
official-mailerlite-sign-up-forms/tags/1.7.20/readme.txt
r3463482 r3464398 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 1.7. 198 Stable tag: 1.7.20 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.20 = 133 * Bug fixes & improvements 134 132 135 = 1.7.19 = 133 136 * Security fixes -
official-mailerlite-sign-up-forms/tags/1.7.20/src/Admin/Views/EditCustomView.php
r3037689 r3464398 455 455 body: new URLSearchParams({ 456 456 action: 'mailerlite_get_more_groups', offset: groupsElement.dataset.offset, 457 form_id: <?php echo $form_id; ?>, 457 458 ml_nonce: '<?php echo wp_create_nonce( 'mailerlite_load_more_groups' );?>' 458 459 }) -
official-mailerlite-sign-up-forms/tags/1.7.20/src/Admin/Views/GroupsView.php
r2657193 r3464398 35 35 <?php 36 36 /** @var MailerLiteGroup $group */ 37 $lists = []; 38 39 if ($form) { 40 $lists = $form->data['lists']; 41 } 37 42 foreach ( $groups as $group ) { ?> 38 43 <tr> … … 44 49 value="<?php echo $group->id; ?>"<?php echo in_array( $group-> 45 50 id, 46 $ form->data['lists']) ? ' checked="checked"' : ''; ?>>51 $lists ) ? ' checked="checked"' : ''; ?>> 47 52 </th> 48 53 <td> -
official-mailerlite-sign-up-forms/tags/1.7.20/src/Controllers/AdminController.php
r3463482 r3464398 419 419 check_admin_referer( 'mailerlite_load_more_groups', 'ml_nonce' ); 420 420 421 $form_id = absint( $_POST['form_id'] ); 422 $offset = absint( $_POST['offset'] ); 423 424 $query = $wpdb->prepare( 425 "SELECT * 421 $form_id = absint( isset( $_POST['form_id'] ) ? $_POST['form_id'] : 0 ); 422 $offset = absint( isset( $_POST['offset'] ) ? $_POST['offset'] : 0 ); 423 424 $form = null; 425 $lists = []; 426 427 if ($form_id > 0) { 428 $query = $wpdb->prepare( 429 "SELECT * 426 430 FROM {$wpdb->base_prefix}mailerlite_forms 427 431 WHERE id=%d", 428 $form_id 429 ); 430 431 $form = $wpdb->get_row($query); 432 433 $form->data = unserialize( $form->data ); 434 435 $ML_Groups = new PlatformAPI( self::apiKey() ); 436 437 $lists = $form->data['lists']; 432 $form_id 433 ); 434 435 $form = $wpdb->get_row($query); 436 437 438 if ($form) { 439 $form->data = unserialize($form->data); 440 441 $lists = $form->data['lists']; 442 } 443 } 444 445 $ML_Groups = new PlatformAPI(self::apiKey()); 438 446 439 447 $groups_from_ml_extended = $ML_Groups->getMoreGroups(self::FIRST_GROUP_LOAD, $offset); -
official-mailerlite-sign-up-forms/trunk/mailerlite.php
r3463482 r3464398 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. 196 * Version: 1.7.20 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. 19' );37 define( 'MAILERLITE_VERSION', '1.7.20' ); 38 38 39 39 define( 'MAILERLITE_PHP_VERSION', '7.2.5' ); -
official-mailerlite-sign-up-forms/trunk/readme.txt
r3463482 r3464398 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 1.7. 198 Stable tag: 1.7.20 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.20 = 133 * Bug fixes & improvements 134 132 135 = 1.7.19 = 133 136 * Security fixes -
official-mailerlite-sign-up-forms/trunk/src/Admin/Views/EditCustomView.php
r3037689 r3464398 455 455 body: new URLSearchParams({ 456 456 action: 'mailerlite_get_more_groups', offset: groupsElement.dataset.offset, 457 form_id: <?php echo $form_id; ?>, 457 458 ml_nonce: '<?php echo wp_create_nonce( 'mailerlite_load_more_groups' );?>' 458 459 }) -
official-mailerlite-sign-up-forms/trunk/src/Admin/Views/GroupsView.php
r2657193 r3464398 35 35 <?php 36 36 /** @var MailerLiteGroup $group */ 37 $lists = []; 38 39 if ($form) { 40 $lists = $form->data['lists']; 41 } 37 42 foreach ( $groups as $group ) { ?> 38 43 <tr> … … 44 49 value="<?php echo $group->id; ?>"<?php echo in_array( $group-> 45 50 id, 46 $ form->data['lists']) ? ' checked="checked"' : ''; ?>>51 $lists ) ? ' checked="checked"' : ''; ?>> 47 52 </th> 48 53 <td> -
official-mailerlite-sign-up-forms/trunk/src/Controllers/AdminController.php
r3463482 r3464398 419 419 check_admin_referer( 'mailerlite_load_more_groups', 'ml_nonce' ); 420 420 421 $form_id = absint( $_POST['form_id'] ); 422 $offset = absint( $_POST['offset'] ); 423 424 $query = $wpdb->prepare( 425 "SELECT * 421 $form_id = absint( isset( $_POST['form_id'] ) ? $_POST['form_id'] : 0 ); 422 $offset = absint( isset( $_POST['offset'] ) ? $_POST['offset'] : 0 ); 423 424 $form = null; 425 $lists = []; 426 427 if ($form_id > 0) { 428 $query = $wpdb->prepare( 429 "SELECT * 426 430 FROM {$wpdb->base_prefix}mailerlite_forms 427 431 WHERE id=%d", 428 $form_id 429 ); 430 431 $form = $wpdb->get_row($query); 432 433 $form->data = unserialize( $form->data ); 434 435 $ML_Groups = new PlatformAPI( self::apiKey() ); 436 437 $lists = $form->data['lists']; 432 $form_id 433 ); 434 435 $form = $wpdb->get_row($query); 436 437 438 if ($form) { 439 $form->data = unserialize($form->data); 440 441 $lists = $form->data['lists']; 442 } 443 } 444 445 $ML_Groups = new PlatformAPI(self::apiKey()); 438 446 439 447 $groups_from_ml_extended = $ML_Groups->getMoreGroups(self::FIRST_GROUP_LOAD, $offset);
Note: See TracChangeset
for help on using the changeset viewer.