Version Description
- 03.11.2021 = Fixed: Reports date changing ( https://github.com/WPChill/download-monitor/issues/755 ) Fixed: Log page - Status Column width ( https://github.com/WPChill/download-monitor/issues/756 ) Fixed: Password protection form, password field not being displayed ( https://github.com/WPChill/download-monitor/issues/757 ) Fixed: Escaping problem in the No-Access page ( https://github.com/WPChill/download-monitor/issues/758 )
Download this release
Release Info
Developer | giucu91 |
Plugin | Download Monitor |
Version | 4.4.11 |
Comparing to | |
See all releases |
Code changes from version 4.4.10 to 4.4.11
- assets/css/admin.css +2 -2
- assets/css/admin.less +7 -14
- assets/js/reports/charts-date-range-selector.js +3 -1
- assets/js/reports/charts-date-range-selector.min.js +1 -1
- download-monitor.php +2 -2
- readme.txt +7 -1
- src/DownloadHandler.php +1 -1
- templates/no-access.php +1 -1
assets/css/admin.css
CHANGED
@@ -12,12 +12,12 @@
|
|
12 |
vertical-align: middle;
|
13 |
}
|
14 |
#dlm_logs .check-column {
|
15 |
-
width: 1
|
16 |
padding: 0;
|
17 |
vertical-align: middle;
|
18 |
}
|
19 |
#dlm_logs .column-status {
|
20 |
-
width:
|
21 |
}
|
22 |
#dlm_logs td.column-status {
|
23 |
font-size: 10px;
|
12 |
vertical-align: middle;
|
13 |
}
|
14 |
#dlm_logs .check-column {
|
15 |
+
width: 1%;
|
16 |
padding: 0;
|
17 |
vertical-align: middle;
|
18 |
}
|
19 |
#dlm_logs .column-status {
|
20 |
+
width: 2%;
|
21 |
}
|
22 |
#dlm_logs td.column-status {
|
23 |
font-size: 10px;
|
assets/css/admin.less
CHANGED
@@ -36,13 +36,13 @@
|
|
36 |
vertical-align: middle;
|
37 |
}
|
38 |
.check-column {
|
39 |
-
width: 1
|
40 |
padding: 0;
|
41 |
vertical-align: middle;
|
42 |
}
|
43 |
|
44 |
.column-status {
|
45 |
-
width:
|
46 |
}
|
47 |
td.column-status {
|
48 |
font-size: 10px;
|
@@ -1548,24 +1548,17 @@ table.wp-list-table {
|
|
1548 |
align-content: center;
|
1549 |
vertical-align: middle;
|
1550 |
margin: 0 15px;
|
1551 |
-
|
1552 |
-
padding: 15px;
|
1553 |
|
1554 |
&.wpchill-upsell {
|
1555 |
-
width: 100%;
|
1556 |
position: relative;
|
1557 |
-
float:
|
|
|
|
|
|
|
1558 |
|
1559 |
.wpchill-upsell-description {
|
1560 |
margin:0 auto;
|
1561 |
-
max-width:calc(100% - 200px);
|
1562 |
-
}
|
1563 |
-
|
1564 |
-
a {
|
1565 |
-
position: absolute;
|
1566 |
-
right: 0;
|
1567 |
-
top: 50%;
|
1568 |
-
transform: translateY(-50%);
|
1569 |
}
|
1570 |
}
|
1571 |
}
|
36 |
vertical-align: middle;
|
37 |
}
|
38 |
.check-column {
|
39 |
+
width: 1%;
|
40 |
padding: 0;
|
41 |
vertical-align: middle;
|
42 |
}
|
43 |
|
44 |
.column-status {
|
45 |
+
width: 2%;
|
46 |
}
|
47 |
td.column-status {
|
48 |
font-size: 10px;
|
1548 |
align-content: center;
|
1549 |
vertical-align: middle;
|
1550 |
margin: 0 15px;
|
1551 |
+
padding: 10px 0;
|
|
|
1552 |
|
1553 |
&.wpchill-upsell {
|
|
|
1554 |
position: relative;
|
1555 |
+
float: none;
|
1556 |
+
flex-grow: 1;
|
1557 |
+
display: flex;
|
1558 |
+
align-items: center;
|
1559 |
|
1560 |
.wpchill-upsell-description {
|
1561 |
margin:0 auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1562 |
}
|
1563 |
}
|
1564 |
}
|
assets/js/reports/charts-date-range-selector.js
CHANGED
@@ -10,7 +10,9 @@ var DLM_Reports_Date_Range_Selector = function ( c, sd, ed, u ) {
|
|
10 |
this.container = c;
|
11 |
this.startDate = new Date( sd );
|
12 |
this.endDate = new Date( ed );
|
13 |
-
this.url = u
|
|
|
|
|
14 |
this.el = null;
|
15 |
this.opened = false;
|
16 |
|
10 |
this.container = c;
|
11 |
this.startDate = new Date( sd );
|
12 |
this.endDate = new Date( ed );
|
13 |
+
this.url = u.replace(/&#(\d+);/g, function(match, dec) {
|
14 |
+
return String.fromCharCode(dec);
|
15 |
+
});
|
16 |
this.el = null;
|
17 |
this.opened = false;
|
18 |
|
assets/js/reports/charts-date-range-selector.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery.fn.extend({dlm_reports_date_range:function(t,e,a){return new DLM_Reports_Date_Range_Selector(this,t,e,a),this}});var DLM_Reports_Date_Range_Selector=function(t,e,a,n){this.container=t,this.startDate=new Date(e),this.endDate=new Date(a),this.url=n,this.el=null,this.opened=!1,this.startDateInput=null,this.endDateInput=null,this.setup=function(){var t=this;this.container.click(function(){return t.toggleDisplay(),!1})},this.setup()};DLM_Reports_Date_Range_Selector.prototype.toggleDisplay=function(){this.opened?this.hide():this.display()},DLM_Reports_Date_Range_Selector.prototype.display=function(){this.opened||(this.opened=!0,this.el=this.createElement(),this.container.append(this.el))},DLM_Reports_Date_Range_Selector.prototype.hide=function(){this.opened=!1,this.el.remove()},DLM_Reports_Date_Range_Selector.prototype.apply=function(){var t=new Date(this.startDateInput.val()+"T00:00:00"),e=new Date(this.endDateInput.val()+"T00:00:00"),a=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate(),n=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate();this.hide(),window.location.replace(this.url+"&date_from="+a+"&date_to="+n)},DLM_Reports_Date_Range_Selector.prototype.createElement=function(){var t=this,e=jQuery("<div>").addClass("dlm_rdrs_overlay"),a=jQuery("<div>").addClass("dlm_rdrs_date").attr("id","dlm_rdrs_date_start"),n=jQuery("<div>").addClass("dlm_rdrs_date").attr("id","dlm_rdrs_date_end");this.startDateInput=jQuery("<input>").attr("type","hidden"),this.endDateInput=jQuery("<input>").attr("type","hidden");var r=jQuery("<div>").addClass("dlm_rdrs_actions"),i=jQuery("<a>").addClass("button").html("Apply").click(function(){return t.apply(),!1});return r.append(i),e.append(a).append(n).append(r).append(this.startDateInput).append(this.endDateInput),a.datepicker({inline:!0,altField:this.startDateInput,dateFormat:"yy-mm-dd",defaultDate:this.startDate}),n.datepicker({inline:!0,altField:this.endDateInput,dateFormat:"yy-mm-dd",defaultDate:this.endDate}),e.click(function(){return!1}),e};
|
1 |
+
jQuery.fn.extend({dlm_reports_date_range:function(t,e,a){return new DLM_Reports_Date_Range_Selector(this,t,e,a),this}});var DLM_Reports_Date_Range_Selector=function(t,e,a,n){this.container=t,this.startDate=new Date(e),this.endDate=new Date(a),this.url=n.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)}),this.el=null,this.opened=!1,this.startDateInput=null,this.endDateInput=null,this.setup=function(){var t=this;this.container.click(function(){return t.toggleDisplay(),!1})},this.setup()};DLM_Reports_Date_Range_Selector.prototype.toggleDisplay=function(){this.opened?this.hide():this.display()},DLM_Reports_Date_Range_Selector.prototype.display=function(){this.opened||(this.opened=!0,this.el=this.createElement(),this.container.append(this.el))},DLM_Reports_Date_Range_Selector.prototype.hide=function(){this.opened=!1,this.el.remove()},DLM_Reports_Date_Range_Selector.prototype.apply=function(){var t=new Date(this.startDateInput.val()+"T00:00:00"),e=new Date(this.endDateInput.val()+"T00:00:00"),a=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate(),n=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate();this.hide(),window.location.replace(this.url+"&date_from="+a+"&date_to="+n)},DLM_Reports_Date_Range_Selector.prototype.createElement=function(){var t=this,e=jQuery("<div>").addClass("dlm_rdrs_overlay"),a=jQuery("<div>").addClass("dlm_rdrs_date").attr("id","dlm_rdrs_date_start"),n=jQuery("<div>").addClass("dlm_rdrs_date").attr("id","dlm_rdrs_date_end");this.startDateInput=jQuery("<input>").attr("type","hidden"),this.endDateInput=jQuery("<input>").attr("type","hidden");var r=jQuery("<div>").addClass("dlm_rdrs_actions"),i=jQuery("<a>").addClass("button").html("Apply").click(function(){return t.apply(),!1});return r.append(i),e.append(a).append(n).append(r).append(this.startDateInput).append(this.endDateInput),a.datepicker({inline:!0,altField:this.startDateInput,dateFormat:"yy-mm-dd",defaultDate:this.startDate}),n.datepicker({inline:!0,altField:this.endDateInput,dateFormat:"yy-mm-dd",defaultDate:this.endDate}),e.click(function(){return!1}),e};
|
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 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
|
@@ -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.11
|
7 |
Author: WPChill
|
8 |
Author URI: https://wpchill.com
|
9 |
Requires at least: 5.4
|
33 |
} // Exit if accessed directly
|
34 |
|
35 |
// Define DLM Version
|
36 |
+
define( 'DLM_VERSION', '4.4.11' );
|
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,12 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 4.4.10 - 02.11.2021 =
|
126 |
Fixed: Escaping in admin "All Downloads" page. ( https://github.com/WPChill/download-monitor/issues/753 )
|
127 |
Added: Review request in dashboard.
|
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.11
|
7 |
License: GPLv3
|
8 |
Text Domain: -
|
9 |
Requires PHP: 5.6
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 4.4.11 - 03.11.2021 =
|
126 |
+
Fixed: Reports date changing ( https://github.com/WPChill/download-monitor/issues/755 )
|
127 |
+
Fixed: Log page - Status Column width ( https://github.com/WPChill/download-monitor/issues/756 )
|
128 |
+
Fixed: Password protection form, password field not being displayed ( https://github.com/WPChill/download-monitor/issues/757 )
|
129 |
+
Fixed: Escaping problem in the No-Access page ( https://github.com/WPChill/download-monitor/issues/758 )
|
130 |
+
|
131 |
= 4.4.10 - 02.11.2021 =
|
132 |
Fixed: Escaping in admin "All Downloads" page. ( https://github.com/WPChill/download-monitor/issues/753 )
|
133 |
Added: Review request in dashboard.
|
src/DownloadHandler.php
CHANGED
@@ -314,7 +314,7 @@ class DLM_Download_Handler {
|
|
314 |
// Action on found download
|
315 |
if ( $download->exists() ) {
|
316 |
if ( post_password_required( $download_id ) ) {
|
317 |
-
wp_die(
|
318 |
}
|
319 |
|
320 |
$this->trigger( $download );
|
314 |
// Action on found download
|
315 |
if ( $download->exists() ) {
|
316 |
if ( post_password_required( $download_id ) ) {
|
317 |
+
wp_die( get_the_password_form( $download_id ) , esc_html__( 'Password Required', 'download-monitor' ) );
|
318 |
}
|
319 |
|
320 |
$this->trigger( $download );
|
templates/no-access.php
CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
<?php do_action( 'dlm_no_access_before_message', $download ); ?>
|
15 |
<?php if ( ! empty( $no_access_message ) ) : ?>
|
16 |
|
17 |
-
<p><?php echo
|
18 |
<?php endif; ?>
|
19 |
|
20 |
<?php do_action( 'dlm_no_access_after_message', $download ); ?>
|
14 |
<?php do_action( 'dlm_no_access_before_message', $download ); ?>
|
15 |
<?php if ( ! empty( $no_access_message ) ) : ?>
|
16 |
|
17 |
+
<p><?php echo wp_kses_post( $no_access_message ); ?></p>
|
18 |
<?php endif; ?>
|
19 |
|
20 |
<?php do_action( 'dlm_no_access_after_message', $download ); ?>
|