WordPress.org

Plugin Directory

Changeset 613060


Ignore:
Timestamp:
10/16/12 06:30:07 (18 months ago)
Author:
alexkingorg
Message:

version 3.0.1

Location:
twitter-tools/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • twitter-tools/trunk/README.txt

    r611071 r613060  
    44Requires at least: 3.4 
    55Tested up to: 3.4.2 
    6 Stable tag: 3.0 
     6Stable tag: 3.0.1 
    77License: GPLv2 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    102102 
    103103 
    104 == FAQ == 
     104== Frequently Asked Questions == 
    105105 
    106106= What if I don't want to use Social's comment display? = 
     
    128128 
    129129== Changelog == 
     130 
     131= 3.0.1 = 
     132 
     133* Set categories and post tags properly on posts created from tweets 
     134* Set GMT date explicitly for blog posts created from tweets (fixes time offset issue) 
     135* Make enabled/disabled accounts more explicit 
     136 
    130137 
    131138= 3.0 = 
  • twitter-tools/trunk/classes/aktt.php

    r611071 r613060  
    33class AKTT { 
    44    // settings: aktt_v3_settings 
    5     static $ver = '3.0dev'; 
     5    static $ver = '3.0.1'; 
    66    static $enabled = false; 
    77    static $prefix = 'aktt_'; 
     
    111111                'type' => 'radio', 
    112112                'options' => array( 
    113                     '1' => sprintf(__('Yes <span class="help">(%s)</span>', 'twitter-tools'), site_url('tweet/{tweet-id}')), 
     113                    '1' => sprintf(__('Yes <span class="help">(%s)</span>', 'twitter-tools'), home_url('tweet/{tweet-id}')), 
    114114                    '0' => __('No', 'twitter-tools') 
    115115                ), 
  • twitter-tools/trunk/classes/aktt_tweet.php

    r611071 r613060  
    471471            'post_status' => 'publish', 
    472472            'post_type' => AKTT::$post_type, 
    473             'post_date' => date('Y-m-d H:i:s', self::twdate_to_time($this->date()) + (get_option('gmt_offset') * 3600)), 
     473            'post_date_gmt' => date('Y-m-d H:i:s', self::twdate_to_time($this->date())), 
    474474            'guid' => $this->guid(), 
    475475//          'tax_input' => $tax_input, // see below... 
     
    547547            'post_content' => $post_content, 
    548548            'post_author' => $post_author, 
    549             'tax_input' => array( 
    550                 'category' => array($post_category), 
    551                 'post_tag' => array_map('trim', explode(',', $post_tags)), 
    552             ), 
     549// see below 
     550//          'tax_input' => array( 
     551//              'category' => array($post_category), 
     552//              'post_tag' => array_map('trim', explode(',', $post_tags)), 
     553//          ), 
    553554            'post_status' => 'publish', 
    554555            'post_type' => 'post', 
    555             'post_date' => date('Y-m-d H:i:s', self::twdate_to_time($this->meta['created_at'])), 
     556            'post_date_gmt' => date('Y-m-d H:i:s', self::twdate_to_time($this->meta['created_at'])), 
    556557            'guid' => $this->guid().'-post' 
    557558        ); 
     
    564565            return false; 
    565566        } 
     567         
     568        // have to set up taxonomies after the insert in case we are in a context without 
     569        // a 'current user' - see: http://core.trac.wordpress.org/ticket/19373 
     570        wp_set_object_terms($this->blog_post_id, intval($post_category), 'category'); 
     571        wp_set_object_terms($this->blog_post_id, array_map('trim', explode(',', $post_tags)), 'post_tag'); 
    566572 
    567573        set_post_format($this->blog_post_id, 'status'); 
  • twitter-tools/trunk/twitter-tools.php

    r611071 r613060  
    44Plugin URI: http://crowdfavorite.com/wordpress/plugins/twitter-tools/ 
    55Description: An integration between your WordPress site and Twitter. Create posts from your tweets. Show your tweets in your sidebar. Relies on <a href="http://wordpress.org/extend/plugins/social/">Social</a>. 
    6 Version: 3.0 
     6Version: 3.0.1 
    77Author: Crowd Favorite 
    88Author URI: http://crowdfavorite.com 
  • twitter-tools/trunk/upgrade/3.0.php

    r611071 r613060  
    161161} 
    162162 
    163 function aktt_upgrade_30_run($count = 10) { 
     163function aktt_upgrade_30_run($count = 25) { 
    164164    global $wpdb; 
    165165// pull next tweet(s) 
  • twitter-tools/trunk/views/admin-account.php

    r611071 r613060  
    55?> 
    66<div class="aktt-account"> 
    7     <h3 style="background: url(<?php echo esc_url($account->social_acct->avatar()); ?>) left top no-repeat;"><?php echo esc_html($account->social_acct->name()); ?></h3> 
     7    <h3 style="background: url(<?php echo esc_url($account->social_acct->avatar()); ?>) left top no-repeat;"><?php echo esc_html($account->social_acct->name()); ?> <span class="aktt-account-disabled-notice"><?php _e('(disabled)', 'twitter-tools'); ?></span></h3> 
    88    <div class="settings"> 
    99        <p> 
  • twitter-tools/trunk/views/admin.php

    r611071 r613060  
    3939    padding: 0; 
    4040} 
    41 .aktt-account-enabled { 
    42     background: url(<?php echo esc_url(admin_url('images/yes.png')); ?>) right center no-repeat; 
     41.aktt-account-enabled.aktt-account-collapsed { 
    4342    color: #333; 
    4443    opacity: 1; 
     
    5049    margin: 0; 
    5150    padding: 0 0 0 58px; 
     51} 
     52.aktt-account-disabled-notice { 
     53    color: #999; 
     54} 
     55.aktt-account-enabled .aktt-account-disabled-notice { 
     56    display: none; 
    5257} 
    5358.aktt-none .aktt-account h3 { 
     
    201206    var $createPosts = $account.find('input.create-posts'); 
    202207// toggle enabled icon 
    203     if (!$settings.is(':visible')) { 
    204208        if ($enabled.is(':checked')) { 
    205209            $account.addClass('aktt-account-enabled'); 
    206210        } 
    207211        else { 
    208             $account.addClass('dim'); 
    209         } 
     212        $account.removeClass('aktt-account-enabled'); 
    210213    } 
    211214// toggle enabled/dimmed for enabled dependent fields 
     
    230233        akttSetState($account); 
    231234        $account.find('h3').click(function() { 
    232             $account.removeClass('dim aktt-account-enabled').find('.settings').slideToggle(function() { 
     235            $account.find('.settings').slideToggle(function() { 
    233236                akttSetState($account); 
    234237            }); 
    235238        }).end().find('input[type="checkbox"].enabled, input[type="checkbox"].create-posts').change(function() { 
    236 //          if ($(this).filter('.create-posts').size()) { 
    237 //              if ($(this).is(':checked')) { 
    238 //                  $account.find('.depends-on-create-posts').slideDown(); 
    239 //              } 
    240 //              else { 
    241 //                  $account.find('.depends-on-create-posts').slideUp(); 
    242 //              } 
    243 //          } 
    244239            akttSetState($account); 
    245240        }); 
Note: See TracChangeset for help on using the changeset viewer.