WordPress.org

Plugin Directory

Changeset 653879


Ignore:
Timestamp:
01/16/13 20:38:48 (15 months ago)
Author:
joedolson
Message:

Quick fixes for stupid mistakes. Only relevant for PRO users.

Location:
wp-to-twitter/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-to-twitter/trunk/readme.txt

    r652672 r653879  
    5252 
    5353== Changelog == 
     54 
     55= 2.5.7 = 
     56 
     57* Minor fixes for stupid mistakes. I apologize for the inconvenience. 
    5458 
    5559= 2.5.6 = 
     
    766770== Upgrade Notice == 
    767771 
    768 * 2.5.6 Changes in 2.5.6 only effect people using the WP Tweets PRO upgrade. 
     772* 2.5.7 Changes in 2.5.6 only effect people using the WP Tweets PRO upgrade. 
  • wp-to-twitter/trunk/wp-to-twitter-oauth.php

    r652672 r653879  
    1515 
    1616function wpt_get_user_verification( $auth ) { 
    17     if ( get_option( 'jd_individual_twitter_users' ) != 1 ) {  
     17    if ( get_option( 'jd_individual_twitter_users' ) != '1' ) { 
    1818        return false;  
    1919    } else { 
    2020        $auth = get_user_meta( $auth,'wtt_oauth_hash',true ); 
     21        return $auth; 
    2122    } 
    2223    return false; 
  • wp-to-twitter/trunk/wp-to-twitter.php

    r652672 r653879  
    44Plugin URI: http://www.joedolson.com/articles/wp-to-twitter/ 
    55Description: Posts a Tweet when you update your WordPress blog or post to your blogroll, using your chosen URL shortening service. Rich in features for customizing and promoting your Tweets. 
    6 Version: 2.5.6 
     6Version: 2.5.7 
    77Author: Joseph Dolson 
    88Author URI: http://www.joedolson.com/ 
     
    5353 
    5454global $wpt_version,$jd_plugin_url; 
    55 $wpt_version = "2.5.6"; 
     55$wpt_version = "2.5.7"; 
    5656$plugin_dir = basename(dirname(__FILE__)); 
    5757load_plugin_textdomain( 'wp-to-twitter', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' ); 
     
    435435    } 
    436436    if ( get_user_meta( $auth, 'wpt-remove', true ) == 'on' ) { $account = ''; } 
    437     if ( !$retweet ) {   
    438         if ( get_option( 'jd_twit_prepend' ) != "" && $sentence != '' ) { 
    439             $sentence = stripslashes(get_option( 'jd_twit_prepend' )) . " " . $sentence; 
    440         } 
    441         if ( get_option( 'jd_twit_append' ) != "" && $sentence != '' ) { 
    442             $sentence = $sentence . " " . stripslashes(get_option( 'jd_twit_append' )); 
    443         } 
     437    if ( get_option( 'jd_twit_prepend' ) != "" && $sentence != '' ) { 
     438        $sentence = stripslashes(get_option( 'jd_twit_prepend' )) . " " . $sentence; 
     439    } 
     440    if ( get_option( 'jd_twit_append' ) != "" && $sentence != '' ) { 
     441        $sentence = $sentence . " " . stripslashes(get_option( 'jd_twit_append' )); 
    444442    } 
    445443    $encoding = get_option('blog_charset'); 
     
    778776                        $user = get_userdata( $auth ); 
    779777                        $auth_verified = wtt_oauth_test( $auth,'verify' ); 
    780                         $auth = ( get_option( 'jd_individual_twitter_users' ) != 1 )?false:$auth; 
     778                        $auth = ( get_option( 'jd_individual_twitter_users' ) != 1 || !$auth_verified )?false:$auth; 
    781779                        if ( $post_info['wpt_delay_tweet'] == 0 || $post_info['wpt_delay_tweet'] == '' || $post_info['wpt_no_delay'] == 'on' ) { 
    782780                            $tweet = jd_doTwitterAPIPost( $sentence, $auth, $post_ID ); 
Note: See TracChangeset for help on using the changeset viewer.