Plugin Directory

Changeset 3759391


Ignore:
Timestamp:
10/22/2026 06:27:29 AM (2 weeks ago)
Author:
fapi
Message:

Fixed WP Sweep dont delete members

Location:
fapi-member
Files:
484 added
4 edited

Legend:

Unmodified
Added
Removed
  • fapi-member/trunk/fapi-member.php

    r3754041 r3759391  
    1515 * Plugin URI:        https://fapi.cz/
    1616 * Description:       Plugin FAPI pro jednoduchou správu členských sekcí na webu.
    17  * Version:           2.3.0
     17 * Version:           2.3.1
    1818 * Requires at least: 5.9
    1919 * Requires PHP:      8.1
    … …  
    3030require __DIR__ . '/src/Utils/functions.php';
    3131
    32 define('FAPI_MEMBER_PLUGIN_VERSION', '2.3.0');
     32define('FAPI_MEMBER_PLUGIN_VERSION', '2.3.1');
    3333define('FAPI_MEMBER_PLUGIN_PATH', plugin_dir_path(__FILE__));
    3434define('FAPI_MEMBER_PLUGIN_URL', plugin_dir_url(__FILE__));
  • fapi-member/trunk/readme.txt

    r3754041 r3759391  
    66Requires PHP: 8.1
    77License: GPLv2 or later
    8 Stable tag: 2.3.0
     8Stable tag: 2.3.1
    99
    1010Plugin FAPI pro jednoduchou správu členských sekcí na webu.
    … …  
    2626
    2727== Changelog ==
     28
     29= 2.3.0 =
     30* Added Divi5 support
     31* Fixed Gutenberg bug
    2832
    2933= 2.2.38 =
  • fapi-member/trunk/src/Bootstrap.php

    r3754041 r3759391  
    204204        private function addInitHooks(): void
    205205        {
     206                add_filter('wp_sweep_excluded_termids', [$this, 'excludeMemberTermsFromSweep']);
    206207                add_action('init', [$this, 'registerLevelsTaxonomy']);
    207208                add_action('init', [$this, 'registerRoles']);
    … …  
    589590        }
    590591
     592        public function excludeMemberTermsFromSweep(array $excludedTermIds): array
     593        {
     594                $memberTermIds = get_terms([
     595                        'taxonomy' => 'fapi_levels',
     596                        'hide_empty' => false,
     597                        'fields' => 'ids',
     598                ]);
     599
     600                if (is_wp_error($memberTermIds)) {
     601                        return $excludedTermIds;
     602                }
     603
     604                return array_values(array_unique(array_merge(
     605                        $excludedTermIds,
     606                        $memberTermIds,
     607                )));
     608        }
     609
    591610        public function initializeStatisticsIfNeeded(): void
    592611        {
  • fapi-member/trunk/vendor/composer/installed.php

    r3754041 r3759391  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'dc55203e144de83122663f91265ee49ba0534847',
     6        'reference' => '1642babcf421a39acb7489f606f5a5917f1f0cd8',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
    … …  
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'dc55203e144de83122663f91265ee49ba0534847',
     16            'reference' => '1642babcf421a39acb7489f606f5a5917f1f0cd8',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.