From daf41ea31581f2f2babbb95c0adb20c19c763d27 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Fri, 11 May 2018 13:49:44 -0500 Subject: [PATCH] Don't check for stored URLs if not storing --- src/wp-to-twitter-shorteners.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;