Postie - Version 1.5.17

Version Description

(2013.12.19) = * Fixed date calculation in test screen. * Fixed text encoding issues for systems with PHP 5.4 * Updated CSS to better match WordPress 3.8 styles. * Removed reference to pluggable.php to allow other plugins to plug these functions. * Verified compatibility with WP 3.8

Download this release

Release Info

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

Code changes from version 1.5.16 to 1.5.17

Revision CHANGED
@@ -0,0 +1,2 @@
 
 
1
+ Revision: 825716
2
+ Last Changed Date: 2013-12-17 21:46:53 -0800 (Tue, 17 Dec 2013)
config_form.php CHANGED
@@ -178,7 +178,7 @@
178
  <tr>
179
  <th scope="row"><?php _e('Postie Time Correction:', 'postie') ?>
180
  <br />
181
- <span class='recommendation'><?php _e("Should be the same as your normal offset - but this lets you adjust it in cases where that doesn't work.", 'postie'); ?></span>
182
  </th>
183
  <td><input name='postie-settings[time_offset]' type="text" id='postie-settings-time_offset' size="2" value="<?php echo esc_attr($time_offset); ?>" />
184
  <?php _e('hours', 'postie') ?>
@@ -825,14 +825,6 @@
825
  name='postie-settings[generaltemplate]'><?php echo esc_attr($generaltemplate) ?></textarea>
826
  </td>
827
  </tr>
828
- <tr>
829
- <th style='height:64px'>
830
- <?php _e('Preview', 'postie'); ?>
831
- </th>
832
- <td>
833
-
834
- </td>
835
- </tr>
836
  </table>
837
  </div>
838
  <div id="simpleTabs-content-7" class="simpleTabs-content">
@@ -844,17 +836,14 @@
844
 
845
  <p class="submit">
846
  <input type="hidden" name="action" value="update" />
847
-
848
- <input type="hidden" name="page_options"
849
- value="postie-settings" />
850
-
851
  <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button button-primary" />
852
-
853
  </p>
854
  </form>
855
- <form name="postie-options" method="post">
856
  <input type="hidden" name="action" value="reset" />
857
- <input name="Submit" value="<?php _e("Reset Settings To Defaults", 'postie') ?>" type="submit" class='button'> (Your Mail server settings will be retained)
 
858
  </form>
859
  </div>
860
 
178
  <tr>
179
  <th scope="row"><?php _e('Postie Time Correction:', 'postie') ?>
180
  <br />
181
+ <span class='recommendation'><?php _e("Should be the same as your normal offset, but this lets you adjust it in cases where that doesn't work.", 'postie'); ?></span>
182
  </th>
183
  <td><input name='postie-settings[time_offset]' type="text" id='postie-settings-time_offset' size="2" value="<?php echo esc_attr($time_offset); ?>" />
184
  <?php _e('hours', 'postie') ?>
825
  name='postie-settings[generaltemplate]'><?php echo esc_attr($generaltemplate) ?></textarea>
826
  </td>
827
  </tr>
 
 
 
 
 
 
 
 
828
  </table>
829
  </div>
830
  <div id="simpleTabs-content-7" class="simpleTabs-content">
836
 
837
  <p class="submit">
838
  <input type="hidden" name="action" value="update" />
839
+ <input type="hidden" name="page_options" value="postie-settings" />
 
 
 
840
  <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button button-primary" />
 
841
  </p>
842
  </form>
843
+ <form id="postie-options" name="postie-options" method="post">
844
  <input type="hidden" name="action" value="reset" />
845
+ <input name="Submit" value="<?php _e("Reset Settings To Defaults", 'postie') ?>" type="submit" class='button'>
846
+ <span>&nbsp;(Your Mail server settings will be retained)</span>
847
  </form>
848
  </div>
849
 
css/simpleTabs.css CHANGED
@@ -1,6 +1,6 @@
1
  #simpleTabs {
2
  width: 98%;
3
- border: 1px solid #c9efec;
4
  border-top: none;
5
  margin-top: 10px;
6
  margin-bottom: 10px;
@@ -10,7 +10,7 @@
10
  list-style: none;
11
  margin: 0;
12
  padding: 0;
13
- background: #e1efee;
14
  }
15
  .simpleTabs-nav li{
16
  float: left;
@@ -18,9 +18,10 @@
18
  color: #6d6d6d;
19
  cursor: pointer;
20
  text-align: center;
 
21
  }
22
  .simpleTabs-nav li:hover{
23
- background: #c9efec;
24
  }
25
  .simpleTabs-nav li.close{
26
  float: right;
1
  #simpleTabs {
2
  width: 98%;
3
+ border: 1px solid lightgrey;
4
  border-top: none;
5
  margin-top: 10px;
6
  margin-bottom: 10px;
10
  list-style: none;
11
  margin: 0;
12
  padding: 0;
13
+ background: lightgrey;
14
  }
15
  .simpleTabs-nav li{
16
  float: left;
18
  color: #6d6d6d;
19
  cursor: pointer;
20
  text-align: center;
21
+ margin-bottom: 0px;
22
  }
23
  .simpleTabs-nav li:hover{
24
+ background: lightgrey;
25
  }
26
  .simpleTabs-nav li.close{
27
  float: right;
css/style.css CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  div input.button {
2
  margin: 3px 0px 3px 0px;
3
  }
@@ -8,9 +14,6 @@ div input.button {
8
  #w3c {
9
  margin-top: 50px;
10
  }
11
- table.form-table {
12
- background: #E5F3FF;
13
- }
14
  table.form-table td {
15
  line-height:1em;
16
  margin:0;
1
+ .submit {
2
+ padding: 10px;
3
+ }
4
+ form#postie-options {
5
+ padding: 10px;
6
+ }
7
  div input.button {
8
  margin: 3px 0px 3px 0px;
9
  }
14
  #w3c {
15
  margin-top: 50px;
16
  }
 
 
 
17
  table.form-table td {
18
  line-height:1em;
19
  margin:0;
docs/Changes.txt CHANGED
@@ -22,6 +22,13 @@ All script, style and body tags are stripped from html emails.
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
 
 
 
 
 
 
 
25
  = 1.5.16 (2013.09.15) =
26
  * Fixed date detection bug in forwarded messages.
27
  * Possible fix for blank screen issue (flush buffers rather than check for sent headers).
@@ -30,7 +37,7 @@ Attachments are now processed in the order they were attached.
30
  * Fixed bug where excerpts where not getting the newline settings applied.
31
  * Fixed bug where the attachment template was not getting set on new installs.
32
  * Fixed bug where mp3 files were causing failures when getting meta-data.
33
- * Verified compatibility with WP 36. and 3.6.1
34
 
35
  = 1.5.15 (2013.07.01) =
36
  * Added message warning that filter 'postie_post' has been deprecated.
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
25
+ = 1.5.17 (2013.12.19) =
26
+ * Fixed date calculation in test screen.
27
+ * Fixed text encoding issues for systems with PHP 5.4
28
+ * Updated CSS to better match WordPress 3.8 styles.
29
+ * Removed reference to pluggable.php to allow other plugins to plug these functions.
30
+ * Verified compatibility with WP 3.8
31
+
32
  = 1.5.16 (2013.09.15) =
33
  * Fixed date detection bug in forwarded messages.
34
  * Possible fix for blank screen issue (flush buffers rather than check for sent headers).
37
  * Fixed bug where excerpts where not getting the newline settings applied.
38
  * Fixed bug where the attachment template was not getting set on new installs.
39
  * Fixed bug where mp3 files were causing failures when getting meta-data.
40
+ * Verified compatibility with WP 3.6 and 3.6.1
41
 
42
  = 1.5.15 (2013.07.01) =
43
  * Added message warning that filter 'postie_post' has been deprecated.
docs/Postie.txt CHANGED
@@ -5,8 +5,8 @@ Author URI: http://allens-home.com/
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
- Tested up to: 3.6.1
9
- Stable tag: 1.5.16
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
+ Tested up to: 3.8
9
+ Stable tag: 1.5.17
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
docs/TODO.txt CHANGED
@@ -8,6 +8,8 @@ dynamically determine video size (height/width) - https://code.google.com/p/phpv
8
  gallery logic does not handle both images and non-images
9
  plugin conflict - Image Rotation Fixer
10
  send email notice when attachments are rejected.
 
 
11
 
12
  =========
13
  AddOn Ideas
8
  gallery logic does not handle both images and non-images
9
  plugin conflict - Image Rotation Fixer
10
  send email notice when attachments are rejected.
11
+ review http://wp.smashingmagazine.com/2011/11/23/improve-wordpress-plugins-readme-txt/
12
+ more info in postie.txt
13
 
14
  =========
15
  AddOn Ideas
postie-functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: postie-functions.php 771364 2013-09-13 03:34:07Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
@@ -1086,7 +1086,7 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1086
  //$meta_return = "<div>$meta_return</div>\n";
1087
  } else {
1088
  DebugEcho("html not allowed (htmlentities)");
1089
- $meta_return .= htmlentities($part->body);
1090
  }
1091
  $meta_return = filter_StripPGP($meta_return);
1092
  //DebugEcho("meta return: $meta_return");
@@ -1111,6 +1111,8 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1111
  //featured image logic
1112
  //set the first image we come across as the featured image
1113
  DebugEcho("has_post_thumbnail: " . has_post_thumbnail($post_id));
 
 
1114
  if ($featured_image && !has_post_thumbnail($post_id)) {
1115
  DebugEcho("featured image: $file_id");
1116
  set_post_thumbnail($post_id, $file_id);
1
  <?php
2
 
3
  /*
4
+ $Id: postie-functions.php 824387 2013-12-18 05:46:53Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
1086
  //$meta_return = "<div>$meta_return</div>\n";
1087
  } else {
1088
  DebugEcho("html not allowed (htmlentities)");
1089
+ $meta_return .= htmlentities($part->body, ENT_QUOTES, "UTF-8");
1090
  }
1091
  $meta_return = filter_StripPGP($meta_return);
1092
  //DebugEcho("meta return: $meta_return");
1111
  //featured image logic
1112
  //set the first image we come across as the featured image
1113
  DebugEcho("has_post_thumbnail: " . has_post_thumbnail($post_id));
1114
+ //DebugEcho("get_the_post_thumbnail: " .get_the_post_thumbnail($post_id));
1115
+
1116
  if ($featured_image && !has_post_thumbnail($post_id)) {
1117
  DebugEcho("featured image: $file_id");
1118
  set_post_thumbnail($post_id, $file_id);
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Signifigantly upgrades the posting by mail features of Word Press (See <a href='options-general.php?page=postie/postie.php'>Settings and options</a>) to configure your e-mail settings. See the <a href='http://wordpress.org/extend/plugins/postie/other_notes'>Readme</a> for usage. Visit the <a href='http://wordpress.org/support/plugin/postie'>postie forum</a> for support.
7
- Version: 1.5.16
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
@@ -27,10 +27,10 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 772964 2013-09-15 22:53:47Z WayneAllen $
31
  */
32
 
33
- define('POSTIE_VERSION', '1.5.16');
34
  define("POSTIE_ROOT", dirname(__FILE__));
35
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
36
 
@@ -175,12 +175,9 @@ function postie_warnings() {
175
 
176
  add_action('admin_notices', 'postie_mbstring_warning');
177
  }
178
-
179
- if (!function_exists('get_user_by')) {
180
- include ABSPATH . 'wp-includes/pluggable.php';
181
- }
182
- $adminuser = get_user_by('login', $config['admin_username']);
183
- if ($adminuser === false) {
184
 
185
  function postie_adminuser_warning() {
186
  echo "<div id='postie-mbstring-warning' class='error'><p><strong>";
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Signifigantly upgrades the posting by mail features of Word Press (See <a href='options-general.php?page=postie/postie.php'>Settings and options</a>) to configure your e-mail settings. See the <a href='http://wordpress.org/extend/plugins/postie/other_notes'>Readme</a> for usage. Visit the <a href='http://wordpress.org/support/plugin/postie'>postie forum</a> for support.
7
+ Version: 1.5.17
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 825747 2013-12-19 19:59:57Z WayneAllen $
31
  */
32
 
33
+ define('POSTIE_VERSION', '1.5.17');
34
  define("POSTIE_ROOT", dirname(__FILE__));
35
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
36
 
175
 
176
  add_action('admin_notices', 'postie_mbstring_warning');
177
  }
178
+
179
+ $userdata = WP_User::get_data_by( 'login', $config['admin_username'] );
180
+ if (!$userdata) {
 
 
 
181
 
182
  function postie_adminuser_warning() {
183
  echo "<div id='postie-mbstring-warning' class='error'><p><strong>";
postie_test.php CHANGED
@@ -26,9 +26,8 @@ if (!current_user_can('manage_options')) {
26
  <p>This shows what time it would be if you posted right now</p>
27
  <?php
28
  $content = "";
29
- $data = filter_Delay($content);
30
- EchoInfo("GMT: $data[1]");
31
- EchoInfo("Current: $data[0]");
32
  ?>
33
 
34
  <h2>Connect to Mail Host</h2>
26
  <p>This shows what time it would be if you posted right now</p>
27
  <?php
28
  $content = "";
29
+ $data = filter_Delay($content, null, $config['time_offset']);
30
+ EchoInfo("Post time: $data[0]");
 
31
  ?>
32
 
33
  <h2>Connect to Mail Host</h2>
readme.txt CHANGED
@@ -5,8 +5,8 @@ Author URI: http://allens-home.com/
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
- Tested up to: 3.6.1
9
- Stable tag: 1.5.16
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -445,6 +445,13 @@ All script, style and body tags are stripped from html emails.
445
  Attachments are now processed in the order they were attached.
446
 
447
  == CHANGELOG ==
 
 
 
 
 
 
 
448
  = 1.5.16 (2013.09.15) =
449
  * Fixed date detection bug in forwarded messages.
450
  * Possible fix for blank screen issue (flush buffers rather than check for sent headers).
@@ -453,7 +460,7 @@ Attachments are now processed in the order they were attached.
453
  * Fixed bug where excerpts where not getting the newline settings applied.
454
  * Fixed bug where the attachment template was not getting set on new installs.
455
  * Fixed bug where mp3 files were causing failures when getting meta-data.
456
- * Verified compatibility with WP 36. and 3.6.1
457
 
458
  = 1.5.15 (2013.07.01) =
459
  * Added message warning that filter 'postie_post' has been deprecated.
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
+ Tested up to: 3.8
9
+ Stable tag: 1.5.17
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
445
  Attachments are now processed in the order they were attached.
446
 
447
  == CHANGELOG ==
448
+ = 1.5.17 (2013.12.19) =
449
+ * Fixed date calculation in test screen.
450
+ * Fixed text encoding issues for systems with PHP 5.4
451
+ * Updated CSS to better match WordPress 3.8 styles.
452
+ * Removed reference to pluggable.php to allow other plugins to plug these functions.
453
+ * Verified compatibility with WP 3.8
454
+
455
  = 1.5.16 (2013.09.15) =
456
  * Fixed date detection bug in forwarded messages.
457
  * Possible fix for blank screen issue (flush buffers rather than check for sent headers).
460
  * Fixed bug where excerpts where not getting the newline settings applied.
461
  * Fixed bug where the attachment template was not getting set on new installs.
462
  * Fixed bug where mp3 files were causing failures when getting meta-data.
463
+ * Verified compatibility with WP 3.6 and 3.6.1
464
 
465
  = 1.5.15 (2013.07.01) =
466
  * Added message warning that filter 'postie_post' has been deprecated.