WP to Twitter - Version 3.3.5

Version Description

  • Bug fix: Assignment replaced with comparison in connection creation.
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 WP to Twitter
Version 3.3.5
Comparing to
See all releases

Code changes from version 3.3.4 to 3.3.5

Files changed (3) hide show
  1. readme.txt +5 -1
  2. wp-to-twitter-oauth.php +3 -2
  3. wp-to-twitter.php +2 -2
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tested up to: 4.9
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  Text Domain: wp-to-twitter
10
- Stable tag: 3.3.4
11
 
12
  Posts a Twitter update when you update your WordPress blog or add a link, with your chosen URL shortening service.
13
 
@@ -65,6 +65,10 @@ Check out my <a href="https://github.com/joedolson/plugin-extensions/tree/master
65
 
66
  == Changelog ==
67
 
 
 
 
 
68
  = 3.3.4 =
69
 
70
  * Bug fix: fallback normalizer method called incorrectly
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  Text Domain: wp-to-twitter
10
+ Stable tag: 3.3.5
11
 
12
  Posts a Twitter update when you update your WordPress blog or add a link, with your chosen URL shortening service.
13
 
65
 
66
  == Changelog ==
67
 
68
+ = 3.3.5 =
69
+
70
+ * Bug fix: Assignment replaced with comparison in connection creation.
71
+
72
  = 3.3.4 =
73
 
74
  * Bug fix: fallback normalizer method called incorrectly
wp-to-twitter-oauth.php CHANGED
@@ -131,8 +131,9 @@ function wpt_update_oauth_settings( $auth = false, $post = false ) {
131
  update_user_meta( $auth, 'oauth_token', $ot );
132
  update_user_meta( $auth, 'oauth_token_secret', $ots );
133
  }
134
- $message = 'failed';
135
- if ( wpt_oauth_connection( $auth ) == $connection ) {
 
136
  $data = $connection->get( 'https://api.twitter.com/1.1/account/verify_credentials.json' );
137
  if ( '200' != $connection->http_code ) {
138
  $data = json_decode( $data );
131
  update_user_meta( $auth, 'oauth_token', $ot );
132
  update_user_meta( $auth, 'oauth_token_secret', $ots );
133
  }
134
+ $message = 'failed';
135
+ $connection = wpt_oauth_connection( $auth );
136
+ if ( $connection ) {
137
  $data = $connection->get( 'https://api.twitter.com/1.1/account/verify_credentials.json' );
138
  if ( '200' != $connection->http_code ) {
139
  $data = json_decode( $data );
wp-to-twitter.php CHANGED
@@ -17,7 +17,7 @@
17
  * License: GPL-2.0+
18
  * License URI: http://www.gnu.org/license/gpl-2.0.txt
19
  * Domain Path: lang
20
- * Version: 3.3.4
21
  */
22
 
23
  /*
@@ -56,7 +56,7 @@ require_once( plugin_dir_path( __FILE__ ) . 'wpt-widget.php' );
56
  require_once( plugin_dir_path( __FILE__ ) . 'wpt-rate-limiting.php' );
57
 
58
  global $wpt_version;
59
- $wpt_version = '3.3.4';
60
 
61
  add_action( 'init', 'wpt_load_textdomain' );
62
  /**
17
  * License: GPL-2.0+
18
  * License URI: http://www.gnu.org/license/gpl-2.0.txt
19
  * Domain Path: lang
20
+ * Version: 3.3.5
21
  */
22
 
23
  /*
56
  require_once( plugin_dir_path( __FILE__ ) . 'wpt-rate-limiting.php' );
57
 
58
  global $wpt_version;
59
+ $wpt_version = '3.3.5';
60
 
61
  add_action( 'init', 'wpt_load_textdomain' );
62
  /**