Changeset 2247605
- Timestamp:
- 02/20/2020 02:06:22 PM (6 years ago)
- Location:
- sendpress/trunk
- Files:
-
- 4 edited
-
classes/class-sendpress-ajax-loader.php (modified) (1 diff)
-
classes/class-sendpress-data.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sendpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendpress/trunk/classes/class-sendpress-ajax-loader.php
r2223857 r2247605 355 355 $load = SendPress_Option::get( 'sync-per-call', 250 ); 356 356 357 $custom = apply_filters('spnl-role-sync-get-user-args', false , $listid , $offset _for_this_run , $number_to_sync_at_once, $role );357 $custom = apply_filters('spnl-role-sync-get-user-args', false , $listid , $offset , $load , $role ); 358 358 if($custom !== false){ 359 359 $blogusers = get_users( $custom ); -
sendpress/trunk/classes/class-sendpress-data.php
r2223857 r2247605 1003 1003 $wpdb->update($table , array('firstname' => $values['firstname'] , 'lastname'=>$values['lastname'], 'wp_user_id'=> $wp_user_id ), array( 'subscriberID' => $current_email ) ); 1004 1004 } else { 1005 //Add New 1006 $q = "INSERT INTO $table (email,wp_user_id,identity_key,join_date,firstname,lastname) VALUES (%s,%d,%s,%s,%s,%s) ON DUPLICATE KEY UPDATE wp_user_id=%d,firstname=%s,lastname=%s "; 1007 $q = $wpdb->prepare($q,$values['email'],$wp_user_id,$key,date('Y-m-d H:i:s'),$values['firstname'],$values['lastname'],$wp_user_id,$values['firstname'],$values['lastname']); 1008 $result = $wpdb->query($q); 1005 $current_sid = $wpdb->get_var( $wpdb->prepare("SELECT subscriberID FROM $table WHERE wp_user_id = %d", $wp_user_id) ); 1006 if( $current_sid !== null ){ 1007 $wpdb->update($table , array('firstname' => $values['firstname'] , 'lastname'=>$values['lastname'], 'email'=> $values['email'] ), array( 'subscriberID' => $current_sid ) ); 1008 } else { 1009 //Add New 1010 $q = "INSERT INTO $table (email,wp_user_id,identity_key,join_date,firstname,lastname) VALUES (%s,%d,%s,%s,%s,%s) ON DUPLICATE KEY UPDATE wp_user_id=%d,firstname=%s,lastname=%s "; 1011 $q = $wpdb->prepare($q, $values['email'], $wp_user_id, $key, date('Y-m-d H:i:s'), $values['firstname'], $values['lastname'], $wp_user_id, $values['firstname'], $values['lastname']); 1012 $result = $wpdb->query($q); 1013 } 1009 1014 } 1010 1015 //} -
sendpress/trunk/readme.txt
r2223857 r2247605 5 5 Requires at least: 4.4 6 6 Tested up to: 5.3.2 7 Stable tag: 1.20. 1.77 Stable tag: 1.20.2.20 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 119 119 Previous releases can be downloaded from [GitHub](https://github.com/brewlabs/sendpress/releases) 120 120 121 = 1.20.2.20 - 2020.2.20 = 122 * fix list sync when user changes email 123 121 124 = 1.20.1.7 - 2020.1.7 = 122 125 * update sync to use custom field on user -
sendpress/trunk/sendpress.php
r2223857 r2247605 2 2 /* 3 3 Plugin Name: SendPress Newsletters 4 Version: 1.20. 1.74 Version: 1.20.2.20 5 5 Plugin URI: https://sendpress.com 6 6 Description: Easy to manage Newsletters for WordPress. … … 20 20 define( 'SENDPRESS_API_VERSION', 1 ); 21 21 define( 'SENDPRESS_MINIMUM_WP_VERSION', '3.6' ); 22 define( 'SENDPRESS_VERSION', '1.20. 1.7' );22 define( 'SENDPRESS_VERSION', '1.20.2.20' ); 23 23 define( 'SENDPRESS_URL', plugin_dir_url( __FILE__ ) ); 24 24 define( 'SENDPRESS_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.