WordPress.org

Plugin Directory

Changeset 598196


Ignore:
Timestamp:
09/12/12 21:19:12 (19 months ago)
Author:
Otto42
Message:

minor changes, prepping for next version

Location:
simple-twitter-connect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-twitter-connect/trunk/stc-comments.php

    r404503 r598196  
    260260 
    261261 
    262 // generate facebook avatar code for Twitter user comments 
     262// generate avatar code for Twitter user comments 
    263263add_filter('get_avatar','stc_comm_avatar', 10, 5); 
    264264function stc_comm_avatar($avatar, $id_or_email, $size = '96', $default = '', $alt = false) { 
  • simple-twitter-connect/trunk/stc-tweetbutton.php

    r472979 r598196  
    5656 
    5757    $options = get_option('stc_options'); 
     58 
     59    // remove me as the source, tired of the spam on that account 
     60    if ($options['tweetbutton_source'] == 'ottodestruct') { 
     61        $options['tweetbutton_source'] = ''; 
     62        update_option('stc_options',$options); 
     63    } 
     64 
    5865    if (!empty($options['tweetbutton_source'])) $stc_tweetbutton_defaults['source'] = $options['tweetbutton_source']; 
    5966    if (!empty($options['tweetbutton_style'])) $stc_tweetbutton_defaults['style'] = $options['tweetbutton_style']; 
  • simple-twitter-connect/trunk/stc-tweetmeme.php

    r404503 r598196  
    4848    if (!$source) { 
    4949        $options = get_option('stc_options'); 
    50         if (!$options['tweetmeme_source']) $source = 'tweetmeme'; 
     50         
     51        // remove me as the source, tired of the spam 
     52        if ($options['tweetmeme_source'] == 'ottodestruct') { 
     53            $options['tweetmeme_source'] = ''; 
     54            update_option('stc_options',$options); 
     55        } 
     56         
     57        if (!$options['tweetmeme_source']) $source = ''; 
    5158        else $source = $options['tweetmeme_source']; 
    5259    } 
     
    117124function stc_tweetmeme_source() { 
    118125    $options = get_option('stc_options'); 
    119     if (!$options['tweetmeme_source']) $options['tweetmeme_source'] = 'tweetmeme'; 
     126    if (!$options['tweetmeme_source']) $options['tweetmeme_source'] = ''; 
    120127    echo "<input type='text' id='stc-tweetmeme-source' name='stc_options[tweetmeme_source]' value='{$options['tweetmeme_source']}' size='40' /> (Username that appears to be RT'd)"; 
    121128} 
     
    138145    } 
    139146     
    140     if (!$input['tweetmeme_source']) $input['tweetmeme_source'] = 'tweetmeme'; 
     147    if (!$input['tweetmeme_source']) $input['tweetmeme_source'] = ''; 
    141148    else { 
    142149        // only alnum and underscore allowed in twitter names 
Note: See TracChangeset for help on using the changeset viewer.