Download Monitor - Version 4.4.4

Version Description

Download this release

Release Info

Developer barrykooij
Plugin Icon 128x128 Download Monitor
Version 4.4.4
Comparing to
See all releases

Code changes from version 4.4.3 to 4.4.4

assets/views/meta-box/version.php CHANGED
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
15
  <table cellpadding="0" cellspacing="0" class="dlm-metabox-content">
16
  <tbody>
17
 
18
- <?php do_action( 'dlm_downloadable_file_version_table_start' ); ?>
19
 
20
  <tr>
21
  <td width="1%">
@@ -115,8 +115,8 @@ if ( ! defined( 'ABSPATH' ) ) {
115
 
116
 
117
 
118
- <?php do_action( 'dlm_downloadable_file_version_table_end' ); ?>
119
 
120
  </tbody>
121
  </table>
122
- </div>
15
  <table cellpadding="0" cellspacing="0" class="dlm-metabox-content">
16
  <tbody>
17
 
18
+ <?php do_action( 'dlm_downloadable_file_version_table_start', $file_id, $version_increment ); ?>
19
 
20
  <tr>
21
  <td width="1%">
115
 
116
 
117
 
118
+ <?php do_action( 'dlm_downloadable_file_version_table_end', $file_id, $version_increment ); ?>
119
 
120
  </tbody>
121
  </table>
122
+ </div>
download-monitor.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: Download Monitor
4
  Plugin URI: https://www.download-monitor.com
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: 4.4.3
7
- Author: Never5
8
- Author URI: https://www.never5.com
9
- Requires at least: 3.8
10
- Tested up to: 5.4.1
11
  Text Domain: download-monitor
12
 
13
  License: GPL v3
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
33
  } // Exit if accessed directly
34
 
35
  // Define DLM Version
36
- define( 'DLM_VERSION', '4.4.3' );
37
 
38
  // Define DLM FILE
39
  define( 'DLM_PLUGIN_FILE', __FILE__ );
3
  Plugin Name: Download Monitor
4
  Plugin URI: https://www.download-monitor.com
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: 4.4.4
7
+ Author: WPChill
8
+ Author URI: https://wpchill.com
9
+ Requires at least: 5.4
10
+ Tested up to: 5.7
11
  Text Domain: download-monitor
12
 
13
  License: GPL v3
33
  } // Exit if accessed directly
34
 
35
  // Define DLM Version
36
+ define( 'DLM_VERSION', '4.4.4' );
37
 
38
  // Define DLM FILE
39
  define( 'DLM_PLUGIN_FILE', __FILE__ );
package-lock.json CHANGED
@@ -1981,9 +1981,9 @@
1981
  "dev": true
1982
  },
1983
  "elliptic": {
1984
- "version": "6.4.1",
1985
- "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",
1986
- "integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==",
1987
  "dev": true,
1988
  "requires": {
1989
  "bn.js": "^4.4.0",
@@ -4176,9 +4176,9 @@
4176
  }
4177
  },
4178
  "lodash": {
4179
- "version": "4.17.11",
4180
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
4181
- "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
4182
  },
4183
  "lodash.get": {
4184
  "version": "4.4.2",
@@ -4449,9 +4449,9 @@
4449
  "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
4450
  },
4451
  "mixin-deep": {
4452
- "version": "1.3.1",
4453
- "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz",
4454
- "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==",
4455
  "dev": true,
4456
  "requires": {
4457
  "for-in": "^1.0.2",
@@ -6570,9 +6570,9 @@
6570
  }
6571
  },
6572
  "websocket-extensions": {
6573
- "version": "0.1.3",
6574
- "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz",
6575
- "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==",
6576
  "dev": true
6577
  },
6578
  "whatwg-fetch": {
1981
  "dev": true
1982
  },
1983
  "elliptic": {
1984
+ "version": "6.5.3",
1985
+ "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
1986
+ "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
1987
  "dev": true,
1988
  "requires": {
1989
  "bn.js": "^4.4.0",
4176
  }
4177
  },
4178
  "lodash": {
4179
+ "version": "4.17.19",
4180
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
4181
+ "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ=="
4182
  },
4183
  "lodash.get": {
4184
  "version": "4.4.2",
4449
  "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
4450
  },
4451
  "mixin-deep": {
4452
+ "version": "1.3.2",
4453
+ "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",
4454
+ "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==",
4455
  "dev": true,
4456
  "requires": {
4457
  "for-in": "^1.0.2",
6570
  }
6571
  },
6572
  "websocket-extensions": {
6573
+ "version": "0.1.4",
6574
+ "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",
6575
+ "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",
6576
  "dev": true
6577
  },
6578
  "whatwg-fetch": {
readme.txt CHANGED
@@ -1,13 +1,12 @@
1
  === Download Monitor ===
2
- Contributors: never5, barrykooij, hchouhan, mikejolley
3
- Donate link: http://www.barrykooij.com/donate/
4
  Tags: download, downloads, monitor, hits, download monitor, tracking, admin, count, files, versions, logging, digital, documents, download category, download manager, download template, downloadmanager, file manager, file tree, grid, hits, ip-address, manager, media, monitor, password, protect downloads, tracker, sell, shop, ecommerce, paypal
5
- Requires at least: 3.8
6
- Tested up to: 5.4.1
7
- Stable tag: 4.4.3
8
  License: GPLv3
9
  Text Domain: -
10
- Requires PHP: 5.3
11
 
12
  Download Monitor is a plugin for uploading and managing downloads, tracking downloads, displaying links and selling downloads!
13
 
@@ -118,6 +117,12 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
121
  = 4.4.3: June 8, 2020 =
122
  * Tweak: Small minor fixes and tweaks.
123
 
1
  === Download Monitor ===
2
+ Contributors: wpchill, silkalns, barrykooij, mikejolley
 
3
  Tags: download, downloads, monitor, hits, download monitor, tracking, admin, count, files, versions, logging, digital, documents, download category, download manager, download template, downloadmanager, file manager, file tree, grid, hits, ip-address, manager, media, monitor, password, protect downloads, tracker, sell, shop, ecommerce, paypal
4
+ Requires at least: 5.4
5
+ Tested up to: 5.8
6
+ Stable tag: 4.4.4
7
  License: GPLv3
8
  Text Domain: -
9
+ Requires PHP: 5.6
10
 
11
  Download Monitor is a plugin for uploading and managing downloads, tracking downloads, displaying links and selling downloads!
12
 
117
 
118
  == Changelog ==
119
 
120
+ = 4.4.4: October 19, 2020 =
121
+ * Tweak: Fixed PHP 7.4 notices.
122
+ * Tweak: Check if download variable is set in content-download template. This prevents a fatal error in odd case no download is given.
123
+ * Tweak: Now passing variables to actions to version.php admin view file.
124
+ * Tweak: Bump websocket-extensions from 0.1.3 to 0.1.4
125
+
126
  = 4.4.3: June 8, 2020 =
127
  * Tweak: Small minor fixes and tweaks.
128
 
src/DLM.php CHANGED
@@ -233,7 +233,7 @@ class WP_DLM {
233
  $current_support = get_theme_support( 'post-thumbnails' );
234
 
235
  // fix current support for some themes
236
- if ( is_array( $current_support[0] ) ) {
237
  $current_support = $current_support[0];
238
  }
239
 
233
  $current_support = get_theme_support( 'post-thumbnails' );
234
 
235
  // fix current support for some themes
236
+ if ( is_array( $current_support ) && is_array( $current_support[0] ) ) {
237
  $current_support = $current_support[0];
238
  }
239
 
src/DownloadHandler.php CHANGED
@@ -609,7 +609,7 @@ class DLM_Download_Handler {
609
  @set_time_limit( 0 );
610
  }
611
 
612
- if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() ) {
613
  @set_magic_quotes_runtime( 0 );
614
  }
615
 
609
  @set_time_limit( 0 );
610
  }
611
 
612
+ if ( version_compare( PHP_VERSION, '7.4.0', '<' ) && function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() ) {
613
  @set_magic_quotes_runtime( 0 );
614
  }
615
 
templates/content-download.php CHANGED
@@ -7,6 +7,10 @@ if ( ! defined( 'ABSPATH' ) ) {
7
  exit;
8
  } // Exit if accessed directly
9
 
 
 
 
 
10
  /** @var DLM_Download $dlm_download */
11
  ?>
12
  <a class="download-link" title="<?php if ( $dlm_download->get_version()->has_version_number() ) {
7
  exit;
8
  } // Exit if accessed directly
9
 
10
+ if( ! $dlm_download ) {
11
+ return;
12
+ }
13
+
14
  /** @var DLM_Download $dlm_download */
15
  ?>
16
  <a class="download-link" title="<?php if ( $dlm_download->get_version()->has_version_number() ) {