WordPress Download Manager - Version 3.2.35

Version Description

  • 2022.01.25 =
  • Fixed an issue with the password validation
Download this release

Release Info

Developer codename065
Plugin Icon 128x128 WordPress Download Manager
Version 3.2.35
Comparing to
See all releases

Code changes from version 3.2.34 to 3.2.35

download-manager.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.wpdownloadmanager.com/purchases/
5
  Description: Manage, Protect and Track file downloads, and sell digital products from your WordPress site. A complete digital asset management solution.
6
  Author: W3 Eden, Inc.
7
  Author URI: https://www.wpdownloadmanager.com/
8
- Version: 3.2.34
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
@@ -39,7 +39,7 @@ use WPDM\Widgets\WidgetController;
39
 
40
  global $WPDM;
41
 
42
- define('WPDM_VERSION','3.2.34');
43
 
44
  define('WPDM_TEXT_DOMAIN','download-manager');
45
 
5
  Description: Manage, Protect and Track file downloads, and sell digital products from your WordPress site. A complete digital asset management solution.
6
  Author: W3 Eden, Inc.
7
  Author URI: https://www.wpdownloadmanager.com/
8
+ Version: 3.2.35
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
39
 
40
  global $WPDM;
41
 
42
+ define('WPDM_VERSION','3.2.35');
43
 
44
  define('WPDM_TEXT_DOMAIN','download-manager');
45
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: download manager, document management, file manager, digital store, ecomme
5
  Requires at least: 5.3
6
  Tested up to: 5.8
7
  License: GPLv2 or later
8
- Stable tag: 3.2.34
9
 
10
 
11
  This File Management & Digital Store plugin will help you to control file downloads & sell digital products from your WP site.
@@ -181,6 +181,9 @@ Check download stats and get a push notification when someone downloads, install
181
 
182
  == Changelog ==
183
 
 
 
 
184
  = 3.2.34 - 2022.01.11 =
185
  * Fixed data sanitization issue on stats page
186
  * Optimized json api calls
5
  Requires at least: 5.3
6
  Tested up to: 5.8
7
  License: GPLv2 or later
8
+ Stable tag: 3.2.35
9
 
10
 
11
  This File Management & Digital Store plugin will help you to control file downloads & sell digital products from your WP site.
181
 
182
  == Changelog ==
183
 
184
+ = 3.2.35 - 2022.01.25 =
185
+ * Fixed an issue with the password validation
186
+
187
  = 3.2.34 - 2022.01.11 =
188
  * Fixed data sanitization issue on stats page
189
  * Optimized json api calls
src/Admin/Menu/Packages.php CHANGED
@@ -60,7 +60,7 @@ class Packages
60
  delete_post_meta($post, $k);
61
 
62
  }
63
-
64
  foreach ($_POST['file'] as $meta_key => $meta_value) {
65
  $key_name = "__wpdm_" . $meta_key;
66
  if($meta_key == 'package_dir' && $meta_value != '') {
60
  delete_post_meta($post, $k);
61
 
62
  }
63
+
64
  foreach ($_POST['file'] as $meta_key => $meta_value) {
65
  $key_name = "__wpdm_" . $meta_key;
66
  if($meta_key == 'package_dir' && $meta_value != '') {
src/Form/Field.php CHANGED
@@ -84,7 +84,7 @@ class Field
84
  return "<input type='password' $_attrs />";
85
  }
86
 
87
- function checkbox($attrs){
88
  $_attrs = "";
89
  if(isset($attrs['class'])) unset($attrs['class']);
90
  $options = $attrs['options'];
@@ -99,7 +99,7 @@ class Field
99
  return $_options;
100
  }
101
 
102
- function radio($attrs){
103
  $_attrs = "";
104
  if(isset($attrs['class'])) unset($attrs['class']);
105
  $options = $attrs['options'];
84
  return "<input type='password' $_attrs />";
85
  }
86
 
87
+ static function checkbox($attrs){
88
  $_attrs = "";
89
  if(isset($attrs['class'])) unset($attrs['class']);
90
  $options = $attrs['options'];
99
  return $_options;
100
  }
101
 
102
+ static function radio($attrs){
103
  $_attrs = "";
104
  if(isset($attrs['class'])) unset($attrs['class']);
105
  $options = $attrs['options'];
src/Package/PackageLocks.php CHANGED
@@ -66,6 +66,15 @@ class PackageLocks
66
 
67
  $data = [ 'success' => false ];
68
  $error = false;
 
 
 
 
 
 
 
 
 
69
  //Check if the given password is matched
70
  if ($passwords && $password != $passwords && substr_count($passwords, "[$password]") < 1) {
71
  $data['message'] = __("Wrong Password!", "download-manager") . " &nbsp; <span><i class='fas fa-redo'></i> " . __("Try Again", "download-manager") . " </span>";
66
 
67
  $data = [ 'success' => false ];
68
  $error = false;
69
+
70
+ //Check if given password lock is not active
71
+ if (!$passwords) {
72
+ $data['message'] = __("Invalid request!", "download-manager");
73
+ $file = array();
74
+ $error = true;
75
+ wp_send_json($data);
76
+ }
77
+
78
  //Check if the given password is matched
79
  if ($passwords && $password != $passwords && substr_count($passwords, "[$password]") < 1) {
80
  $data['message'] = __("Wrong Password!", "download-manager") . " &nbsp; <span><i class='fas fa-redo'></i> " . __("Try Again", "download-manager") . " </span>";
src/__/Apply.php CHANGED
@@ -52,8 +52,6 @@ class Apply
52
 
53
  add_filter('the_excerpt_embed', array($this, 'oEmbed'));
54
 
55
- add_filter('get_avatar_data', array($this, 'shopLogo'), 10, 3);
56
-
57
  add_action('wp_head', array($this, 'wpHead'), 999999);
58
 
59
 
@@ -196,17 +194,6 @@ class Apply
196
  $flush = 1;
197
  }
198
 
199
- if (has_shortcode($post->post_content, "wpdm_package_form")) {
200
- update_option('__wpdm_package_form', $post_id);
201
- }
202
-
203
- $page_id = get_option('__wpdm_author_dashboard', 0);
204
-
205
- if ((int)$page_id === 0 && has_shortcode($post->post_content, "wpdm_frontend")) {
206
- update_option('__wpdm_author_dashboard', $post_id);
207
- $flush = 1;
208
- }
209
-
210
  $page_id = get_option('__wpdm_author_profile', 0);
211
 
212
  if ((int)$page_id === 0 && has_shortcode($post->post_content, "wpdm_user_profile")) {
@@ -573,21 +560,6 @@ class Apply
573
  return $feed;
574
  }
575
 
576
- function shopLogo($args, $id)
577
- {
578
- if (is_object($id)) $id = $id->user_id;
579
- if (is_email($id)) {
580
- $user = get_user_by('email', $id);
581
- $id = $user->ID;
582
- }
583
-
584
- $store = get_user_meta($id, '__wpdm_public_profile', true);
585
- if (isset($store['logo']) && $store['logo'] != '')
586
- $args['url'] = $store['logo'];
587
- return $args;
588
- }
589
-
590
-
591
  function wpHead(){
592
 
593
  self::googleFont();
52
 
53
  add_filter('the_excerpt_embed', array($this, 'oEmbed'));
54
 
 
 
55
  add_action('wp_head', array($this, 'wpHead'), 999999);
56
 
57
 
194
  $flush = 1;
195
  }
196
 
 
 
 
 
 
 
 
 
 
 
 
197
  $page_id = get_option('__wpdm_author_profile', 0);
198
 
199
  if ((int)$page_id === 0 && has_shortcode($post->post_content, "wpdm_user_profile")) {
560
  return $feed;
561
  }
562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  function wpHead(){
564
 
565
  self::googleFont();