Skip to content

Commit

Permalink
Merge pull request #104 from joemcgill/picturefill-2.3.1
Browse files Browse the repository at this point in the history
Upgrade Picturefill to 2.3.1
  • Loading branch information
tevko committed May 16, 2015
2 parents 3b1679a + 0251438 commit a80e146
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/picturefill.min.js

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

4 changes: 2 additions & 2 deletions wp-tevko-responsive-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Enqueue bundled version of the Picturefill library.
*/
function tevkori_get_picturefill() {
wp_enqueue_script( 'picturefill', plugins_url( 'js/picturefill.min.js', __FILE__ ), array(), '2.3.0', true );
wp_enqueue_script( 'picturefill', plugins_url( 'js/picturefill.min.js', __FILE__ ), array(), '2.3.1', true );
}
add_action( 'wp_enqueue_scripts', 'tevkori_get_picturefill' );

Expand All @@ -44,7 +44,7 @@ function tevkori_get_picturefill() {
* @return string|bool A valid source size value for use in a 'sizes' attribute or false.
*/
function tevkori_get_sizes( $id, $size = 'thumbnail', $args = null ) {

// See which image is being returned and bail if none is found.
if ( ! $img = image_downsize( $id, $size ) ) {
return false;
Expand Down

0 comments on commit a80e146

Please sign in to comment.