Plugin Directory

Changeset 3300593


Ignore:
Timestamp:
05/26/2025 10:29:35 AM (8 months ago)
Author:
wpchill
Message:

Update to version 5.0.24 from GitHub

Location:
download-monitor
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • download-monitor/tags/5.0.24/changelog.txt

    r3278759 r3300593  
     1= 5.0.24 - 26.05.2025 -
     2Added: New filters to allow preventing session initialization when necessary.
     3Fixed: Issue causing license deactivation during scheduled weekly checks.
     4
    15= 5.0.23 - 22.04.2025 -
    26Fixed: License was being deactivated for single product licenses.
  • download-monitor/tags/5.0.24/download-monitor.php

    r3278759 r3300593  
    44    Plugin URI: https://www.download-monitor.com
    55    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.23
     6    Version: 5.0.24
    77    Author: WPChill
    88    Author URI: https://wpchill.com
     
    3535
    3636// Define DLM Version
    37 define('DLM_VERSION', '5.0.23');
     37define('DLM_VERSION', '5.0.24');
    3838define('DLM_UPGRADER_VERSION', '4.6.0');
    3939
  • download-monitor/tags/5.0.24/readme.txt

    r3278759 r3300593  
    44Requires at least: 5.5 
    55Tested up to: 6.8 
    6 Stable tag: 5.0.23
     6Stable tag: 5.0.24
    77License: GPLv3 
    88Requires PHP: 7.6 
     
    115115
    116116== Changelog ==
     117= 5.0.24 - 26.05.2025 -
     118Added: New filters to allow preventing session initialization when necessary.
     119Fixed: Issue causing license deactivation during scheduled weekly checks.
     120
    117121= 5.0.23 - 22.04.2025 -
    118122Fixed: License was being deactivated for single product licenses.
  • download-monitor/tags/5.0.24/src/DLM.php

    r3257089 r3300593  
    979979    public function set_no_access_session() {
    980980        $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 ) ) {
    982982            session_start();
    983983        }
  • download-monitor/tags/5.0.24/src/DownloadHandler.php

    r3198966 r3300593  
    585585            $modal = get_option( 'dlm_no_access_modal', false );
    586586            // 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 ) {
    588588                session_start();
    589589            }
     590
    590591            // Check Access.
    591592            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  
    172172     * @since 4.8.6
    173173     */
    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
    182177        $api_request = wp_remote_get(
    183178            $store_url . DLM_Product::ENDPOINT_STATUS_CHECK . '&' . http_build_query(
     
    185180                    'email'          => $license['email'],
    186181                    'license_key'    => $license['license_key'],
    187                     'api_product_id' => $api_product_ids,
     182                    'api_product_id' => 'dlm-pro',
    188183                    'instance'       => site_url(),
    189184                    'request'        => 'status_check',
  • download-monitor/tags/5.0.24/vendor/autoload.php

    r3198966 r3300593  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
  • download-monitor/tags/5.0.24/vendor/composer/InstalledVersions.php

    r3257089 r3300593  
    2727class InstalledVersions
    2828{
     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
    2935    /**
    3036     * @var mixed[]|null
     
    324330
    325331    /**
     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    /**
    326344     * @return array[]
    327345     * @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[]}>}>
     
    337355
    338356        if (self::$canGetVendors) {
    339             $selfDir = strtr(__DIR__, '\\', '/');
     357            $selfDir = self::getSelfDir();
    340358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    341359                $vendorDir = strtr($vendorDir, '\\', '/');
  • download-monitor/tags/5.0.24/vendor/composer/installed.php

    r3278759 r3300593  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'f9826bb0e7b84f5c0fbd7aaf855500877f606db3',
     6        'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'f9826bb0e7b84f5c0fbd7aaf855500877f606db3',
     16            'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • download-monitor/trunk/changelog.txt

    r3278759 r3300593  
     1= 5.0.24 - 26.05.2025 -
     2Added: New filters to allow preventing session initialization when necessary.
     3Fixed: Issue causing license deactivation during scheduled weekly checks.
     4
    15= 5.0.23 - 22.04.2025 -
    26Fixed: License was being deactivated for single product licenses.
  • download-monitor/trunk/download-monitor.php

    r3278759 r3300593  
    44    Plugin URI: https://www.download-monitor.com
    55    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.23
     6    Version: 5.0.24
    77    Author: WPChill
    88    Author URI: https://wpchill.com
     
    3535
    3636// Define DLM Version
    37 define('DLM_VERSION', '5.0.23');
     37define('DLM_VERSION', '5.0.24');
    3838define('DLM_UPGRADER_VERSION', '4.6.0');
    3939
  • download-monitor/trunk/readme.txt

    r3278759 r3300593  
    44Requires at least: 5.5 
    55Tested up to: 6.8 
    6 Stable tag: 5.0.23
     6Stable tag: 5.0.24
    77License: GPLv3 
    88Requires PHP: 7.6 
     
    115115
    116116== Changelog ==
     117= 5.0.24 - 26.05.2025 -
     118Added: New filters to allow preventing session initialization when necessary.
     119Fixed: Issue causing license deactivation during scheduled weekly checks.
     120
    117121= 5.0.23 - 22.04.2025 -
    118122Fixed: License was being deactivated for single product licenses.
  • download-monitor/trunk/src/DLM.php

    r3257089 r3300593  
    979979    public function set_no_access_session() {
    980980        $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 ) ) {
    982982            session_start();
    983983        }
  • download-monitor/trunk/src/DownloadHandler.php

    r3198966 r3300593  
    585585            $modal = get_option( 'dlm_no_access_modal', false );
    586586            // 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 ) {
    588588                session_start();
    589589            }
     590
    590591            // Check Access.
    591592            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  
    172172     * @since 4.8.6
    173173     */
    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
    182177        $api_request = wp_remote_get(
    183178            $store_url . DLM_Product::ENDPOINT_STATUS_CHECK . '&' . http_build_query(
     
    185180                    'email'          => $license['email'],
    186181                    'license_key'    => $license['license_key'],
    187                     'api_product_id' => $api_product_ids,
     182                    'api_product_id' => 'dlm-pro',
    188183                    'instance'       => site_url(),
    189184                    'request'        => 'status_check',
  • download-monitor/trunk/vendor/autoload.php

    r3198966 r3300593  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
  • download-monitor/trunk/vendor/composer/InstalledVersions.php

    r3257089 r3300593  
    2727class InstalledVersions
    2828{
     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
    2935    /**
    3036     * @var mixed[]|null
     
    324330
    325331    /**
     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    /**
    326344     * @return array[]
    327345     * @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[]}>}>
     
    337355
    338356        if (self::$canGetVendors) {
    339             $selfDir = strtr(__DIR__, '\\', '/');
     357            $selfDir = self::getSelfDir();
    340358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    341359                $vendorDir = strtr($vendorDir, '\\', '/');
  • download-monitor/trunk/vendor/composer/installed.php

    r3278759 r3300593  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'f9826bb0e7b84f5c0fbd7aaf855500877f606db3',
     6        'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'f9826bb0e7b84f5c0fbd7aaf855500877f606db3',
     16            'reference' => '42ff37ddce1721b986fa9f6e08505eca003ec97d',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.