Changeset 3461928
- Timestamp:
- 02/15/2026 04:20:57 PM (3 weeks ago)
- Location:
- integration-google-drive
- Files:
-
- 12 edited
- 1 copied
-
tags/1.3.7 (copied) (copied from integration-google-drive/trunk)
-
tags/1.3.7/app/Authorization.php (modified) (1 diff)
-
tags/1.3.7/app/Client.php (modified) (2 diffs)
-
tags/1.3.7/core/config.php (modified) (1 diff)
-
tags/1.3.7/includes/Utils/Helpers.php (modified) (5 diffs)
-
tags/1.3.7/integration-google-drive.php (modified) (1 diff)
-
tags/1.3.7/readme.txt (modified) (2 diffs)
-
trunk/app/Authorization.php (modified) (1 diff)
-
trunk/app/Client.php (modified) (2 diffs)
-
trunk/core/config.php (modified) (1 diff)
-
trunk/includes/Utils/Helpers.php (modified) (5 diffs)
-
trunk/integration-google-drive.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
integration-google-drive/tags/1.3.7/app/Authorization.php
r3403340 r3461928 41 41 42 42 $accessToken = $googleClient->authenticate($code); 43 43 44 if (false === $accessToken) { 44 45 Notices::getInstance()->add([ -
integration-google-drive/tags/1.3.7/app/Client.php
r3457775 r3461928 3 3 namespace CodeConfig\IGD\App; 4 4 5 use function CodeConfig\ccpigd_fs;6 5 use CodeConfig\IGD\Google\Client as GoogleClient; 7 6 use CodeConfig\IGD\Models\Notices; … … 10 9 use Exception; 11 10 use WP_Error; 11 use function CodeConfig\ccpigd_fs; 12 12 defined( 'ABSPATH' ) || exit( 'No direct script access allowed' ); 13 13 class Client { -
integration-google-drive/tags/1.3.7/core/config.php
r3457775 r3461928 8 8 define('CCPIGD_DB_VERSION', '1.0.0'); 9 9 define('CCPIGD_OPTIONS_VERSION', '1.0.0'); 10 define('CCPIGD_VERSION', '1.3. 6');10 define('CCPIGD_VERSION', '1.3.7'); 11 11 12 12 /** -
integration-google-drive/tags/1.3.7/includes/Utils/Helpers.php
r3457775 r3461928 2 2 3 3 namespace CodeConfig\IGD\Utils; 4 5 use function array_key_exists;6 4 7 5 use CodeConfig\IGD\App\App; 8 6 use CodeConfig\IGD\Models\Notices; 9 7 8 use function array_key_exists; 10 9 use function is_array; 11 10 use function is_string; … … 157 156 158 157 $defaultSettings = ccpigdGetDefaultSettings(); 159 160 $validateData = self::sanitizeRecursiveSettings($settings, $defaultSettings, 'encode'); 158 $existingSettings = get_option(CCPIGD_OPTIONS_NAME, []); 159 $validateDefault = self::sanitizeRecursiveSettings($existingSettings, $defaultSettings, 'decode'); 160 161 $validateData = self::sanitizeRecursiveSettings($settings, $validateDefault, 'encode'); 161 162 162 163 return update_option(CCPIGD_OPTIONS_NAME, $validateData); … … 169 170 170 171 if (is_array($value)) { 171 $sanitized[$key] = array_key_exists($key, $settings) && is_array($settings[$key]) ? self::sanitizeRecursiveSettings(wp_parse_args($settings[$key], $value), $value, $sensitive) : $value; 172 173 if (self::isSequentialArray($value) || (empty($value) && self::isSequentialArray($settings[$key]))) { 174 $sanitized[$key] = array_key_exists($key, $settings) && is_array($settings[$key]) 175 ? array_values($settings[$key]) 176 : $value; 177 178 } else { 179 $sanitized[$key] = array_key_exists($key, $settings) && is_array($settings[$key]) ? self::sanitizeRecursiveSettings(wp_parse_args($settings[$key], $value), $value, $sensitive) : $value; 180 } 172 181 } else { 173 182 … … 177 186 } elseif ('appClientSecret' === $key) { 178 187 if ($sensitive === 'encode') { 179 $sanitized[$key] = self::encode($settings[$key] ?? '');188 $sanitized[$key] = (strpos($settings[$key], '******') !== false) ? self::encode($value) : self::encode($settings[$key] ?? ''); 180 189 } elseif ($sensitive === 'mask') { 181 190 $decodedAppSecret = self::decode($settings[$key] ?? ''); … … 196 205 197 206 return $sanitized; 207 } 208 209 private static function isSequentialArray(array $array): bool 210 { 211 return array_keys($array) === range(0, count($array) - 1); 198 212 } 199 213 -
integration-google-drive/tags/1.3.7/integration-google-drive.php
r3457775 r3461928 9 9 * Plugin URI: https://codeconfig.dev/integration-google-drive/ 10 10 * Description: Seamlessly integrate Google Drive with WordPress to embed, share, play, and download documents and media files directly from Google Drive. 11 * Version: 1.3. 611 * Version: 1.3.7 12 12 * Requires at least: 6.2 13 13 * Requires PHP: 7.4 -
integration-google-drive/tags/1.3.7/readme.txt
r3458033 r3461928 1 1 === Integration for Google Drive - Embeds, Gallery, Slider, Media Player, and Media Library Support === 2 Contributors: codeconfig, jakirmithunbd 2 Contributors: codeconfig, jakirmithunbd, freemius 3 3 Tags: google drive, file manager, gallery, media library, embed 4 4 Requires at least: 6.2 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.3. 67 Stable tag: 1.3.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 338 338 339 339 == Changelog == 340 341 = 1.3.7 (15-02-2026) = 342 * Fix: Media Library and integration saving issues 340 343 341 344 = 1.3.6 (10-02-2026) = -
integration-google-drive/trunk/app/Authorization.php
r3403340 r3461928 41 41 42 42 $accessToken = $googleClient->authenticate($code); 43 43 44 if (false === $accessToken) { 44 45 Notices::getInstance()->add([ -
integration-google-drive/trunk/app/Client.php
r3457775 r3461928 3 3 namespace CodeConfig\IGD\App; 4 4 5 use function CodeConfig\ccpigd_fs;6 5 use CodeConfig\IGD\Google\Client as GoogleClient; 7 6 use CodeConfig\IGD\Models\Notices; … … 10 9 use Exception; 11 10 use WP_Error; 11 use function CodeConfig\ccpigd_fs; 12 12 defined( 'ABSPATH' ) || exit( 'No direct script access allowed' ); 13 13 class Client { -
integration-google-drive/trunk/core/config.php
r3457775 r3461928 8 8 define('CCPIGD_DB_VERSION', '1.0.0'); 9 9 define('CCPIGD_OPTIONS_VERSION', '1.0.0'); 10 define('CCPIGD_VERSION', '1.3. 6');10 define('CCPIGD_VERSION', '1.3.7'); 11 11 12 12 /** -
integration-google-drive/trunk/includes/Utils/Helpers.php
r3457775 r3461928 2 2 3 3 namespace CodeConfig\IGD\Utils; 4 5 use function array_key_exists;6 4 7 5 use CodeConfig\IGD\App\App; 8 6 use CodeConfig\IGD\Models\Notices; 9 7 8 use function array_key_exists; 10 9 use function is_array; 11 10 use function is_string; … … 157 156 158 157 $defaultSettings = ccpigdGetDefaultSettings(); 159 160 $validateData = self::sanitizeRecursiveSettings($settings, $defaultSettings, 'encode'); 158 $existingSettings = get_option(CCPIGD_OPTIONS_NAME, []); 159 $validateDefault = self::sanitizeRecursiveSettings($existingSettings, $defaultSettings, 'decode'); 160 161 $validateData = self::sanitizeRecursiveSettings($settings, $validateDefault, 'encode'); 161 162 162 163 return update_option(CCPIGD_OPTIONS_NAME, $validateData); … … 169 170 170 171 if (is_array($value)) { 171 $sanitized[$key] = array_key_exists($key, $settings) && is_array($settings[$key]) ? self::sanitizeRecursiveSettings(wp_parse_args($settings[$key], $value), $value, $sensitive) : $value; 172 173 if (self::isSequentialArray($value) || (empty($value) && self::isSequentialArray($settings[$key]))) { 174 $sanitized[$key] = array_key_exists($key, $settings) && is_array($settings[$key]) 175 ? array_values($settings[$key]) 176 : $value; 177 178 } else { 179 $sanitized[$key] = array_key_exists($key, $settings) && is_array($settings[$key]) ? self::sanitizeRecursiveSettings(wp_parse_args($settings[$key], $value), $value, $sensitive) : $value; 180 } 172 181 } else { 173 182 … … 177 186 } elseif ('appClientSecret' === $key) { 178 187 if ($sensitive === 'encode') { 179 $sanitized[$key] = self::encode($settings[$key] ?? '');188 $sanitized[$key] = (strpos($settings[$key], '******') !== false) ? self::encode($value) : self::encode($settings[$key] ?? ''); 180 189 } elseif ($sensitive === 'mask') { 181 190 $decodedAppSecret = self::decode($settings[$key] ?? ''); … … 196 205 197 206 return $sanitized; 207 } 208 209 private static function isSequentialArray(array $array): bool 210 { 211 return array_keys($array) === range(0, count($array) - 1); 198 212 } 199 213 -
integration-google-drive/trunk/integration-google-drive.php
r3457775 r3461928 9 9 * Plugin URI: https://codeconfig.dev/integration-google-drive/ 10 10 * Description: Seamlessly integrate Google Drive with WordPress to embed, share, play, and download documents and media files directly from Google Drive. 11 * Version: 1.3. 611 * Version: 1.3.7 12 12 * Requires at least: 6.2 13 13 * Requires PHP: 7.4 -
integration-google-drive/trunk/readme.txt
r3458033 r3461928 1 1 === Integration for Google Drive - Embeds, Gallery, Slider, Media Player, and Media Library Support === 2 Contributors: codeconfig, jakirmithunbd 2 Contributors: codeconfig, jakirmithunbd, freemius 3 3 Tags: google drive, file manager, gallery, media library, embed 4 4 Requires at least: 6.2 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.3. 67 Stable tag: 1.3.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 338 338 339 339 == Changelog == 340 341 = 1.3.7 (15-02-2026) = 342 * Fix: Media Library and integration saving issues 340 343 341 344 = 1.3.6 (10-02-2026) =
Note: See TracChangeset
for help on using the changeset viewer.