Changeset 3300593
- Timestamp:
- 05/26/2025 10:29:35 AM (8 months ago)
- Location:
- download-monitor
- Files:
-
- 18 edited
- 1 copied
-
tags/5.0.24 (copied) (copied from download-monitor/trunk)
-
tags/5.0.24/changelog.txt (modified) (1 diff)
-
tags/5.0.24/download-monitor.php (modified) (2 diffs)
-
tags/5.0.24/readme.txt (modified) (2 diffs)
-
tags/5.0.24/src/DLM.php (modified) (1 diff)
-
tags/5.0.24/src/DownloadHandler.php (modified) (1 diff)
-
tags/5.0.24/src/class-dlm-cron-jobs.php (modified) (2 diffs)
-
tags/5.0.24/vendor/autoload.php (modified) (1 diff)
-
tags/5.0.24/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
tags/5.0.24/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/download-monitor.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/DLM.php (modified) (1 diff)
-
trunk/src/DownloadHandler.php (modified) (1 diff)
-
trunk/src/class-dlm-cron-jobs.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
download-monitor/tags/5.0.24/changelog.txt
r3278759 r3300593 1 = 5.0.24 - 26.05.2025 - 2 Added: New filters to allow preventing session initialization when necessary. 3 Fixed: Issue causing license deactivation during scheduled weekly checks. 4 1 5 = 5.0.23 - 22.04.2025 - 2 6 Fixed: License was being deactivated for single product licenses. -
download-monitor/tags/5.0.24/download-monitor.php
r3278759 r3300593 4 4 Plugin URI: https://www.download-monitor.com 5 5 Description: A full solution for managing and selling downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site. 6 Version: 5.0.2 36 Version: 5.0.24 7 7 Author: WPChill 8 8 Author URI: https://wpchill.com … … 35 35 36 36 // Define DLM Version 37 define('DLM_VERSION', '5.0.2 3');37 define('DLM_VERSION', '5.0.24'); 38 38 define('DLM_UPGRADER_VERSION', '4.6.0'); 39 39 -
download-monitor/tags/5.0.24/readme.txt
r3278759 r3300593 4 4 Requires at least: 5.5 5 5 Tested up to: 6.8 6 Stable tag: 5.0.2 36 Stable tag: 5.0.24 7 7 License: GPLv3 8 8 Requires PHP: 7.6 … … 115 115 116 116 == Changelog == 117 = 5.0.24 - 26.05.2025 - 118 Added: New filters to allow preventing session initialization when necessary. 119 Fixed: Issue causing license deactivation during scheduled weekly checks. 120 117 121 = 5.0.23 - 22.04.2025 - 118 122 Fixed: License was being deactivated for single product licenses. -
download-monitor/tags/5.0.24/src/DLM.php
r3257089 r3300593 979 979 public function set_no_access_session() { 980 980 $no_access_page = get_option( 'dlm_no_access_page', 0 ); 981 if ( $no_access_page&& ! isset( $_SESSION ) ) {981 if ( apply_filters( 'dlm_set_no_access_session', $no_access_page ) && ! isset( $_SESSION ) ) { 982 982 session_start(); 983 983 } -
download-monitor/tags/5.0.24/src/DownloadHandler.php
r3198966 r3300593 585 585 $modal = get_option( 'dlm_no_access_modal', false ); 586 586 // Start session if not started 587 if ( ( '' === session_id() || ! isset( $_SESSION ) ) && ! $modal ) {587 if ( apply_filters( 'dlm_set_no_access_download_session', true ) && ( '' === session_id() || ! isset( $_SESSION ) ) && ! $modal ) { 588 588 session_start(); 589 589 } 590 590 591 // Check Access. 591 592 if ( ! apply_filters( 'dlm_can_download', true, $download, $version, $_REQUEST, $this->check_for_xhr() ) ) { -
download-monitor/tags/5.0.24/src/class-dlm-cron-jobs.php
r3278759 r3300593 172 172 * @since 4.8.6 173 173 */ 174 private function check_license( $license, $installed_extensions, $save_license = true ){ 175 $store_url = DLM_Product::STORE_URL . '?wc-api='; 176 $api_product_ids = implode( ',', $installed_extensions ); 177 if ( empty( $api_product_ids ) ) { 178 // Add default to DLM PRO, as it will be present in every package. 179 // @todo: This should be removed when we have a better way to handle this. 180 $api_product_ids = 'dlm-pro'; 181 } 174 private function check_license( $license, $installed_extensions, $save_license = true ) { 175 $store_url = DLM_Product::STORE_URL . '?wc-api='; 176 182 177 $api_request = wp_remote_get( 183 178 $store_url . DLM_Product::ENDPOINT_STATUS_CHECK . '&' . http_build_query( … … 185 180 'email' => $license['email'], 186 181 'license_key' => $license['license_key'], 187 'api_product_id' => $api_product_ids,182 'api_product_id' => 'dlm-pro', 188 183 'instance' => site_url(), 189 184 'request' => 'status_check', -
download-monitor/tags/5.0.24/vendor/autoload.php
r3198966 r3300593 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
download-monitor/tags/5.0.24/vendor/composer/InstalledVersions.php
r3257089 r3300593 27 27 class InstalledVersions 28 28 { 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 29 35 /** 30 36 * @var mixed[]|null … … 324 330 325 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 341 } 342 343 /** 326 344 * @return array[] 327 345 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> … … 337 355 338 356 if (self::$canGetVendors) { 339 $selfDir = s trtr(__DIR__, '\\', '/');357 $selfDir = self::getSelfDir(); 340 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 359 $vendorDir = strtr($vendorDir, '\\', '/'); -
download-monitor/tags/5.0.24/vendor/composer/installed.php
r3278759 r3300593 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' f9826bb0e7b84f5c0fbd7aaf855500877f606db3',6 'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' f9826bb0e7b84f5c0fbd7aaf855500877f606db3',16 'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
download-monitor/trunk/changelog.txt
r3278759 r3300593 1 = 5.0.24 - 26.05.2025 - 2 Added: New filters to allow preventing session initialization when necessary. 3 Fixed: Issue causing license deactivation during scheduled weekly checks. 4 1 5 = 5.0.23 - 22.04.2025 - 2 6 Fixed: License was being deactivated for single product licenses. -
download-monitor/trunk/download-monitor.php
r3278759 r3300593 4 4 Plugin URI: https://www.download-monitor.com 5 5 Description: A full solution for managing and selling downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site. 6 Version: 5.0.2 36 Version: 5.0.24 7 7 Author: WPChill 8 8 Author URI: https://wpchill.com … … 35 35 36 36 // Define DLM Version 37 define('DLM_VERSION', '5.0.2 3');37 define('DLM_VERSION', '5.0.24'); 38 38 define('DLM_UPGRADER_VERSION', '4.6.0'); 39 39 -
download-monitor/trunk/readme.txt
r3278759 r3300593 4 4 Requires at least: 5.5 5 5 Tested up to: 6.8 6 Stable tag: 5.0.2 36 Stable tag: 5.0.24 7 7 License: GPLv3 8 8 Requires PHP: 7.6 … … 115 115 116 116 == Changelog == 117 = 5.0.24 - 26.05.2025 - 118 Added: New filters to allow preventing session initialization when necessary. 119 Fixed: Issue causing license deactivation during scheduled weekly checks. 120 117 121 = 5.0.23 - 22.04.2025 - 118 122 Fixed: License was being deactivated for single product licenses. -
download-monitor/trunk/src/DLM.php
r3257089 r3300593 979 979 public function set_no_access_session() { 980 980 $no_access_page = get_option( 'dlm_no_access_page', 0 ); 981 if ( $no_access_page&& ! isset( $_SESSION ) ) {981 if ( apply_filters( 'dlm_set_no_access_session', $no_access_page ) && ! isset( $_SESSION ) ) { 982 982 session_start(); 983 983 } -
download-monitor/trunk/src/DownloadHandler.php
r3198966 r3300593 585 585 $modal = get_option( 'dlm_no_access_modal', false ); 586 586 // Start session if not started 587 if ( ( '' === session_id() || ! isset( $_SESSION ) ) && ! $modal ) {587 if ( apply_filters( 'dlm_set_no_access_download_session', true ) && ( '' === session_id() || ! isset( $_SESSION ) ) && ! $modal ) { 588 588 session_start(); 589 589 } 590 590 591 // Check Access. 591 592 if ( ! apply_filters( 'dlm_can_download', true, $download, $version, $_REQUEST, $this->check_for_xhr() ) ) { -
download-monitor/trunk/src/class-dlm-cron-jobs.php
r3278759 r3300593 172 172 * @since 4.8.6 173 173 */ 174 private function check_license( $license, $installed_extensions, $save_license = true ){ 175 $store_url = DLM_Product::STORE_URL . '?wc-api='; 176 $api_product_ids = implode( ',', $installed_extensions ); 177 if ( empty( $api_product_ids ) ) { 178 // Add default to DLM PRO, as it will be present in every package. 179 // @todo: This should be removed when we have a better way to handle this. 180 $api_product_ids = 'dlm-pro'; 181 } 174 private function check_license( $license, $installed_extensions, $save_license = true ) { 175 $store_url = DLM_Product::STORE_URL . '?wc-api='; 176 182 177 $api_request = wp_remote_get( 183 178 $store_url . DLM_Product::ENDPOINT_STATUS_CHECK . '&' . http_build_query( … … 185 180 'email' => $license['email'], 186 181 'license_key' => $license['license_key'], 187 'api_product_id' => $api_product_ids,182 'api_product_id' => 'dlm-pro', 188 183 'instance' => site_url(), 189 184 'request' => 'status_check', -
download-monitor/trunk/vendor/autoload.php
r3198966 r3300593 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
download-monitor/trunk/vendor/composer/InstalledVersions.php
r3257089 r3300593 27 27 class InstalledVersions 28 28 { 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 29 35 /** 30 36 * @var mixed[]|null … … 324 330 325 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 341 } 342 343 /** 326 344 * @return array[] 327 345 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> … … 337 355 338 356 if (self::$canGetVendors) { 339 $selfDir = s trtr(__DIR__, '\\', '/');357 $selfDir = self::getSelfDir(); 340 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 359 $vendorDir = strtr($vendorDir, '\\', '/'); -
download-monitor/trunk/vendor/composer/installed.php
r3278759 r3300593 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' f9826bb0e7b84f5c0fbd7aaf855500877f606db3',6 'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' f9826bb0e7b84f5c0fbd7aaf855500877f606db3',16 'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.