Changeset 3496008
- Timestamp:
- 03/31/2026 09:13:49 PM (17 hours ago)
- Location:
- rootscope-remote-site-manager
- Files:
-
- 16 added
- 3 edited
-
tags/1.1.2 (added)
-
tags/1.1.2/admin (added)
-
tags/1.1.2/admin/settings-page.php (added)
-
tags/1.1.2/includes (added)
-
tags/1.1.2/includes/class-api-client.php (added)
-
tags/1.1.2/includes/class-cron-collector.php (added)
-
tags/1.1.2/includes/class-data-collector.php (added)
-
tags/1.1.2/includes/class-database-collector.php (added)
-
tags/1.1.2/includes/class-error-collector.php (added)
-
tags/1.1.2/includes/class-login-handler.php (added)
-
tags/1.1.2/includes/class-pii-sanitizer.php (added)
-
tags/1.1.2/includes/class-settings.php (added)
-
tags/1.1.2/includes/class-update-handler.php (added)
-
tags/1.1.2/readme.txt (added)
-
tags/1.1.2/rootscope-remote-site-manager.php (added)
-
tags/1.1.2/uninstall.php (added)
-
trunk/includes/class-settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/rootscope-remote-site-manager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rootscope-remote-site-manager/trunk/includes/class-settings.php
r3495889 r3496008 220 220 } 221 221 222 // Store the returned credentials 222 // Store the returned credentials. 223 // We bypass update_option for api_secret because WordPress calls 224 // sanitize_option twice when the option doesn't exist yet 225 // (once in update_option, once in the internal add_option fallback), 226 // which double-encrypts the value. 223 227 update_option('rsadmin_api_key', sanitize_text_field($result['api_key']), false); 224 update_option('rsadmin_api_secret', self::encrypt_api_secret($result['api_secret']), false); 228 229 delete_option('rsadmin_api_secret'); 230 global $wpdb; 231 $wpdb->replace($wpdb->options, [ 232 'option_name' => 'rsadmin_api_secret', 233 'option_value' => self::encrypt_api_secret(sanitize_text_field($result['api_secret'])), 234 'autoload' => 'off', 235 ]); 225 236 226 237 if (isset($result['site_id'])) { 227 238 self::set_site_id((int) $result['site_id']); 239 } 240 241 // Auto-select the first administrator for one-click login 242 if (self::get_login_user_id() === 0) { 243 $admins = get_users(['role' => 'administrator', 'number' => 1, 'orderby' => 'ID', 'order' => 'ASC']); 244 if (!empty($admins)) { 245 update_option('rsadmin_login_user_id', $admins[0]->ID, true); 246 } 228 247 } 229 248 -
rootscope-remote-site-manager/trunk/readme.txt
r3495889 r3496008 4 4 Requires at least: 6.2 5 5 Tested up to: 6.9 6 Stable tag: 1.1. 16 Stable tag: 1.1.2 7 7 Requires PHP: 8.0 8 8 License: GPLv2 or later … … 66 66 67 67 == Changelog == 68 = 1.1.2 = 69 * Fixed api secret double-encryption when option didn't exist 70 * Preselect first admin account by default 68 71 69 72 = 1.1.1 = -
rootscope-remote-site-manager/trunk/rootscope-remote-site-manager.php
r3495889 r3496008 4 4 * Plugin URI: https://wp-admin.online 5 5 * Description: Connect your WordPress site to Rootscope Remote Site Manager dashboard for centralized management 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Author: Rootscope 8 8 * Author URI: https://rootscope.dev … … 16 16 defined('ABSPATH') || exit; 17 17 18 define('RSADMIN_CONNECTOR_VERSION', '1.1. 1');18 define('RSADMIN_CONNECTOR_VERSION', '1.1.2'); 19 19 define('RSADMIN_CONNECTOR_PATH', plugin_dir_path(__FILE__)); 20 20 define('RSADMIN_CONNECTOR_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.