Changeset 940149
- Timestamp:
- 06/28/2014 08:34:39 PM (12 years ago)
- Location:
- picturefillwp/trunk
- Files:
-
- 4 edited
-
inc/class-picturefill-wp-function-helpers.php (modified) (4 diffs)
-
inc/functions-picturefill-wp.php (modified) (1 diff)
-
picturefill-wp.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
picturefillwp/trunk/inc/class-picturefill-wp-function-helpers.php
r845375 r940149 57 57 } 58 58 } 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); 60 60 } 61 61 … … 140 140 } 141 141 142 return !empty($new_attachment_data) ? $new_attachment_data : $attachment_data;142 return array_merge($attachment_data, $new_attachment_data); 143 143 } 144 144 … … 164 164 } 165 165 166 $position = array_search($this->insert_before, $image_sizes) - 1;166 $position = array_search($this->insert_before, $image_sizes); 167 167 168 168 if($image_attributes['min_size'] !== $this->insert_before){ … … 170 170 return array_merge(array($this->image_size_to_add, $this->image_size_to_add . '@2x'), $image_sizes); 171 171 }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; 173 174 } 174 175 }else{ -
picturefillwp/trunk/inc/functions-picturefill-wp.php
r841079 r940149 42 42 43 43 $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); 45 45 } 46 46 -
picturefillwp/trunk/picturefill-wp.php
r928294 r940149 6 6 Description: A wordpress plugin to load responsive/retina images via picturefill.js. 7 7 Author: Kyle Reicks 8 Version: 1.3. 38 Version: 1.3.4 9 9 Author URI: http://github.com/kylereicks/ 10 10 */ … … 12 12 define('PICTUREFILL_WP_PATH', plugin_dir_path(__FILE__)); 13 13 define('PICTUREFILL_WP_URL', plugins_url('/', __FILE__)); 14 define('PICTUREFILL_WP_VERSION', '1.3. 3');14 define('PICTUREFILL_WP_VERSION', '1.3.4'); 15 15 16 16 require_once(PICTUREFILL_WP_PATH . 'inc/class-picturefill-wp.php'); -
picturefillwp/trunk/readme.txt
r928294 r940149 5 5 Requires at least: 3.2 6 6 Tested up to: 3.9.1 7 Stable tag: 1.3. 37 Stable tag: 1.3.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 145 145 == Changelog == 146 146 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 147 150 = 1.3.3 = 148 151 * [Suppress warnings](https://github.com/kylereicks/picturefill.js.wp/issues/29) from DOM parsing … … 207 210 == Upgrade Notice == 208 211 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 = 213 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).
Note: See TracChangeset
for help on using the changeset viewer.