Support » Plugin: WP to Twitter » [Plugin: WP to Twitter] Bug (or undesired behavior) Twitter spammed

  • Resolved albertolau

    (@albertolau)


    Situation: another plugin uses custom post types, and inserts a couple of default custom post types with the WP function wp_insert_post on installation resulting in twitter getting spammed.

    I was checking the file wp-to-twitter.php line 488 and this was commented out:
    //if ($post_type == ‘post’ || $post_type == ‘page’ ) {

    I guess that this was to support custom post types, but the problem is that WP to twitter by default tweets the post, but this is not always desirable.

    Suggestion: use positive logic. Instead of checking to disable use check to enable; and do not tweet by default; or add an option page to enable custom post types, so by default it tweets post and pages, but you have to enable custom post types.

  • The topic ‘[Plugin: WP to Twitter] Bug (or undesired behavior) Twitter spammed’ is closed to new replies.