Plugin Directory

Changeset 3264791


Ignore:
Timestamp:
04/01/2025 12:36:54 AM (10 months ago)
Author:
affmngr
Message:

.2.9.45 commit

Location:
affiliates-manager/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • affiliates-manager/trunk/boot-strap.php

    r3246199 r3264791  
    44Plugin URI: https://wpaffiliatemanager.com
    55Description: Plugin to recruit, manage, track and pay your affiliates.
    6 Version: 2.9.44
     6Version: 2.9.45
    77Author: wp.insider, wpaffiliatemgr
    88Author URI: https://wpaffiliatemanager.com
     
    1818$uploadDirInfo = wp_upload_dir();
    1919
    20 define( 'WPAM_VERSION', '2.9.44' );
     20define( 'WPAM_VERSION', '2.9.45' );
    2121define( 'WPAM_DB_VERSION', '1.6.6' );
    2222define( 'WPAM_OPTIONS_VERSION', '1.0.7' );
  • affiliates-manager/trunk/classes/ListAffiliatesTable.php

    r3028484 r3264791  
    150150                    $user = get_user_by('email', $aff_email);
    151151                    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){
    153162                            wp_delete_user($user->ID);
    154163                        }
  • affiliates-manager/trunk/readme.txt

    r3246199 r3264791  
    55Requires at least: 3.5
    66Tested up to: 6.7
    7 Stable tag: 2.9.44
     7Stable tag: 2.9.45
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    195195== Changelog ==
    196196
     197= 2.9.45 =
     198- Improved the auto affiliate deletion functionality by creating an exception for users with custom roles.
     199
    197200= 2.9.44 =
    198201- Added support for overriding templates.
Note: See TracChangeset for help on using the changeset viewer.