Changeset 3041506
- Timestamp:
- 02/26/2024 08:13:10 PM (2 years ago)
- Location:
- protect-admin-account/trunk
- Files:
-
- 5 edited
-
includes/paa-options.php (modified) (1 diff)
-
includes/paa-protection-users.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
languages/protect-admin-account.pot (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
protect-admin-account/trunk/includes/paa-options.php
r2997345 r3041506 496 496 } 497 497 } 498 499 if (!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 11 11 if ($admins && is_array($admins)) { 12 12 foreach ($admins as $admin) { 13 if ( $user_obj->ID == $admin) {13 if (isset($user_obj->ID) && ($user_obj->ID == $admin )) { 14 14 if ( !thp_paa_user_is_activator() ) { 15 15 $old = get_user_by('id', $user_obj->ID); -
protect-admin-account/trunk/index.php
r2997345 r3041506 4 4 * Plugin URI: https://protectadmin.com/plugin/protect-admin-account-pro-wordpress-plugin/ 5 5 * Description: Protect admin accounts from being deleted or modified by other users. 6 * Version: 2. 0.56 * Version: 2.1.0 7 7 * Author: Keystroke Click 8 8 * Author URI: https://keystrokeclick.com/ … … 33 33 'has_addons' => false, 34 34 'has_paid_plans' => true, 35 'menu' => array( 35 'has_affiliation' => 'selected', 36 'menu' => array( 36 37 'slug' => 'thp-paa-admin-settings', 37 38 ), -
protect-admin-account/trunk/languages/protect-admin-account.pot
r2997345 r3041506 1 # Copyright (C) 202 3Keystroke Click1 # Copyright (C) 2024 Keystroke Click 2 2 # This file is distributed under the same license as the Protect Admin plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Protect Admin 2. 0.5\n"5 "Project-Id-Version: Protect Admin 2.1.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/protect-admin-account\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-11-12T23:26:40+00:00\n"12 "POT-Creation-Date: 2024-02-26T20:04:43+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 43 43 44 44 #: includes/paa-options.php:23 45 #: index.php:6 445 #: index.php:65 46 46 msgid "Settings" 47 47 msgstr "" … … 196 196 msgstr "" 197 197 198 #: includes/paa-options.php:516 199 msgid "Affiliates" 200 msgstr "" 201 198 202 #: includes/paa-protection-users.php:26 199 203 msgid "Sorry, you are not allowed to change this user’s email." … … 216 220 217 221 #. translators: %s: is href for pro-version 218 #: index.php:10 0222 #: index.php:101 219 223 msgid "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." 220 224 msgstr "" -
protect-admin-account/trunk/readme.txt
r2997345 r3041506 4 4 Tags: protect, admin, user account, admin account, prevent admin deletion, prevent user edit 5 5 Requires at least: 4.7 6 Tested up to: 6.4. 16 Tested up to: 6.4.3 7 7 Requires PHP: 5.3 8 Stable tag: 2. 0.58 Stable tag: 2.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 101 101 102 102 103 = 2.1.0 = 104 * Integrated Freemius affiliates system 105 * Compatibility check 106 103 107 = 2.0.5 = 104 108 * Fix: PHP Warning for strpos and str_replace functions
Note: See TracChangeset
for help on using the changeset viewer.