WordPress.org

Support

Support » How-To and Troubleshooting » Tweetbacks-Plugin generates wrong short-URLs…

Tweetbacks-Plugin generates wrong short-URLs…

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • the_beest
    Member

    @the_beest

    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.

    rickybuchanan
    Member

    @rickybuchanan

    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?

    peterjanes
    Member

    @peterjanes

    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 @@
     		return;
     	}
     	global $post;
    -	if (!isset($post->ID) || $post->ID == 0 || $post->ID == "") {
    +	if (!isset($post->ID) || $post->ID == 0 || $post->ID == "" || $post->post_status != 'publish') {
     		return;
     	} else {
     		$post_id = $post->ID;
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tweetbacks-Plugin generates wrong short-URLs…’ is closed to new replies.