WordPress.org

Plugin Directory

Changeset 602200


Ignore:
Timestamp:
09/22/12 00:36:52 (19 months ago)
Author:
betzster
Message:

Initial commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tweet-posts/trunk/tweet-posts.php

    r599500 r602200  
    1818 
    1919    private $keys = array(); 
    20      
     20 
    2121    function __construct() { 
    2222        add_action( 'init', array( $this, 'init' ) ); 
     
    2424        add_action( 'admin_menu', array( $this, 'admin_menu' ) ); 
    2525        add_action( 'publish_post', array( $this, 'publish_post' ), 10, 2 ); 
    26          
     26 
    2727        $this->keys = get_option( self::OPTION ); 
    2828    } 
     
    4444        $shortlink = wp_get_shortlink( $id ); 
    4545        $type = get_post_format( $id ); 
    46          
     46 
    4747        $tweet = self::get_tweet( $title, $shortlink, $type ); 
    4848        $this->do_tweet( $tweet ); 
     
    9898            $title = implode( ' ', $parts ) . '... '; 
    9999        } 
    100          
     100 
    101101        return $pre . $title . $shortlink; 
    102102    } 
     
    144144        return $new; 
    145145    } 
    146      
     146 
    147147} 
    148148 
Note: See TracChangeset for help on using the changeset viewer.