Simple Download Monitor - Version 0.17

Version Description

  • Forgot to allow empty strings in "Inline files".
Download this release

Release Info

Developer pepak.net
Plugin Icon 128x128 Simple Download Monitor
Version 0.17
Comparing to
See all releases

Code changes from version 0.16 to 0.17

Files changed (2) hide show
  1. readme.txt +5 -1
  2. simple-download-monitor.php +3 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: files, counter, count, tracking, download monitor, monitor, downloads, download
5
  Requires at least: 2.8.0
6
  Tested up to: 3.0.1
7
- Stable tag: 0.16
8
 
9
  Count the number of downloads without having to maintain a comprehensive download page.
10
 
@@ -118,6 +118,10 @@ http://www.pepak.net/wordpress/simple-download-monitor-plugin/#comment-4729
118
 
119
  == Changelog ==
120
 
 
 
 
 
121
  = 0.16 =
122
 
123
  * Something went wrong with uploading to WordPress database.
4
  Tags: files, counter, count, tracking, download monitor, monitor, downloads, download
5
  Requires at least: 2.8.0
6
  Tested up to: 3.0.1
7
+ Stable tag: 0.17
8
 
9
  Count the number of downloads without having to maintain a comprehensive download page.
10
 
118
 
119
  == Changelog ==
120
 
121
+ = 0.17 =
122
+
123
+ * Forgot to allow empty strings in "Inline files".
124
+
125
  = 0.16 =
126
 
127
  * Something went wrong with uploading to WordPress database.
simple-download-monitor.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Simple Download Monitor
5
  Plugin URI: http://www.pepak.net/wordpress/simple-download-monitor-plugin
6
  Description: Count the number of downloads without having to maintain a comprehensive download page.
7
- Version: 0.16
8
  Author: Pepak
9
  Author URI: http://www.pepak.net
10
  */
@@ -31,7 +31,7 @@ if (!class_exists('SimpleDownloadMonitor'))
31
  class SimpleDownloadMonitor
32
  {
33
 
34
- const VERSION = '0.16';
35
  const PREFIX = 'sdmon_';
36
  const PREG_DELIMITER = '`';
37
  const GET_PARAM = 'sdmon';
@@ -393,7 +393,7 @@ if (!class_exists('SimpleDownloadMonitor'))
393
  update_option(self::PREFIX . 'directories', $directories);
394
  update_option(self::PREFIX . 'extensions', $extensions);
395
  update_option(self::PREFIX . 'detailed', $detailed);
396
- if (strlen($inline) >= 3)
397
  update_option(self::PREFIX . 'inline', $inline);
398
  update_option(self::PREFIX . 'ignored_users', $ignored_users);
399
  update_option(self::PREFIX . 'group_within', $group_within);
4
  Plugin Name: Simple Download Monitor
5
  Plugin URI: http://www.pepak.net/wordpress/simple-download-monitor-plugin
6
  Description: Count the number of downloads without having to maintain a comprehensive download page.
7
+ Version: 0.17
8
  Author: Pepak
9
  Author URI: http://www.pepak.net
10
  */
31
  class SimpleDownloadMonitor
32
  {
33
 
34
+ const VERSION = '0.17';
35
  const PREFIX = 'sdmon_';
36
  const PREG_DELIMITER = '`';
37
  const GET_PARAM = 'sdmon';
393
  update_option(self::PREFIX . 'directories', $directories);
394
  update_option(self::PREFIX . 'extensions', $extensions);
395
  update_option(self::PREFIX . 'detailed', $detailed);
396
+ if (($inline == '') OR (strlen($inline) >= 3))
397
  update_option(self::PREFIX . 'inline', $inline);
398
  update_option(self::PREFIX . 'ignored_users', $ignored_users);
399
  update_option(self::PREFIX . 'group_within', $group_within);