Plugin Directory

Changeset 940149


Ignore:
Timestamp:
06/28/2014 08:34:39 PM (12 years ago)
Author:
kylereicks
Message:

bugfix update version 1.3.4

Location:
picturefillwp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • picturefillwp/trunk/inc/class-picturefill-wp-function-helpers.php

    r845375 r940149  
    5757        }
    5858      }
    59       add_filter('picturefill_wp_image_sizes', array('Picturefill_WP_Function_Helpers', '_remove_image_from_responsive_list'), 10, 2);
     59      add_filter('picturefill_wp_image_sizes', array($this, '_remove_image_from_responsive_list'), 10, 2);
    6060    }
    6161
     
    140140      }
    141141
    142       return !empty($new_attachment_data) ? $new_attachment_data : $attachment_data;
     142      return array_merge($attachment_data, $new_attachment_data);
    143143    }
    144144
     
    164164      }
    165165
    166       $position = array_search($this->insert_before, $image_sizes) - 1;
     166      $position = array_search($this->insert_before, $image_sizes);
    167167
    168168      if($image_attributes['min_size'] !== $this->insert_before){
     
    170170          return array_merge(array($this->image_size_to_add, $this->image_size_to_add . '@2x'), $image_sizes);
    171171        }else{
    172           return array_splice($image_sizes, $position, 0, array($this->image_size_to_add, $this->image_size_to_add . '@2x'));
     172          array_splice($image_sizes, $position, 0, array($this->image_size_to_add, $this->image_size_to_add . '@2x'));
     173          return $image_sizes;
    173174        }
    174175      }else{
  • picturefillwp/trunk/inc/functions-picturefill-wp.php

    r841079 r940149  
    4242
    4343  $picturefill_wp_helpers = new Picturefill_WP_Function_Helpers();
    44   $picturefill_wp_helpers->add_image_to_responsive_queue($image_size, $insert_before);
     44  $picturefill_wp_helpers->add_image_to_responsive_queue($name, $insert_before);
    4545}
    4646
  • picturefillwp/trunk/picturefill-wp.php

    r928294 r940149  
    66Description: A wordpress plugin to load responsive/retina images via picturefill.js.
    77Author: Kyle Reicks
    8 Version: 1.3.3
     8Version: 1.3.4
    99Author URI: http://github.com/kylereicks/
    1010*/
     
    1212define('PICTUREFILL_WP_PATH', plugin_dir_path(__FILE__));
    1313define('PICTUREFILL_WP_URL', plugins_url('/', __FILE__));
    14 define('PICTUREFILL_WP_VERSION', '1.3.3');
     14define('PICTUREFILL_WP_VERSION', '1.3.4');
    1515
    1616require_once(PICTUREFILL_WP_PATH . 'inc/class-picturefill-wp.php');
  • picturefillwp/trunk/readme.txt

    r928294 r940149  
    55Requires at least: 3.2
    66Tested up to: 3.9.1
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    145145== Changelog ==
    146146
     147= 1.3.4 =
     148* Bug fixes in helper functions GitHub issues [#32](https://github.com/kylereicks/picturefill.js.wp/issues/32) and [#33](https://github.com/kylereicks/picturefill.js.wp/issues/33).
     149
    147150= 1.3.3 =
    148151* [Suppress warnings](https://github.com/kylereicks/picturefill.js.wp/issues/29) from DOM parsing
     
    207210== Upgrade Notice ==
    208211
    209 = 1.3.3 =
    210 [Suppress warnings](https://github.com/kylereicks/picturefill.js.wp/issues/29) from DOM parsing and [update transient caching](https://github.com/kylereicks/picturefill.js.wp/issues/31) to use a hash as an identifier.
     212= 1.3.4 =
     213Bug fixes in helper functions GitHub issues [#32](https://github.com/kylereicks/picturefill.js.wp/issues/32) and [#33](https://github.com/kylereicks/picturefill.js.wp/issues/33).
Note: See TracChangeset for help on using the changeset viewer.