Skip to content

Commit

Permalink
Deactive "big image size threshold"
Browse files Browse the repository at this point in the history
  • Loading branch information
asadowski10 committed Aug 3, 2020
1 parent a9f1d75 commit e7b9d47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 3.0.14 - 31 July 2020
- Deactive "big image size threshold"

## 3.0.13 - 31 July 2020
- Load image size generation on plugins_loaded thanks to @Rahe for this pull request

Expand Down
4 changes: 4 additions & 0 deletions classes/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ protected function init() {

// Remove the reponsive stuff from the content
remove_filter( 'the_content', 'wp_make_content_images_responsive' );

// Disable the "BIG image" threshold value
add_filter( 'big_image_size_threshold', '__return_false' );

}

/**
Expand Down

0 comments on commit e7b9d47

Please sign in to comment.