WordPress.org

Plugin Directory

Changeset 668985


Ignore:
Timestamp:
02/16/13 19:16:36 (14 months ago)
Author:
joedolson
Message:

Fixes issue in 2.5.8 for hashtag conversions.

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

Legend:

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

    r667701 r668985  
    5252 
    5353== Changelog == 
     54 
     55= 2.5.9 = 
     56 
     57* Using tag slug instead of tag name is a problem for languages with characters outside of [RFC 1738](http://www.faqs.org/rfcs/rfc1738.html) URL specs. Transformed into selectable option, default off. 
    5458 
    5559= 2.5.8 = 
  • wp-to-twitter/trunk/wp-to-twitter-manager.php

    r667701 r668985  
    3131    $title = urlencode( 'Your blog home' ); 
    3232    $shrink = apply_filters( 'wptt_shorten_link', $testurl, $title, false, true ); 
    33     $yourls_URL = ""; 
    3433    if ($shrink == FALSE) { 
    3534        if ($shortener == 1) { 
     
    213212        update_option( 'jd_post_excerpt', $_POST['jd_post_excerpt'] );   
    214213        update_option( 'jd_max_tags',$_POST['jd_max_tags']); 
     214        update_option( 'wpt_tag_source', ( ( $_POST['wpt_tag_source'] == 'slug' )?'slug':'' ) ); 
    215215        update_option( 'jd_max_characters',$_POST['jd_max_characters']);     
    216216        update_option( 'jd_replace_character',$_POST['jd_replace_character']); 
     
    711711                 <input type="checkbox" name="jd_strip_nonan" id="jd_strip_nonan" value="1" <?php echo jd_checkCheckbox('jd_strip_nonan'); ?> /> <label for="jd_strip_nonan"><?php _e("Strip nonalphanumeric characters from tags",'wp-to-twitter'); ?></label><br /> 
    712712                <label for="jd_replace_character"><?php _e("Spaces in tags replaced with:",'wp-to-twitter'); ?></label> <input type="text" name="jd_replace_character" id="jd_replace_character" value="<?php echo esc_attr( get_option('jd_replace_character') ); ?>" size="3" /><br /> 
    713                  
    714713                <small><?php _e("Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> to remove spaces entirely.",'wp-to-twitter'); ?></small>                    
     714            </p> 
     715            <p> 
     716            <input type="checkbox" name="wpt_tag_source" id="wpt_tag_source" value="slug" <?php echo jd_checkSelect( 'wpt_tag_source', 'slug', 'checkbox' ); ?> /> <label for="wpt_tag_source"><?php _e("Use tag slug as hashtag value",'wp-to-twitter'); ?></label><br /> 
     717 
    715718            </p> 
    716719            <p> 
  • wp-to-twitter/trunk/wp-to-twitter.php

    r667701 r668985  
    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.8 
     6Version: 2.5.9 
    77Author: Joseph Dolson 
    88Author URI: http://www.joedolson.com/ 
     
    5757 
    5858global $wpt_version,$jd_plugin_url; 
    59 $wpt_version = "2.5.8"; 
     59$wpt_version = "2.5.9"; 
    6060$plugin_dir = basename(dirname(__FILE__)); 
    6161load_plugin_textdomain( 'wp-to-twitter', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' ); 
     
    10711071        $i = 1; 
    10721072            foreach ( $tags as $value ) { 
    1073             $tag = $value->slug; 
     1073            if ( get_option('wpt_tag_source') == 'slug' ) { 
     1074                $tag = $value->slug; 
     1075            } else { 
     1076                $tag = $value->name; 
     1077            } 
    10741078            $replace = get_option( 'jd_replace_character' ); 
    10751079            $strip = get_option( 'jd_strip_nonan' ); 
Note: See TracChangeset for help on using the changeset viewer.