Version Description
- 01.11.2021 = Fixed: Escaping in admin column, displaying HTLM instead of correct form Added: Clear transients button.
Download this release
Release Info
Developer | giucu91 |
Plugin | Download Monitor |
Version | 4.4.9 |
Comparing to | |
See all releases |
Code changes from version 4.4.8 to 4.4.9
- download-monitor.php +3 -3
- readme.txt +5 -1
- src/Admin/CustomColumns.php +2 -2
- src/Admin/MediaInsert.php +3 -0
- src/Admin/Settings/Settings.php +13 -0
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.
|
7 |
Author: WPChill
|
8 |
Author URI: https://wpchill.com
|
9 |
Requires at least: 5.4
|
10 |
-
Tested up to: 5.
|
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.
|
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.9
|
7 |
Author: WPChill
|
8 |
Author URI: https://wpchill.com
|
9 |
Requires at least: 5.4
|
10 |
+
Tested up to: 5.8
|
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.9' );
|
37 |
|
38 |
// Define DLM FILE
|
39 |
define( 'DLM_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wpchill, silkalns, barrykooij, mikejolley
|
|
3 |
Tags: download manager, document management, file manager, digital store, ecommerce, document management plugin, download monitor, download counter, password protection, download protection, 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.
|
7 |
License: GPLv3
|
8 |
Text Domain: -
|
9 |
Requires PHP: 5.6
|
@@ -122,6 +122,10 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
125 |
= 4.4.8 - 29.10.2021 =
|
126 |
Fixed: Insert Download/Quick Download Button
|
127 |
|
3 |
Tags: download manager, document management, file manager, digital store, ecommerce, document management plugin, download monitor, download counter, password protection, download protection, 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.9
|
7 |
License: GPLv3
|
8 |
Text Domain: -
|
9 |
Requires PHP: 5.6
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 4.4.9 - 01.11.2021 =
|
126 |
+
Fixed: Escaping in admin column, displaying HTLM instead of correct form
|
127 |
+
Added: Clear transients button.
|
128 |
+
|
129 |
= 4.4.8 - 29.10.2021 =
|
130 |
Fixed: Insert Download/Quick Download Button
|
131 |
|
src/Admin/CustomColumns.php
CHANGED
@@ -75,14 +75,14 @@ class DLM_Custom_Columns {
|
|
75 |
if ( ! $terms = get_the_term_list( $post->ID, 'dlm_download_category', '', ', ', '' ) ) {
|
76 |
echo '<span class="na">–</span>';
|
77 |
} else {
|
78 |
-
echo
|
79 |
}
|
80 |
break;
|
81 |
case "download_tag" :
|
82 |
if ( ! $terms = get_the_term_list( $post->ID, 'dlm_download_tag', '', ', ', '' ) ) {
|
83 |
echo '<span class="na">–</span>';
|
84 |
} else {
|
85 |
-
echo
|
86 |
}
|
87 |
break;
|
88 |
case "featured" :
|
75 |
if ( ! $terms = get_the_term_list( $post->ID, 'dlm_download_category', '', ', ', '' ) ) {
|
76 |
echo '<span class="na">–</span>';
|
77 |
} else {
|
78 |
+
echo wp_kses_post( $terms );
|
79 |
}
|
80 |
break;
|
81 |
case "download_tag" :
|
82 |
if ( ! $terms = get_the_term_list( $post->ID, 'dlm_download_tag', '', ', ', '' ) ) {
|
83 |
echo '<span class="na">–</span>';
|
84 |
} else {
|
85 |
+
echo wp_kses_post( $terms );
|
86 |
}
|
87 |
break;
|
88 |
case "featured" :
|
src/Admin/MediaInsert.php
CHANGED
@@ -132,6 +132,9 @@ class DLM_Admin_Media_Insert {
|
|
132 |
update_post_meta( $file_id, '_sha256', $hashes['sha256'] );
|
133 |
update_post_meta( $file_id, '_crc32', $hashes['crc32b'] );
|
134 |
|
|
|
|
|
|
|
135 |
// Success message
|
136 |
echo '<div class="updated"><p>' . esc_html__( 'Download successfully created.', 'download-monitor' ) . '</p></div>';
|
137 |
|
132 |
update_post_meta( $file_id, '_sha256', $hashes['sha256'] );
|
133 |
update_post_meta( $file_id, '_crc32', $hashes['crc32b'] );
|
134 |
|
135 |
+
// clear transient
|
136 |
+
download_monitor()->service( 'transient_manager' )->clear_versions_transient( $download_id );
|
137 |
+
|
138 |
// Success message
|
139 |
echo '<div class="updated"><p>' . esc_html__( 'Download successfully created.', 'download-monitor' ) . '</p></div>';
|
140 |
|
src/Admin/Settings/Settings.php
CHANGED
@@ -275,6 +275,19 @@ class DLM_Admin_Settings {
|
|
275 |
),
|
276 |
)
|
277 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
)
|
279 |
),
|
280 |
'lead_generation' => array(
|
275 |
),
|
276 |
)
|
277 |
),
|
278 |
+
'misc' => array(
|
279 |
+
'title' => __( 'Miscellaneous', 'download-monitor' ),
|
280 |
+
'fields' => array(
|
281 |
+
array(
|
282 |
+
'name' => 'dlm_clear_transients',
|
283 |
+
'std' => '0',
|
284 |
+
'label' => __( 'Clear all transients', 'download-monitor' ),
|
285 |
+
'desc' => __( 'Remove all Download Monitor transients, this can solve version caching issues.', 'download-monitor' ),
|
286 |
+
'type' => 'action_button',
|
287 |
+
'link' => self::get_url() . '&tab=advanced§ion=misc'
|
288 |
+
),
|
289 |
+
),
|
290 |
+
)
|
291 |
)
|
292 |
),
|
293 |
'lead_generation' => array(
|