Plugin Directory

Changeset 3041506


Ignore:
Timestamp:
02/26/2024 08:13:10 PM (2 years ago)
Author:
keystrokeclick
Message:

v2.1.0

Location:
protect-admin-account/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • protect-admin-account/trunk/includes/paa-options.php

    r2997345 r3041506  
    496496    }
    497497}
     498
     499if (!function_exists('thp_paa_options_submenus')) {
     500    function thp_paa_options_submenus($menu_ord) {
     501        global $submenu;
     502
     503        if (array_key_exists("thp-paa-admin-settings", $submenu)) {
     504            $new_items_up = [];
     505            $new_items_low = [];
     506            $items_count = count($submenu['thp-paa-admin-settings']);
     507            $low_items = [
     508                '21' => 'thp-paa-admin-settings-contact',
     509                '22' => 'thp-paa-admin-settings-affiliation',
     510                '23' => 'thp-paa-admin-settings-wp-support-forum',
     511                '24' => 'thp-paa-admin-settings-pricing'
     512            ];
     513            foreach ($submenu['thp-paa-admin-settings'] as $key => $value) {
     514                if (in_array($value[2], $low_items)) {
     515                    if ($value[2] == 'thp-paa-admin-settings-affiliation') {
     516                        $value[0] = __( "Affiliates", 'protect-admin-account' );
     517                    }
     518                    $new_items_low[array_search ($value[2], $low_items)] = $value;
     519                } else {
     520                    $new_items_up[] = $value;
     521                }
     522            }
     523            ksort($new_items_low);
     524
     525            // Remove the originals
     526            unset($submenu['thp-paa-admin-settings']);
     527
     528            // Add newly items to the list
     529            $submenu['thp-paa-admin-settings'] = [];
     530            $submenu['thp-paa-admin-settings'] += $new_items_up;
     531            $submenu['thp-paa-admin-settings'] += $new_items_low;
     532        }
     533        return $menu_ord;
     534    }
     535
     536    add_filter('custom_menu_order', 'thp_paa_options_submenus');
     537}
  • protect-admin-account/trunk/includes/paa-protection-users.php

    r2941649 r3041506  
    1111        if ($admins && is_array($admins)) {
    1212            foreach ($admins as $admin) {
    13                 if ( $user_obj->ID == $admin ) {
     13                if (isset($user_obj->ID) && ($user_obj->ID == $admin )) {
    1414                    if ( !thp_paa_user_is_activator() ) {
    1515                        $old = get_user_by('id', $user_obj->ID);
  • protect-admin-account/trunk/index.php

    r2997345 r3041506  
    44 * Plugin URI: https://protectadmin.com/plugin/protect-admin-account-pro-wordpress-plugin/
    55 * Description: Protect admin accounts from being deleted or modified by other users.
    6  * Version: 2.0.5
     6 * Version: 2.1.0
    77 * Author: Keystroke Click
    88 * Author URI: https://keystrokeclick.com/
     
    3333                'has_addons'          => false,
    3434                'has_paid_plans'      => true,
    35                 'menu'                => array(
     35                'has_affiliation' => 'selected',
     36                'menu'                => array(
    3637                    'slug'            => 'thp-paa-admin-settings',
    3738                ),
  • protect-admin-account/trunk/languages/protect-admin-account.pot

    r2997345 r3041506  
    1 # Copyright (C) 2023 Keystroke Click
     1# Copyright (C) 2024 Keystroke Click
    22# This file is distributed under the same license as the Protect Admin plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Protect Admin 2.0.5\n"
     5"Project-Id-Version: Protect Admin 2.1.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/protect-admin-account\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-11-12T23:26:40+00:00\n"
     12"POT-Creation-Date: 2024-02-26T20:04:43+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    4343
    4444#: includes/paa-options.php:23
    45 #: index.php:64
     45#: index.php:65
    4646msgid "Settings"
    4747msgstr ""
     
    196196msgstr ""
    197197
     198#: includes/paa-options.php:516
     199msgid "Affiliates"
     200msgstr ""
     201
    198202#: includes/paa-protection-users.php:26
    199203msgid "Sorry, you are not allowed to change this user’s email."
     
    216220
    217221#. translators: %s: is href for pro-version
    218 #: index.php:100
     222#: index.php:101
    219223msgid "There is a new update available for Protect Admin Pro. Please login to <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">your account</a>  to download the latest version."
    220224msgstr ""
  • protect-admin-account/trunk/readme.txt

    r2997345 r3041506  
    44Tags: protect, admin, user account, admin account, prevent admin deletion, prevent user edit
    55Requires at least: 4.7
    6 Tested up to: 6.4.1
     6Tested up to: 6.4.3
    77Requires PHP: 5.3
    8 Stable tag: 2.0.5
     8Stable tag: 2.1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    101101
    102102
     103= 2.1.0 =
     104* Integrated Freemius affiliates system
     105* Compatibility check
     106
    103107= 2.0.5 =
    104108* Fix: PHP Warning for strpos and str_replace functions
Note: See TracChangeset for help on using the changeset viewer.