WordPress.org

Plugin Directory

Changeset 640348


Ignore:
Timestamp:
12/17/12 07:13:06 (16 months ago)
Author:
ozh
Message:

Removed useless func

File:
1 edited

Legend:

Unmodified
Added
Removed
  • yourls-wordpress-to-twitter/tags/1.6.1/inc/core.php

    r640172 r640348  
    117117     
    118118    $short = wp_ozh_yourls_get_new_short_url( $url, $post_id, $keyword ); 
    119      
    120     // Tweet short URL ? 
    121     if ( !wp_ozh_yourls_tweet_on( $post->post_type ) ) { 
    122         return; 
    123     } 
    124  
    125     if ( !get_post_custom_values( 'yourls_tweeted', $post_id ) ) { 
    126         // Not tweeted yet 
    127         $tweet = wp_ozh_yourls_maketweet( $short, $post->post_title, $post_id ); 
    128         if ( wp_ozh_yourls_send_tweet( $tweet ) ) 
    129             update_post_meta($post_id, 'yourls_tweeted', 1); 
    130     } 
    131119     
    132120} 
     
    374362} 
    375363 
    376 // Send tweet on... $type = 'post' or 'page' or any custom post type, returns boolean 
    377 function wp_ozh_yourls_tweet_on( $type ) { 
    378     global $wp_ozh_yourls; 
    379  
    380         if ( empty( $wp_ozh_yourls ) ) 
    381         $wp_ozh_yourls = get_option( 'ozh_yourls' ); 
    382  
    383     return ( isset( $wp_ozh_yourls['tweet_on_'.$type] ) && $wp_ozh_yourls['tweet_on_'.$type] == 1 ); 
    384 } 
    385  
    386364// Determine which service to use. Return string 
    387365function wp_ozh_yourls_service() { 
Note: See TracChangeset for help on using the changeset viewer.