Version Description
Download this release
Release Info
Developer | barrykooij |
Plugin | Download Monitor |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.4
- download-monitor.php +2 -2
- readme.txt +4 -1
- src/Admin/WritePanels.php +10 -5
- src/Download/Download.php +1 -1
download-monitor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Download Monitor
|
4 |
Plugin URI: https://www.download-monitor.com
|
5 |
Description: A full solution for managing downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
|
6 |
-
Version: 4.0.
|
7 |
Author: Never5
|
8 |
Author URI: https://www.never5.com
|
9 |
Requires at least: 3.8
|
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
33 |
} // Exit if accessed directly
|
34 |
|
35 |
// Define DLM Version
|
36 |
-
define( 'DLM_VERSION', '4.0.
|
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 downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
|
6 |
+
Version: 4.0.4
|
7 |
Author: Never5
|
8 |
Author URI: https://www.never5.com
|
9 |
Requires at least: 3.8
|
33 |
} // Exit if accessed directly
|
34 |
|
35 |
// Define DLM Version
|
36 |
+
define( 'DLM_VERSION', '4.0.4' );
|
37 |
|
38 |
// Define DLM FILE
|
39 |
define( 'DLM_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.barrykooij.com/donate/
|
|
4 |
Tags: download, downloads, monitor, hits, download monitor, tracking, admin, count, counter, files, versions, download count, logging, AJAX, digital, documents, download category, download manager, download template, downloadmanager, file manager, file tree, grid, hits, ip-address, manager, media, monitor, password, protect downloads, tracker
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9.4
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv3
|
9 |
Text Domain: -
|
10 |
|
@@ -114,6 +114,9 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
117 |
= 4.0.3: February 9, 2018 =
|
118 |
* Tweak: We now cache if we need to upgrade legacy downloads. This prevents us from checking if we need to upgrade on every pageload, improving performance and preventing constant sql warning when legacy table doesn't exist.
|
119 |
* Tweak: Fixed SQL error in has_ip_downloaded_version() call ('type' does not exist).
|
4 |
Tags: download, downloads, monitor, hits, download monitor, tracking, admin, count, counter, files, versions, download count, logging, AJAX, digital, documents, download category, download manager, download template, downloadmanager, file manager, file tree, grid, hits, ip-address, manager, media, monitor, password, protect downloads, tracker
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 4.0.4
|
8 |
License: GPLv3
|
9 |
Text Domain: -
|
10 |
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 4.0.4: February 19, 2018 =
|
118 |
+
* Tweak: Fixed a bug where versions of draft and pending review downloads were not displayed in the backend.
|
119 |
+
|
120 |
= 4.0.3: February 9, 2018 =
|
121 |
* Tweak: We now cache if we need to upgrade legacy downloads. This prevents us from checking if we need to upgrade on every pageload, improving performance and preventing constant sql warning when legacy table doesn't exist.
|
122 |
* Tweak: Fixed SQL error in has_ip_downloaded_version() call ('type' does not exist).
|
src/Admin/WritePanels.php
CHANGED
@@ -153,13 +153,18 @@ class DLM_Admin_Writepanels {
|
|
153 |
public function download_files() {
|
154 |
global $post;
|
155 |
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
161 |
}
|
162 |
|
|
|
|
|
163 |
wp_nonce_field( 'save_meta_data', 'dlm_nonce' );
|
164 |
?>
|
165 |
<div class="download_monitor_files dlm-metaboxes-wrapper">
|
153 |
public function download_files() {
|
154 |
global $post;
|
155 |
|
156 |
+
/** @var DLM_Download $download */
|
157 |
+
$downloads = download_monitor()->service( 'download_repository' )->retrieve( array(
|
158 |
+
'p' => absint( $post->ID ),
|
159 |
+
'post_status' => array( 'any', 'trash' )
|
160 |
+
), 1 );
|
161 |
+
|
162 |
+
if ( 0 == count( $downloads ) ) {
|
163 |
+
return;
|
164 |
}
|
165 |
|
166 |
+
$download = $downloads[0];
|
167 |
+
|
168 |
wp_nonce_field( 'save_meta_data', 'dlm_nonce' );
|
169 |
?>
|
170 |
<div class="download_monitor_files dlm-metaboxes-wrapper">
|
src/Download/Download.php
CHANGED
@@ -454,7 +454,7 @@ class DLM_Download {
|
|
454 |
* @return array
|
455 |
*/
|
456 |
public function get_version_ids() {
|
457 |
-
if ( empty( $this->version_ids )
|
458 |
|
459 |
if ( apply_filters( 'dlm_download_use_version_transient', true, $this ) ) {
|
460 |
|
454 |
* @return array
|
455 |
*/
|
456 |
public function get_version_ids() {
|
457 |
+
if ( empty( $this->version_ids ) ) {
|
458 |
|
459 |
if ( apply_filters( 'dlm_download_use_version_transient', true, $this ) ) {
|
460 |
|