Skip to content

Commit

Permalink
Remove thumbnail class from images inserted in editor
Browse files Browse the repository at this point in the history
Update to versio 0.5.2
  • Loading branch information
nicomollet committed Aug 31, 2018
1 parent 61874e7 commit a3ff19e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion inc/front/thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function give_linked_images_class( $html, $id, $caption, $title, $align, $url, $
$html = preg_replace( '/(<a.*?)>/', '$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( '<a', '<a data-title="' . $caption . '" title="' . $caption . '"', $html );

return $html;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stormbringer",
"version": "0.5.1",
"version": "0.5.2",
"description": "WordPress theme",
"license": "Apache-2.0",
"repository" : {
Expand Down
2 changes: 1 addition & 1 deletion stormbringer-child/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stormbringer",
"version": "0.5.1",
"version": "0.5.2",
"description": "WordPress theme",
"license": "Apache-2.0",
"repository" : {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://github.com/nicomollet/stormbringer
Github Theme URI: https://github.com/nicomollet/stormbringer
Github Branch: master
Description: A simple responsive theme based on twitter's bootstrap framework.
Version: 0.5.1
Version: 0.5.2
Author: Nicolas Mollet
Author URI: http://www.nicolasmollet.com
Text Domain: stormbringer
Expand Down

0 comments on commit a3ff19e

Please sign in to comment.