Skip to content

Commit

Permalink
Merge pull request #180 from ResponsiveImagesCG/release/2.5.0
Browse files Browse the repository at this point in the history
Release 2.5.0 prep
  • Loading branch information
tevko committed Sep 24, 2015
2 parents c083c36 + 34390e4 commit 4bc3295
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
12 changes: 11 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,20 @@ The only external dependency included in this plugin is [Picturefill](http://sco
We use a hook because if you attempt to dequeue a script before it's enqueued, wp_dequeue_script has no effect. (If it's still being loaded, you may need to specify a [priority](http://codex.wordpress.org/Function_Reference/add_action).)

## Version
2.4.0

2.5.0

## Changelog

- Responsify all post images by adding `srcset` and `sizes` through a display filter.
- Improve method used to build paths in `tevkori_get_srcset_array()`
- Adds linthub config files
- Returns single source arrays in `tevkori_get_srcset_array()`
- Add tests for PHP7 to our Travis matrix
- Add test coverage for `tevkori_filter_attachment_image_attributes()`

**2.4.0**

- Added filter for tevkori_get_sizes, with tests
- Added Composer support
- Compare aspect ratio in relative values, not absolute values
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://app.etapestry.com/hosted/BoweryResidentsCommittee/OnlineDon
Tags: Responsive, Images, Responsive Images, SRCSET, Picturefill
Requires at least: 4.1
Tested up to: 4.3
Stable tag: 2.4.0
Stable tag: 2.5.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

Expand All @@ -26,6 +26,14 @@ This plugin works by including all available image sizes for each image upload.

== Changelog ==

= 2.5.0 =
* Responsify all post images by adding `srcset` and `sizes` through a display filter.
* Improve method used to build paths in `tevkori_get_srcset_array()`
* Adds linthub config files
* Returns single source arrays in `tevkori_get_srcset_array()`
* Add tests for PHP7 to our Travis matrix
* Add test coverage for `tevkori_filter_attachment_image_attributes()`

= 2.4.0 =
* Added filter for tevkori_get_sizes, with tests
* Added Composer support
Expand Down
6 changes: 3 additions & 3 deletions wp-tevko-responsive-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Plugin Name: RICG Responsive Images
* Plugin URI: http://www.smashingmagazine.com/2015/02/24/ricg-responsive-images-for-wordpress/
* Description: Bringing automatic default responsive images to wordpress
* Version: 2.4.0
* Version: 2.5.0
* Author: The RICG
* Author URI: http://responsiveimages.org/
* License: GPL-2.0+
Expand Down Expand Up @@ -283,7 +283,7 @@ function tevkori_get_srcset_string( $id, $size = 'thumbnail' ) {
/**
* Filters images in post content to add 'srcset' and 'sizes'.
*
* @since 3.0
* @since 2.5.0
*
* @param string $content The raw post content to be filtered.
* @return string Converted content with 'srcset' and 'sizes' added to images.
Expand All @@ -308,7 +308,7 @@ function tevkori_filter_content_images( $content ) {
* Private preg_replace callback used in tevkori_filter_content_images()
*
* @access private
* @since 3.0.0
* @since 2.5.0
*/
function _tevkori_filter_content_images_callback( $image ) {
if ( empty( $image ) ) {
Expand Down

2 comments on commit 4bc3295

@ryanwiemer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to tag the 2.5 release as well. Great work on this plugin by the way. It keeps getting better.

@joemcgill
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.