Download Monitor - Version 4.1.1

Version Description

Download this release

Release Info

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

Code changes from version 4.1.0 to 4.1.1

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 downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
6
- Version: 4.1.0
7
  Author: Never5
8
  Author URI: https://www.never5.com
9
  Requires at least: 3.8
10
- Tested up to: 4.9.6
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.1.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.1.1
7
  Author: Never5
8
  Author URI: https://www.never5.com
9
  Requires at least: 3.8
10
+ Tested up to: 4.9.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.1.1' );
37
 
38
  // Define DLM FILE
39
  define( 'DLM_PLUGIN_FILE', __FILE__ );
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Download Monitor ===
2
- Contributors: never5, barrykooij, mikejolley, hchouhan
3
  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.6
7
- Stable tag: 4.1.0
8
  License: GPLv3
9
  Text Domain: -
10
 
@@ -114,6 +114,10 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
114
 
115
  == Changelog ==
116
 
 
 
 
 
117
  = 4.1.0: May 21, 2018 =
118
  * Feature: Added a new option that allows site-owners if and how they wish to track IP addresses of users.
119
  * Feature: Added a new option that allows site-owners to decide if they wish to track user agent of users.
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, 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.8
7
+ Stable tag: 4.1.1
8
  License: GPLv3
9
  Text Domain: -
10
 
114
 
115
  == Changelog ==
116
 
117
+ = 4.1.1: September 12, 2018 =
118
+ * Tweak: Fixed a bug that incorrectly included featured downloads by default in [downloads].
119
+ * Tweak: Added 'dlm_get_template_part_args' filter that allows arugment filtering on Download Monitor templates.
120
+
121
  = 4.1.0: May 21, 2018 =
122
  * Feature: Added a new option that allows site-owners if and how they wish to track IP addresses of users.
123
  * Feature: Added a new option that allows site-owners to decide if they wish to track user agent of users.
src/Shortcodes.php CHANGED
@@ -416,6 +416,12 @@ class DLM_Shortcodes {
416
  'key' => '_featured',
417
  'value' => 'yes'
418
  );
 
 
 
 
 
 
419
  }
420
 
421
  if ( $members_only === 'true' || $members_only === true ) {
416
  'key' => '_featured',
417
  'value' => 'yes'
418
  );
419
+ } else {
420
+ $args['meta_query'][] = array(
421
+ 'key' => '_featured',
422
+ 'value' => 'yes',
423
+ 'compare' => '!='
424
+ );
425
  }
426
 
427
  if ( $members_only === 'true' || $members_only === true ) {
src/TemplateHandler.php CHANGED
@@ -57,6 +57,9 @@ class DLM_Template_Handler {
57
  // Allow 3rd party plugin filter template file from their plugin
58
  $template = apply_filters( 'dlm_get_template_part', $template, $slug, $name );
59
 
 
 
 
60
  // Load template if we've found one
61
  if ( $template ) {
62
 
57
  // Allow 3rd party plugin filter template file from their plugin
58
  $template = apply_filters( 'dlm_get_template_part', $template, $slug, $name );
59
 
60
+ // Allow 3rd party plugin filter template arguments from their plugin
61
+ $args = apply_filters( 'dlm_get_template_part_args', $args, $template, $slug, $name );
62
+
63
  // Load template if we've found one
64
  if ( $template ) {
65