Postie - Version 1.8.5

Version Description

(2016-10-18) * Fix to check if cURL is installed before using

Download this release

Release Info

Developer WayneAllen
Plugin Icon 128x128 Postie
Version 1.8.5
Comparing to
See all releases

Code changes from version 1.8.4 to 1.8.5

Files changed (5) hide show
  1. config_form_server.php +17 -15
  2. docs/Changes.txt +3 -0
  3. docs/Postie.txt +1 -1
  4. postie.php +8 -4
  5. readme.txt +4 -1
config_form_server.php CHANGED
@@ -6,7 +6,9 @@
6
  <td>
7
  <select name='postie-settings[input_connection]' id='postie-settings-input_connection'>
8
  <option value="sockets" <?php echo (($input_connection == "socket") ? " selected='selected' " : "") ?>>Sockets</option>
9
- <option value="curl" <?php echo ($input_connection == "curl") ? "selected='selected' " : "" ?>>cURL</option>
 
 
10
  </select>
11
  <p class='description'><?php _e("Sockets is prefered, but doesn't work with some hosts.", 'postie'); ?></p>
12
  </td>
@@ -25,7 +27,7 @@
25
  </td>
26
  </tr>
27
 
28
- <?php //echo BuildBooleanSelect(__("Use Transport Layer Security (TLS)", 'postie'), 'postie-settings[email_tls]', $email_tls, __("Choose Yes if your server requires TLS", 'postie')); ?>
29
 
30
  <tr>
31
  <th scope="row"><label for="postie-settings-mail_server_port"><?php _e('Port', 'postie') ?></label></th>
@@ -68,73 +70,73 @@
68
  <td>
69
  <select name='postie-settings[interval]' id='postie-settings-interval'>
70
  <option value="weekly" <?php
71
- if ($interval == "weekly") {
72
- echo "selected='selected'";
73
- }
74
- ?>><?php _e('Once weekly', 'postie') ?>
75
  </option>
76
 
77
  <option value="daily"<?php
78
  if ($interval == "daily") {
79
  echo "selected='selected'";
80
  }
81
- ?>><?php _e('daily', 'postie') ?>
82
  </option>
83
 
84
  <option value="hourly" <?php
85
  if ($interval == "hourly") {
86
  echo "selected='selected'";
87
  }
88
- ?>><?php _e('hourly', 'postie') ?>
89
  </option>
90
 
91
  <option value="twiceperhour" <?php
92
  if ($interval == "twiceperhour") {
93
  echo "selected='selected'";
94
  }
95
- ?>><?php _e('twice per hour', 'postie') ?>
96
  </option>
97
 
98
  <option value="tenminutes" <?php
99
  if ($interval == "tenminutes") {
100
  echo "selected='selected'";
101
  }
102
- ?>><?php _e('every 10 minutes', 'postie') ?>
103
  </option>
104
 
105
  <option value="fiveminutes" <?php
106
  if ($interval == "fiveminutes") {
107
  echo "selected='selected'";
108
  }
109
- ?>><?php _e('every 5 minutes', 'postie') ?>
110
  </option>
111
 
112
  <option value="oneminute" <?php
113
  if ($interval == "oneminute") {
114
  echo "selected='selected'";
115
  }
116
- ?>><?php _e('every 1 minute', 'postie') ?>
117
  </option>
118
 
119
  <option value="thirtyseconds" <?php
120
  if ($interval == "thirtyseconds") {
121
  echo "selected='selected'";
122
  }
123
- ?>><?php _e('every 30 seconds', 'postie') ?>
124
  </option>
125
 
126
  <option value="fifteenseconds" <?php
127
  if ($interval == "fifteenseconds") {
128
  echo "selected='selected'";
129
  }
130
- ?>><?php _e('every 15 seconds', 'postie') ?>
131
  </option>
132
 
133
  <option value="manual" <?php
134
  if ($interval == "manual") {
135
  echo "selected='selected'";
136
  }
137
- ?>><?php _e('check manually', 'postie') ?>
138
  </option>
139
  </select>
140
  </td>
6
  <td>
7
  <select name='postie-settings[input_connection]' id='postie-settings-input_connection'>
8
  <option value="sockets" <?php echo (($input_connection == "socket") ? " selected='selected' " : "") ?>>Sockets</option>
9
+ <?php if (function_exists('curl_version')) { ?>
10
+ <option value="curl" <?php echo ($input_connection == "curl") ? "selected='selected' " : "" ?>>cURL</option>
11
+ <?php } ?>
12
  </select>
13
  <p class='description'><?php _e("Sockets is prefered, but doesn't work with some hosts.", 'postie'); ?></p>
14
  </td>
27
  </td>
28
  </tr>
29
 
30
+ <?php //echo BuildBooleanSelect(__("Use Transport Layer Security (TLS)", 'postie'), 'postie-settings[email_tls]', $email_tls, __("Choose Yes if your server requires TLS", 'postie')); ?>
31
 
32
  <tr>
33
  <th scope="row"><label for="postie-settings-mail_server_port"><?php _e('Port', 'postie') ?></label></th>
70
  <td>
71
  <select name='postie-settings[interval]' id='postie-settings-interval'>
72
  <option value="weekly" <?php
73
+ if ($interval == "weekly") {
74
+ echo "selected='selected'";
75
+ }
76
+ ?>><?php _e('Once weekly', 'postie') ?>
77
  </option>
78
 
79
  <option value="daily"<?php
80
  if ($interval == "daily") {
81
  echo "selected='selected'";
82
  }
83
+ ?>><?php _e('daily', 'postie') ?>
84
  </option>
85
 
86
  <option value="hourly" <?php
87
  if ($interval == "hourly") {
88
  echo "selected='selected'";
89
  }
90
+ ?>><?php _e('hourly', 'postie') ?>
91
  </option>
92
 
93
  <option value="twiceperhour" <?php
94
  if ($interval == "twiceperhour") {
95
  echo "selected='selected'";
96
  }
97
+ ?>><?php _e('twice per hour', 'postie') ?>
98
  </option>
99
 
100
  <option value="tenminutes" <?php
101
  if ($interval == "tenminutes") {
102
  echo "selected='selected'";
103
  }
104
+ ?>><?php _e('every 10 minutes', 'postie') ?>
105
  </option>
106
 
107
  <option value="fiveminutes" <?php
108
  if ($interval == "fiveminutes") {
109
  echo "selected='selected'";
110
  }
111
+ ?>><?php _e('every 5 minutes', 'postie') ?>
112
  </option>
113
 
114
  <option value="oneminute" <?php
115
  if ($interval == "oneminute") {
116
  echo "selected='selected'";
117
  }
118
+ ?>><?php _e('every 1 minute', 'postie') ?>
119
  </option>
120
 
121
  <option value="thirtyseconds" <?php
122
  if ($interval == "thirtyseconds") {
123
  echo "selected='selected'";
124
  }
125
+ ?>><?php _e('every 30 seconds', 'postie') ?>
126
  </option>
127
 
128
  <option value="fifteenseconds" <?php
129
  if ($interval == "fifteenseconds") {
130
  echo "selected='selected'";
131
  }
132
+ ?>><?php _e('every 15 seconds', 'postie') ?>
133
  </option>
134
 
135
  <option value="manual" <?php
136
  if ($interval == "manual") {
137
  echo "selected='selected'";
138
  }
139
+ ?>><?php _e('check manually', 'postie') ?>
140
  </option>
141
  </select>
142
  </td>
docs/Changes.txt CHANGED
@@ -32,6 +32,9 @@ All script, style and body tags are stripped from html emails.
32
  Attachments are now processed in the order they were attached.
33
 
34
  == CHANGELOG ==
 
 
 
35
  = 1.8.4 (2016-10-17)
36
  * General release
37
 
32
  Attachments are now processed in the order they were attached.
33
 
34
  == CHANGELOG ==
35
+ = 1.8.5 (2016-10-18)
36
+ * Fix to check if cURL is installed before using
37
+
38
  = 1.8.4 (2016-10-17)
39
  * General release
40
 
docs/Postie.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.6.1
9
- Stable tag: 1.8.4
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.6.1
9
+ Stable tag: 1.8.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
7
- Version: 1.8.4
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1517002 2016-10-17 22:14:58Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
@@ -49,7 +49,7 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/pPop3MailServer.php"
49
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib_autolink.php");
50
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
51
 
52
- define('POSTIE_VERSION', '1.8.4');
53
  define("POSTIE_ROOT", dirname(__FILE__));
54
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
55
 
@@ -246,7 +246,11 @@ function postie_warnings() {
246
  add_action('admin_notices', 'postie_iconv_warning');
247
  }
248
 
249
- $cv = curl_version();
 
 
 
 
250
  if ($config['input_connection'] == 'curl' && !version_compare($cv['version'], '7.30.0', 'ge')) {
251
 
252
  function postie_curl_warning() {
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
7
+ Version: 1.8.5
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1517493 2016-10-18 17:30:07Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
49
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib_autolink.php");
50
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
51
 
52
+ define('POSTIE_VERSION', '1.8.5');
53
  define("POSTIE_ROOT", dirname(__FILE__));
54
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
55
 
246
  add_action('admin_notices', 'postie_iconv_warning');
247
  }
248
 
249
+ if (function_exists('curl_version')) {
250
+ $cv = curl_version();
251
+ } else {
252
+ $cv = '1.0.0';
253
+ }
254
  if ($config['input_connection'] == 'curl' && !version_compare($cv['version'], '7.30.0', 'ge')) {
255
 
256
  function postie_curl_warning() {
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.6.1
9
- Stable tag: 1.8.4
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -240,6 +240,9 @@ All script, style and body tags are stripped from html emails.
240
  Attachments are now processed in the order they were attached.
241
 
242
  == CHANGELOG ==
 
 
 
243
  = 1.8.4 (2016-10-17)
244
  * General release
245
 
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.6.1
9
+ Stable tag: 1.8.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
240
  Attachments are now processed in the order they were attached.
241
 
242
  == CHANGELOG ==
243
+ = 1.8.5 (2016-10-18)
244
+ * Fix to check if cURL is installed before using
245
+
246
  = 1.8.4 (2016-10-17)
247
  * General release
248