Postie - Version 1.4.3

Version Description

  • Removed get_user_by function to make compatible with wp 3.3 - now requires 2.8+
Download this release

Release Info

Developer robfelty
Plugin Icon 128x128 Postie
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

Files changed (4) hide show
  1. Revision +2 -2
  2. postie-functions.php +1 -39
  3. postie.php +2 -2
  4. readme.txt +12 -4
Revision CHANGED
@@ -1,2 +1,2 @@
1
- Revision: 338604
2
- Last Changed Date: 2010-11-23 11:21:40 -0500 (Tue, 23 Nov 2010)
1
+ Revision: 474354
2
+ Last Changed Date: 2011-11-02 00:01:06 -0400 (Wed, 02 Nov 2011)
postie-functions.php CHANGED
@@ -10,7 +10,7 @@ if (!ini_get('safe_mode')) {
10
 
11
  //include_once (dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR."wp-admin" . DIRECTORY_SEPARATOR . "upgrade-functions.php");
12
  /*
13
- $Id: postie-functions.php 338608 2011-01-29 19:46:40Z robfelty $
14
  */
15
 
16
  /*TODO
@@ -2582,44 +2582,6 @@ function VodafoneHandler(&$content, &$attachments){
2582
  }
2583
 
2584
  }
2585
- /* this is included in WP 2.8+. We are using our own (unmodified) version for
2586
- backwards compatibility */
2587
- if (!function_exists('get_user_by')) {
2588
- function get_user_by($field, $value) {
2589
- global $wpdb;
2590
-
2591
- switch ($field) {
2592
- case 'id':
2593
- return get_userdata($value);
2594
- break;
2595
- case 'slug':
2596
- $user_id = wp_cache_get($value, 'userslugs');
2597
- $field = 'user_nicename';
2598
- break;
2599
- case 'email':
2600
- $user_id = wp_cache_get($value, 'useremail');
2601
- $field = 'user_email';
2602
- break;
2603
- case 'login':
2604
- $value = sanitize_user( $value );
2605
- $user_id = wp_cache_get($value, 'userlogins');
2606
- $field = 'user_login';
2607
- break;
2608
- default:
2609
- return false;
2610
- }
2611
-
2612
- if ( false !== $user_id )
2613
- return get_userdata($user_id);
2614
-
2615
- if ( !$user = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->users WHERE $field = %s", $value) ) )
2616
- return false;
2617
-
2618
- _fill_user($user);
2619
-
2620
- return $user;
2621
- }
2622
- }
2623
 
2624
  define('WP_POST_REVISIONS', $revisions);
2625
  if (!ini_get('safe_mode')) {
10
 
11
  //include_once (dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR."wp-admin" . DIRECTORY_SEPARATOR . "upgrade-functions.php");
12
  /*
13
+ $Id: postie-functions.php 458511 2011-11-02 04:01:06Z robfelty $
14
  */
15
 
16
  /*TODO
2582
  }
2583
 
2584
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2585
 
2586
  define('WP_POST_REVISIONS', $revisions);
2587
  if (!ini_get('safe_mode')) {
postie.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: Postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  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://forum.robfelty.com/forum/postie'>postie forum</a> for support.
6
- Version: 1.4.2
7
  Author: Robert Felty
8
  Author URI: http://blog.robfelty.com/
9
  */
10
 
11
  /*
12
- $Id: postie.php 338608 2011-01-29 19:46:40Z robfelty $
13
  * -= Requests Pending =-
14
  * German Umlats don't work
15
  * Problems under PHP5
3
  Plugin Name: Postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  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://forum.robfelty.com/forum/postie'>postie forum</a> for support.
6
+ Version: 1.4.3
7
  Author: Robert Felty
8
  Author URI: http://blog.robfelty.com/
9
  */
10
 
11
  /*
12
+ $Id: postie.php 474355 2011-12-13 04:28:29Z robfelty $
13
  * -= Requests Pending =-
14
  * German Umlats don't work
15
  * Problems under PHP5
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: robfelty,
3
  Donate link: http://blog.robfelty.com/plugins/postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  Tags: e-mail, email
6
- Requires at least: 2.3
7
- Tested up to: 3.0
8
- Stable tag: 1.4.2
9
 
10
  The Postie plugin allows you to blog via e-mail, including many advanced
11
  features not found in wordpress's default post by e-mail feature.
@@ -19,6 +19,10 @@ imap and pop3, with the option for ssl with both. For usage notes, see the
19
 
20
  = What's new? =
21
 
 
 
 
 
22
  * 1.4.2 (2011.01.29)
23
  * Fixed mailto link bug (thanks to Jason McNeil)
24
  * Fixed bug with attachments with non-ascii characters in filename (thanks to
@@ -350,12 +354,16 @@ option to convert url into links turned on)
350
 
351
  == CHANGELOG ==
352
 
353
- = 1.4.3 =
354
  * TODO - fix corruption of rtf attachments
355
  * TODO - add port checking in tests
356
  * TODO - non-image uploads get ignored in content when using autogallery - see
357
  replaceimageplaceholders
358
 
 
 
 
 
359
  = 1.4.2 (2011.01.29) =
360
  * Fixed mailto link bug (thanks to Jason McNeil)
361
  * Fixed bug with attachments with non-ascii characters in filename (thanks to
3
  Donate link: http://blog.robfelty.com/plugins/postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  Tags: e-mail, email
6
+ Requires at least: 2.8
7
+ Tested up to: 3.3
8
+ Stable tag: 1.4.3
9
 
10
  The Postie plugin allows you to blog via e-mail, including many advanced
11
  features not found in wordpress's default post by e-mail feature.
19
 
20
  = What's new? =
21
 
22
+ * 1.4.3 (2011.12.12)
23
+ * Removed get_user_by function to make compatible with wp 3.3 - now requires
24
+ 2.8+
25
+
26
  * 1.4.2 (2011.01.29)
27
  * Fixed mailto link bug (thanks to Jason McNeil)
28
  * Fixed bug with attachments with non-ascii characters in filename (thanks to
354
 
355
  == CHANGELOG ==
356
 
357
+ = 1.4.4 =
358
  * TODO - fix corruption of rtf attachments
359
  * TODO - add port checking in tests
360
  * TODO - non-image uploads get ignored in content when using autogallery - see
361
  replaceimageplaceholders
362
 
363
+ = 1.4.3 =
364
+ * Removed get_user_by function to make compatible with wp 3.3 - now requires
365
+ 2.8+
366
+
367
  = 1.4.2 (2011.01.29) =
368
  * Fixed mailto link bug (thanks to Jason McNeil)
369
  * Fixed bug with attachments with non-ascii characters in filename (thanks to