Created
December 20, 2014 14:40
-
-
Save kuraga/442c4685559131ccf665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/plugins/custom-content-shortcode/includes/content.php b/wp-content/plugins/custom-content-shortcode/includes/content.php | |
index d707937..5b0b38a 100644 | |
--- a/wp-content/plugins/custom-content-shortcode/includes/content.php | |
+++ b/wp-content/plugins/custom-content-shortcode/includes/content.php | |
@@ -971,7 +971,7 @@ class CCS_Content { | |
$image_fields = array('image','image-full','image-link','image-link-self', | |
'thumbnail','thumbnail-link','thumbnail-link-self','gallery'); | |
- if ($field=='thumbnail') | |
+ if ($field=='thumbnail' && $parameters['size']==null) | |
$parameters['size'] = 'thumbnail'; | |
$attr = array(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment