diff --git a/src/wp-to-twitter-shorteners.php b/src/wp-to-twitter-shorteners.php index 12aaef4..b749e87 100644 --- a/src/wp-to-twitter-shorteners.php +++ b/src/wp-to-twitter-shorteners.php @@ -33,7 +33,7 @@ function wpt_shorten_url( $url, $post_title, $post_ID, $testmode = false, $store // filter link before sending to shortener or adding analytics. $shortener = get_option( 'jd_shortener' ); // if the URL already exists, return it without processing. - if ( wpt_short_url( $post_ID ) ) { + if ( wpt_short_url( $post_ID ) && $store_urls ) { $shrink = wpt_short_url( $post_ID ); return $shrink;