WordPress.org

Plugin Directory

Changeset 855945


Ignore:
Timestamp:
02/11/14 22:44:15 (16 months ago)
Author:
joedolson
Message:

disable debugging; minor bug fix

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

Legend:

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

    r855076 r855945  
    5757 
    5858== Changelog == 
     59 
     60= 2.8.3 = 
     61 
     62* Don't fetch subscribers in user lists. 
     63* Disables debugging.  
    5964 
    6065= 2.8.2 = 
  • wp-to-twitter/trunk/wp-to-twitter-oauth.php

    r842022 r855945  
    169169} 
    170170$server_time = date( DATE_COOKIE ); 
    171 $response = wp_remote_get( "https://api.twitter.com/1.1/" ); 
     171$response = wp_remote_get( "https://api.twitter.com/1.1/", array( 'timeout'=>1, 'redirection'=>1 ) ); 
    172172if ( is_wp_error( $response ) ) { 
    173173    $warning = ''; 
  • wp-to-twitter/trunk/wp-to-twitter.php

    r855083 r855945  
    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 URL shortening service. Rich in features for customizing and promoting your Tweets. 
    6 Version: 2.8.2 
     6Version: 2.8.3 
    77Author: Joseph Dolson 
    88Author URI: http://www.joedolson.com/ 
     
    3333if ( defined('WP_CONTENT_DIR') ) { $wp_content_dir = constant('WP_CONTENT_DIR');} 
    3434 
    35 define( 'WPT_DEBUG', true ); 
     35define( 'WPT_DEBUG', false ); 
    3636define( 'WPT_DEBUG_ADDRESS', 'debug@joedolson.com' ); 
    3737define( 'WPT_FROM', "From: \"".get_option('blogname')."\" <".get_option('admin_email').">" ); 
     
    4949 
    5050global $wpt_version,$jd_plugin_url; 
    51 $wpt_version = "2.8.2"; 
     51$wpt_version = "2.8.3"; 
    5252$plugin_dir = basename(dirname(__FILE__)); 
    5353load_plugin_textdomain( 'wp-to-twitter', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' ); 
     
    708708    if ( WPT_DEBUG && function_exists( 'wpt_pro_exists' ) ) { 
    709709        wpt_mail(  "1: JD Tweet This Value: #$post_ID","Tweet this: $jd_tweet_this /". get_option('jd_tweet_default')." / $type"); // DEBUG 
    710     }    
     710    } 
    711711    if ( get_option('jd_tweet_default') == 0 ) {  
    712712        $test = ( $jd_tweet_this != 'no')?true:false; 
  • wp-to-twitter/trunk/wpt-functions.php

    r834147 r855945  
    344344            echo "<div class='message error'><p>".__('Please describe your problem. I\'m not psychic.','wp-to-twitter')."</p></div>"; 
    345345        } else { 
    346             wp_mail( "plugins@joedolson.com",$subject,$message,$from ); 
    347             if ( $has_donated == 'Donor' || $has_purchased == 'Purchaser' ) { 
    348                 echo "<div class='message updated'><p>".sprintf(__('Thank you for supporting the continuing development of this plug-in! I\'ll get back to you as soon as I can. Please ensure that you can receive email at <code>%s</code>.','wp-to-twitter'),$current_user->user_email)."</p></div>";         
     346            $sent = wp_mail( "plugins@joedolson.com",$subject,$message,$from ); 
     347            if ( $sent ) { 
     348                if ( $has_donated == 'Donor' || $has_purchased == 'Purchaser' ) { 
     349                    echo "<div class='message updated'><p>".sprintf(__('Thank you for supporting the continuing development of this plug-in! I\'ll get back to you as soon as I can. Please ensure that you can receive email at <code>%s</code>.','wp-to-twitter'),$current_user->user_email)."</p></div>";         
     350                } else { 
     351                    echo "<div class='message updated'><p>".sprintf(__("Thanks for using WP to Twitter. Please ensure that you can receive email at <code>%s</code>.",'wp-to-twitter'),$current_user->user_email)."</p></div>";              
     352                } 
    349353            } else { 
    350                 echo "<div class='message updated'><p>".sprintf(__("Thanks for using WP to Twitter. Please ensure that you can receive email at <code>%s</code>.",'wp-to-twitter'),$current_user->user_email)."</p></div>";              
     354                echo "<div class='message error'><p>".__( "Sorry! I couldn't send that message. Here's the text of your message:", 'wp-to-twitter' )."</p><pre>$request</pre></div>"; 
    351355            } 
    352356        } 
     
    380384        </p> 
    381385        <p> 
    382         <input type='checkbox' name='has_read_faq' id='has_read_faq' value='on' /> <label for='has_read_faq'>".sprintf(__('I have read <a href="%1$s">the FAQ for this plug-in</a> <span>(required)</span>','wp-to-twitter'),'http://www.joedolson.com/articles/wp-to-twitter/support-2/')." 
     386        <input type='checkbox' name='has_read_faq' id='has_read_faq' value='on' required='required' aria-required='true' /> <label for='has_read_faq'>".sprintf(__('I have read <a href="%1$s">the FAQ for this plug-in</a> <span>(required)</span>','wp-to-twitter'),'http://www.joedolson.com/articles/wp-to-twitter/support-2/')." 
    383387        </p> 
    384388        <p> 
Note: See TracChangeset for help on using the changeset viewer.