WordPress.org

Ready to get started?Download WordPress

Forums

WP to Twitter
Bug (or undesired behavior) Twitter spammed (1 post)

  1. albertolau
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic