Skip to content

Instantly share code, notes, and snippets.

@kuraga
Created December 20, 2014 14:40
Show Gist options
  • Save kuraga/442c4685559131ccf665 to your computer and use it in GitHub Desktop.
Save kuraga/442c4685559131ccf665 to your computer and use it in GitHub Desktop.
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