Changeset 1820264
- Timestamp:
- 02/12/2018 01:52:55 AM (8 years ago)
- Location:
- wysiwyg-custom-products
- Files:
-
- 8 edited
-
tags/1.1/common/class-layout.php (modified) (4 diffs)
-
tags/1.1/common/utilities.php (modified) (2 diffs)
-
tags/1.1/readme.txt (modified) (1 diff)
-
tags/1.1/wysiwyg-custom-products.php (modified) (3 diffs)
-
trunk/common/class-layout.php (modified) (4 diffs)
-
trunk/common/utilities.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wysiwyg-custom-products.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wysiwyg-custom-products/tags/1.1/common/class-layout.php
r1606288 r1820264 32 32 * 33 33 * @since 1.0.0 34 * @updated 1.1. 134 * @updated 1.1.6 35 35 */ 36 36 class Layout { … … 386 386 * 387 387 * @since 1.0.0 388 * @updated 1. 0.8388 * @updated 1.1.6 389 389 */ 390 390 public function set_size( $size ) { … … 393 393 $this->height = self::DEFAULT_IMAGE_SIZE; 394 394 395 $attributes = wc _get_image_size( $size );395 $attributes = wcp_get_image_size( $size ); 396 396 if ( $attributes ) { 397 397 $this->width = maybe_get( $attributes, 'width', $this->width ); … … 542 542 $this->setupWidth = $layout['SetupWidth']; 543 543 $this->setupHeight = $layout['SetupHeight']; 544 $this->width = $this->setupWidth; // Assume same for starters545 $this->height = $this->setupHeight;544 $this->width = $this->setupWidth; // Assume same for starters 545 $this->height = $this->setupHeight; 546 546 $this->scaleX = 1.0; 547 547 $this->scaleY = 1.0; -
wysiwyg-custom-products/tags/1.1/common/utilities.php
r1815404 r1820264 184 184 * @return array Array of dimensions including width, height, and cropping mode. Cropping mode is 0 for no crop, and 1 for hard crop. 185 185 * 186 * @since 1.1.4 186 * @since 1.1.4 187 * @updated 1.1.6 187 188 */ 188 189 function wcp_get_image_size( $image_size, $attachmentId = null ) { … … 197 198 $size['width'] = maybe_get( $meta, 'width', $size['width'] ); 198 199 $size['height'] = maybe_get( $meta, 'height', $size['height'] ); 199 return $size; 200 } 201 202 return \wc_get_image_size($image_size); 203 } 200 } else { 201 $wc_size = \wc_get_image_size( $image_size ); 202 if (\is_numeric($wc_size['width'])) { 203 $size['width'] = $wc_size['width']; 204 } 205 if (\is_numeric($wc_size['height'])) { 206 $size['height'] = $wc_size['height']; 207 } 208 } 209 210 return $size; 211 } -
wysiwyg-custom-products/tags/1.1/readme.txt
r1816077 r1820264 133 133 * Fixed introduced PHP 5 compatibility bug. 134 134 135 = 1.1.6 = 136 * Quick fix for another WooCommerce change in Version 3.3.1 - future upgrade will remove dependencies on WooCommerce image handling routines. 137 135 138 == Upgrade Notice == 136 Fixed for WooCommerce 3.3.0 changes. Fixed bug that affected image sizing.139 Fixed for WooCommerce 3.3.0, 3.3.1 changes. Fixed bug that affected image sizing. 137 140 138 141 == Creating Layouts - Instructions == -
wysiwyg-custom-products/tags/1.1/wysiwyg-custom-products.php
r1816077 r1820264 4 4 * Plugin URI: https://tazziedave.com/wp-plugins/wysiwyg-custom-products 5 5 * Description: Enables a live WYSIWYG preview of custom products where text is edited in text area or text field in woo commerce. 6 * Version: 1.1. 56 * Version: 1.1.6 7 7 * Author: Tazziedave 8 8 * Author URI: https://tazziedave.com … … 62 62 * 63 63 * @since 1.0.0 64 * @updated 1.1. 564 * @updated 1.1.6 65 65 */ 66 66 class Wcp_Plugin { … … 74 74 * Plug in version 75 75 */ 76 const VER = '1.1. 5';76 const VER = '1.1.6'; 77 77 /** 78 78 * Database version. Used in class-plugin to run updates as necessary -
wysiwyg-custom-products/trunk/common/class-layout.php
r1606288 r1820264 32 32 * 33 33 * @since 1.0.0 34 * @updated 1.1. 134 * @updated 1.1.6 35 35 */ 36 36 class Layout { … … 386 386 * 387 387 * @since 1.0.0 388 * @updated 1. 0.8388 * @updated 1.1.6 389 389 */ 390 390 public function set_size( $size ) { … … 393 393 $this->height = self::DEFAULT_IMAGE_SIZE; 394 394 395 $attributes = wc _get_image_size( $size );395 $attributes = wcp_get_image_size( $size ); 396 396 if ( $attributes ) { 397 397 $this->width = maybe_get( $attributes, 'width', $this->width ); … … 542 542 $this->setupWidth = $layout['SetupWidth']; 543 543 $this->setupHeight = $layout['SetupHeight']; 544 $this->width = $this->setupWidth; // Assume same for starters545 $this->height = $this->setupHeight;544 $this->width = $this->setupWidth; // Assume same for starters 545 $this->height = $this->setupHeight; 546 546 $this->scaleX = 1.0; 547 547 $this->scaleY = 1.0; -
wysiwyg-custom-products/trunk/common/utilities.php
r1815404 r1820264 184 184 * @return array Array of dimensions including width, height, and cropping mode. Cropping mode is 0 for no crop, and 1 for hard crop. 185 185 * 186 * @since 1.1.4 186 * @since 1.1.4 187 * @updated 1.1.6 187 188 */ 188 189 function wcp_get_image_size( $image_size, $attachmentId = null ) { … … 197 198 $size['width'] = maybe_get( $meta, 'width', $size['width'] ); 198 199 $size['height'] = maybe_get( $meta, 'height', $size['height'] ); 199 return $size; 200 } 201 202 return \wc_get_image_size($image_size); 203 } 200 } else { 201 $wc_size = \wc_get_image_size( $image_size ); 202 if (\is_numeric($wc_size['width'])) { 203 $size['width'] = $wc_size['width']; 204 } 205 if (\is_numeric($wc_size['height'])) { 206 $size['height'] = $wc_size['height']; 207 } 208 } 209 210 return $size; 211 } -
wysiwyg-custom-products/trunk/readme.txt
r1816077 r1820264 133 133 * Fixed introduced PHP 5 compatibility bug. 134 134 135 = 1.1.6 = 136 * Quick fix for another WooCommerce change in Version 3.3.1 - future upgrade will remove dependencies on WooCommerce image handling routines. 137 135 138 == Upgrade Notice == 136 Fixed for WooCommerce 3.3.0 changes. Fixed bug that affected image sizing.139 Fixed for WooCommerce 3.3.0, 3.3.1 changes. Fixed bug that affected image sizing. 137 140 138 141 == Creating Layouts - Instructions == -
wysiwyg-custom-products/trunk/wysiwyg-custom-products.php
r1816077 r1820264 4 4 * Plugin URI: https://tazziedave.com/wp-plugins/wysiwyg-custom-products 5 5 * Description: Enables a live WYSIWYG preview of custom products where text is edited in text area or text field in woo commerce. 6 * Version: 1.1. 56 * Version: 1.1.6 7 7 * Author: Tazziedave 8 8 * Author URI: https://tazziedave.com … … 62 62 * 63 63 * @since 1.0.0 64 * @updated 1.1. 564 * @updated 1.1.6 65 65 */ 66 66 class Wcp_Plugin { … … 74 74 * Plug in version 75 75 */ 76 const VER = '1.1. 5';76 const VER = '1.1.6'; 77 77 /** 78 78 * Database version. Used in class-plugin to run updates as necessary
Note: See TracChangeset
for help on using the changeset viewer.