Skip to content

Commit

Permalink
twitter login should work even if the option is disable to be consist…
Browse files Browse the repository at this point in the history
…ent with the behavior of the other social network logins
  • Loading branch information
rodrigoprimo committed Oct 24, 2013
1 parent 2f6badc commit 663b45a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions twitter/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
define('CONSUMER_SECRET', get_option('social_connect_twitter_consumer_secret'));
define('OAUTH_CALLBACK', SOCIAL_CONNECT_PLUGIN_URL . '/twitter/callback.php');

$twitter_enabled = get_option('social_connect_twitter_enabled');

if($twitter_enabled && CONSUMER_KEY != '' && CONSUMER_SECRET != '') {
if(CONSUMER_KEY != '' && CONSUMER_SECRET != '') {
/* Build TwitterOAuth object with client credentials. */
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);

Expand Down

0 comments on commit 663b45a

Please sign in to comment.