Changeset 3264791
- Timestamp:
- 04/01/2025 12:36:54 AM (10 months ago)
- Location:
- affiliates-manager/trunk
- Files:
-
- 3 edited
-
boot-strap.php (modified) (2 diffs)
-
classes/ListAffiliatesTable.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
affiliates-manager/trunk/boot-strap.php
r3246199 r3264791 4 4 Plugin URI: https://wpaffiliatemanager.com 5 5 Description: Plugin to recruit, manage, track and pay your affiliates. 6 Version: 2.9.4 46 Version: 2.9.45 7 7 Author: wp.insider, wpaffiliatemgr 8 8 Author URI: https://wpaffiliatemanager.com … … 18 18 $uploadDirInfo = wp_upload_dir(); 19 19 20 define( 'WPAM_VERSION', '2.9.4 4' );20 define( 'WPAM_VERSION', '2.9.45' ); 21 21 define( 'WPAM_DB_VERSION', '1.6.6' ); 22 22 define( 'WPAM_OPTIONS_VERSION', '1.0.7' ); -
affiliates-manager/trunk/classes/ListAffiliatesTable.php
r3028484 r3264791 150 150 $user = get_user_by('email', $aff_email); 151 151 if ($user) { 152 if (!in_array('administrator', $user->roles)) { 152 $delete_wp_user = false; 153 if (in_array('affiliate', $user->roles) && count($user->roles) === 1) { 154 $delete_wp_user = true; 155 } 156 //additional non-required check for security 157 if (in_array('administrator', $user->roles)) { 158 $delete_wp_user = false; 159 } 160 // 161 if($delete_wp_user){ 153 162 wp_delete_user($user->ID); 154 163 } -
affiliates-manager/trunk/readme.txt
r3246199 r3264791 5 5 Requires at least: 3.5 6 6 Tested up to: 6.7 7 Stable tag: 2.9.4 47 Stable tag: 2.9.45 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 195 195 == Changelog == 196 196 197 = 2.9.45 = 198 - Improved the auto affiliate deletion functionality by creating an exception for users with custom roles. 199 197 200 = 2.9.44 = 198 201 - Added support for overriding templates.
Note: See TracChangeset
for help on using the changeset viewer.