Tweetbacks-Plugin generates wrong short-URLs... (4 posts)

  1. KimHbel
    Posted 7 years ago #

    If you use permalinks (so if you don't use the default postid=<number> format) and you'll do a Preview of your posting while editing, tweetbacks-plugin generates the short-URLs for the postid=XYZ-link.

    So if this happens by accident you have to remove the wrong options out of the database. This could be done with the cleanup-options in the option-menu.

    If the plugin would supress generating shortURLs in preview-mode, this wouldn't happen... so maybe a point for the to-do-list?

  2. the_beest
    Posted 7 years ago #

    Hm, may be this is why so many people are complaining that the plugin never picks up their tweets, because it isn't looking for the right URLs.

  3. rickybuchanan
    Posted 7 years ago #

    I tried clearing out all the short URLs with cleanup options but it hasn't found any of the missing tweets. I always preview articles before posting so this seemed like a possible solution but apparently not :(

    Has anybody else had luck with this?

  4. peterjanes
    Posted 6 years ago #

    This patch stops shorturls from being generated for non-published posts, so it should prevent the wrong permalink from being added to the short URL list:

    --- tweetbacks/tweetbacks.php
    +++ tweetbacks/tweetbacks.php
    @@ -343,7 +343,7 @@
     	global $post;
    -	if (!isset($post->ID) || $post->ID == 0 || $post->ID == "") {
    +	if (!isset($post->ID) || $post->ID == 0 || $post->ID == "" || $post->post_status != 'publish') {
     	} else {
     		$post_id = $post->ID;

Topic Closed

This topic has been closed to new replies.

About this Topic