Social Login WordPress Plugin – AccessPress Social Login Lite - Version 3.4.4

Version Description

  • Twitter issue found and resolved.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Login WordPress Plugin – AccessPress Social Login Lite
Version 3.4.4
Comparing to
See all releases

Code changes from version 3.4.3 to 3.4.4

accesspress-social-login-lite.php CHANGED
@@ -5,7 +5,7 @@ defined('ABSPATH') or die("No script kiddies please!");
5
  Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
6
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
7
  Description: A plugin to add various social logins to a site.
8
- version: 3.4.3
9
  Author: AccessPress Themes
10
  Author URI: https://accesspressthemes.com/
11
  Text Domain: accesspress-social-login-lite
@@ -14,7 +14,7 @@ defined('ABSPATH') or die("No script kiddies please!");
14
  */
15
  //Declearation of the necessary constants for plugin
16
  if (!defined('APSL_VERSION')) {
17
- define('APSL_VERSION', '3.4.3');
18
  }
19
 
20
  if (!defined('APSL_IMAGE_DIR')) {
5
  Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
6
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
7
  Description: A plugin to add various social logins to a site.
8
+ version: 3.4.4
9
  Author: AccessPress Themes
10
  Author URI: https://accesspressthemes.com/
11
  Text Domain: accesspress-social-login-lite
14
  */
15
  //Declearation of the necessary constants for plugin
16
  if (!defined('APSL_VERSION')) {
17
+ define('APSL_VERSION', '3.4.4');
18
  }
19
 
20
  if (!defined('APSL_IMAGE_DIR')) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
- Stable tag: 3.4.3
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -139,6 +139,9 @@ Yes. You can use the AccessPress social login lite anywhere by using the shortco
139
 
140
  == Changelog ==
141
 
 
 
 
142
  = 3.4.3 =
143
  * Added promotional banners
144
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
+ Stable tag: 3.4.4
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
139
 
140
  == Changelog ==
141
 
142
+ = 3.4.4 =
143
+ * Twitter issue found and resolved.
144
+
145
  = 3.4.3 =
146
  * Added promotional banners
147
 
twitter/OAuth.php CHANGED
@@ -3,7 +3,7 @@
3
 
4
  /* Generic exception class
5
  */
6
- class OAuthException extends Exception {
7
  // pass
8
  }
9
 
@@ -443,7 +443,7 @@ class OAuthRequest {
443
  foreach ($this->parameters as $k => $v) {
444
  if (substr($k, 0, 5) != "oauth") continue;
445
  if (is_array($v)) {
446
- throw new OAuthException('Arrays not supported in headers');
447
  }
448
  $out .= ($first) ? ' ' : ',';
449
  $out .= OAuthUtil::urlencode_rfc3986($k) .
@@ -576,7 +576,7 @@ class OAuthServer {
576
  $version = '1.0';
577
  }
578
  if ($version !== $this->version) {
579
- throw new OAuthException("OAuth version '$version' not supported");
580
  }
581
  return $version;
582
  }
@@ -592,12 +592,12 @@ class OAuthServer {
592
  if (!$signature_method) {
593
  // According to chapter 7 ("Accessing Protected Ressources") the signature-method
594
  // parameter is required, and we can't just fallback to PLAINTEXT
595
- throw new OAuthException('No signature method parameter. This parameter is required');
596
  }
597
 
598
  if (!in_array($signature_method,
599
  array_keys($this->signature_methods))) {
600
- throw new OAuthException(
601
  "Signature method '$signature_method' not supported " .
602
  "try one of the following: " .
603
  implode(", ", array_keys($this->signature_methods))
@@ -615,12 +615,12 @@ class OAuthServer {
615
  : NULL;
616
 
617
  if (!$consumer_key) {
618
- throw new OAuthException("Invalid consumer key");
619
  }
620
 
621
  $consumer = $this->data_store->lookup_consumer($consumer_key);
622
  if (!$consumer) {
623
- throw new OAuthException("Invalid consumer");
624
  }
625
 
626
  return $consumer;
@@ -638,7 +638,7 @@ class OAuthServer {
638
  $consumer, $token_type, $token_field
639
  );
640
  if (!$token) {
641
- throw new OAuthException("Invalid $token_type token: $token_field");
642
  }
643
  return $token;
644
  }
@@ -670,7 +670,7 @@ class OAuthServer {
670
  );
671
 
672
  if (!$valid_sig) {
673
- throw new OAuthException("Invalid signature");
674
  }
675
  }
676
 
@@ -679,14 +679,14 @@ class OAuthServer {
679
  */
680
  private function check_timestamp($timestamp) {
681
  if( ! $timestamp )
682
- throw new OAuthException(
683
  'Missing timestamp parameter. The parameter is required'
684
  );
685
 
686
  // verify that timestamp is recentish
687
  $now = time();
688
  if (abs($now - $timestamp) > $this->timestamp_threshold) {
689
- throw new OAuthException(
690
  "Expired timestamp, yours $timestamp, ours $now"
691
  );
692
  }
@@ -697,7 +697,7 @@ class OAuthServer {
697
  */
698
  private function check_nonce($consumer, $token, $nonce, $timestamp) {
699
  if( ! $nonce )
700
- throw new OAuthException(
701
  'Missing nonce parameter. The parameter is required'
702
  );
703
 
@@ -709,7 +709,7 @@ class OAuthServer {
709
  $timestamp
710
  );
711
  if ($found) {
712
- throw new OAuthException("Nonce already used: $nonce");
713
  }
714
  }
715
 
3
 
4
  /* Generic exception class
5
  */
6
+ class TwitterOAuthException extends Exception {
7
  // pass
8
  }
9
 
443
  foreach ($this->parameters as $k => $v) {
444
  if (substr($k, 0, 5) != "oauth") continue;
445
  if (is_array($v)) {
446
+ throw new TwitterOAuthException('Arrays not supported in headers');
447
  }
448
  $out .= ($first) ? ' ' : ',';
449
  $out .= OAuthUtil::urlencode_rfc3986($k) .
576
  $version = '1.0';
577
  }
578
  if ($version !== $this->version) {
579
+ throw new TwitterOAuthException("OAuth version '$version' not supported");
580
  }
581
  return $version;
582
  }
592
  if (!$signature_method) {
593
  // According to chapter 7 ("Accessing Protected Ressources") the signature-method
594
  // parameter is required, and we can't just fallback to PLAINTEXT
595
+ throw new TwitterOAuthException('No signature method parameter. This parameter is required');
596
  }
597
 
598
  if (!in_array($signature_method,
599
  array_keys($this->signature_methods))) {
600
+ throw new TwitterOAuthException(
601
  "Signature method '$signature_method' not supported " .
602
  "try one of the following: " .
603
  implode(", ", array_keys($this->signature_methods))
615
  : NULL;
616
 
617
  if (!$consumer_key) {
618
+ throw new TwitterOAuthException("Invalid consumer key");
619
  }
620
 
621
  $consumer = $this->data_store->lookup_consumer($consumer_key);
622
  if (!$consumer) {
623
+ throw new TwitterOAuthException("Invalid consumer");
624
  }
625
 
626
  return $consumer;
638
  $consumer, $token_type, $token_field
639
  );
640
  if (!$token) {
641
+ throw new TwitterOAuthException("Invalid $token_type token: $token_field");
642
  }
643
  return $token;
644
  }
670
  );
671
 
672
  if (!$valid_sig) {
673
+ throw new TwitterOAuthException("Invalid signature");
674
  }
675
  }
676
 
679
  */
680
  private function check_timestamp($timestamp) {
681
  if( ! $timestamp )
682
+ throw new TwitterOAuthException(
683
  'Missing timestamp parameter. The parameter is required'
684
  );
685
 
686
  // verify that timestamp is recentish
687
  $now = time();
688
  if (abs($now - $timestamp) > $this->timestamp_threshold) {
689
+ throw new TwitterOAuthException(
690
  "Expired timestamp, yours $timestamp, ours $now"
691
  );
692
  }
697
  */
698
  private function check_nonce($consumer, $token, $nonce, $timestamp) {
699
  if( ! $nonce )
700
+ throw new TwitterOAuthException(
701
  'Missing nonce parameter. The parameter is required'
702
  );
703
 
709
  $timestamp
710
  );
711
  if ($found) {
712
+ throw new TwitterOAuthException("Nonce already used: $nonce");
713
  }
714
  }
715