Skip to content

Commit

Permalink
Release 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Fusco committed Aug 5, 2020
1 parent c69b5ee commit a58ea2a
Show file tree
Hide file tree
Showing 5 changed files with 243 additions and 86 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.6.0] - 2020-08-05

### Added

- New default image sizes.
- New filter, `wm_defined_image_sizes`, that allows users to define custom image sizes from within another plugin or theme.
- Disabled WordPress responsive images (srcset).

### Fixed

- Prevent GET/POST from throwing error when dealing with custom post types.

## [2.5.2] - 2020-02-27

### Fixed
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,35 @@ Within the main search page under "Add New", users can toggle "collection" when

When searching for a collection, a _Save Collection_ button will be displayed. This button saves the current result page's collection to the metadata of a new post under the `wp_collection` post type. Note that a collection large than 100 assets will only save the 100 assets on the current results page.

## Defining Custom Image Sizes

This plugin ships with some default image sizes however a filter has been included if you wish to change those defined sizes from within another plugin or theme.

Example function defining 2 image sizes:

```php
function filter_defined_image_sizes( $default_image_sizes ) {
$sizes = [
'banner-sm' => [
'label' => __( 'Small Banner', 'textdomain' ),
'width' => 820,
'height' => 312,
],
'banner-lg' => [
'label' => __( 'Large Banner', 'textdomain' ),
'width' => 1500,
'height' => 500,
],
];

// Uncomment to append sizes to the plugin's already defined sizes.
// $sizes = array_merge( $sizes, $default_image_sizes );

return $sizes;
}
add_filter( 'wm_defined_image_sizes', 'filter_defined_image_sizes', 10, 1 );
```

## Plugin API

This plugin provides some function to allow other plugins to easly interact with Widen data imported into WordPress as well as the Widen API.
Expand Down
148 changes: 104 additions & 44 deletions languages/widen-media.pot

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a58ea2a

Please sign in to comment.