Skip to content

Commit

Permalink
Don't check for stored URLs if not storing
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed May 11, 2018
1 parent 69e5b87 commit daf41ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-to-twitter-shorteners.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit daf41ea

Please sign in to comment.