WordPress.org

Plugin Directory

Changeset 583267


Ignore:
Timestamp:
08/08/12 23:44:45 (21 months ago)
Author:
joedolson
Message:

Hate to do this right away, but...fixes broken #account# template tag.

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

Legend:

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

    r582467 r583267  
    44Tags: twitter, microblogging, su.pr, bitly, yourls, redirect, shortener, post, links 
    55Requires at least: 2.9.2 (partial) 
    6 Tested up to: 3.4 
     6Tested up to: 3.4.1 
    77License: GPLv2 or later 
    88Stable tag: trunk 
     
    5858== Changelog == 
    5959 
     60= 2.4.8 = 
     61 
     62* Bug fix: #account# shortcode broken in 2.4.7 
     63* Bug fix: Missing function if WP Tweets PRO installed but not upgraded to 1.2.0 
     64 
    6065= 2.4.7 = 
    6166 
  • wp-to-twitter/trunk/wp-to-twitter.php

    r582467 r583267  
    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.4.7 
     6Version: 2.4.8 
    77Author: Joseph Dolson 
    88Author URI: http://www.joedolson.com/ 
     
    5858 
    5959global $wpt_version,$jd_plugin_url,$jdwp_api_post_status; 
    60 $wpt_version = "2.4.7"; 
     60$wpt_version = "2.4.8"; 
    6161$plugin_dir = basename(dirname(__FILE__)); 
    6262load_plugin_textdomain( 'wp-to-twitter', false, dirname( plugin_basename( __FILE__ ) ) ); 
     
    248248    // prevent duplicate Tweets 
    249249    if ( !wpt_check_oauth( $auth )  ) {  
    250             if ( function_exists( 'wpt_pro_exists' ) ) { // for PRO users, save error data.  
     250            if ( function_exists( 'wpt_pro_exists' ) && function_exists( 'wpt_save_error' ) ) { // for PRO users, save error data.  
    251251                wpt_save_error( $id, $auth, $twit, __('This account is not authorized to post to Twitter.','wp-tweets-pro'), '401', time() ); 
    252252            } 
     
    256256    $check = ( !$auth )?get_option('jd_last_tweet'):get_user_meta( $auth, 'wpt_last_tweet', true ); // get user's last tweet 
    257257    if ( $check == $twit || $twit == '' || !$twit ) { 
    258             if ( function_exists( 'wpt_pro_exists' ) ) { // for PRO users, save error data.  
     258            if ( function_exists( 'wpt_pro_exists' ) && function_exists( 'wpt_save_error' ) ) { // for PRO users, save error data.  
    259259                wpt_save_error( $id, $auth, $twit, __('This tweet is identical to another Tweet recently sent to this account.','wp-tweets-pro'), '403', time() ); 
    260260            }    
     
    310310            // end debugging 
    311311            $update = ( !$auth )?update_option( 'jd_last_tweet',$twit ):update_user_meta( $auth, 'wpt_last_tweet',$twit ); 
    312             if ( function_exists( 'wpt_pro_exists' ) ) { // for PRO users, save error data.  
     312            if ( function_exists( 'wpt_pro_exists' ) && function_exists( 'wpt_save_error' ) ) { // for PRO users, save error data.  
    313313                wpt_save_error( $id, $auth, $twit, $error, $http_code, time() ); 
    314314            } 
     
    384384    $post_sentence = str_ireplace( '#account#', $account, $sentence ); 
    385385    if ( function_exists('wpt_pro_exists') ) { 
    386         $post_sentence = str_ireplace( '#reference#', $reference, $sentence ); 
     386        $post_sentence = str_ireplace( '#reference#', $reference, $post_sentence ); 
    387387    } else { 
    388         $post_sentence = str_ireplace( '#reference#', '', $sentence );   
     388        $post_sentence = str_ireplace( '#reference#', '', $post_sentence );  
    389389    } 
    390390    $post_sentence = str_ireplace( '#url#', $thisposturl, $post_sentence ); 
Note: See TracChangeset for help on using the changeset viewer.