WordPress.org

Ready to get started?Download WordPress

Forums

WP to Twitter
Possible bug in wp to twitter (1 post)

  1. Joost
    Member
    Posted 3 years ago #

    I found a possible problem in the function jd_twit_future(), although I am not sure if it forms a problem.

    function jd_twit_future( $post_ID ) {
        $post_ID = $post_ID->ID;
        if ( $jd_tweet_this != "no" ) {
    		$jd_post_info = jd_post_info( $post_ID );
    		$sentence = '';

    As you can see, the if statement checks for a variable that is not there. The if therefore always is true. It would be best to add the line

    $jd_tweet_this = get_post_meta( $post_ID, '_jd_tweet_this', TRUE);

    before the if.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Joost
  • This topic is not a support question
  • WordPress version: 3.0.1