diff --git a/CHANGELOG.md b/CHANGELOG.md index eda84b3..55fad3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 0.5.2: September 1st, 2018 +* **Tweak** - Remove `thumbnail` class from images inserted in editor + ### 0.5.1: August 20th, 2018 * **Fix** - Style WooCommerce notices * **Fix** - Retro-compatibility for WooCommerce versions < 3.4.0 diff --git a/inc/front/thumbnails.php b/inc/front/thumbnails.php index 0884dd7..e25682f 100644 --- a/inc/front/thumbnails.php +++ b/inc/front/thumbnails.php @@ -41,7 +41,7 @@ function give_linked_images_class( $html, $id, $caption, $title, $align, $url, $ $html = preg_replace( '/(/', '$1 class="' . $classes . '" >', $html ); } } // separated by spaces, e.g. 'img image-link' - $html = str_replace( "wp-image", "thumbnail wp-image", $html ); + $html = str_replace( "wp-image", "wp-image", $html ); $html = str_replace( '