Changeset 2007358
- Timestamp:
- 01/07/2019 12:42:53 AM (7 years ago)
- Location:
- wysiwyg-custom-products
- Files:
-
- 4 edited
-
tags/1.2/frontend/class-frontend.php (modified) (4 diffs)
-
tags/1.2/readme.txt (modified) (1 diff)
-
trunk/frontend/class-frontend.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wysiwyg-custom-products/tags/1.2/frontend/class-frontend.php
r2006975 r2007358 20 20 * 21 21 * @since 1.0.0 22 * @updated 1.2. 022 * @updated 1.2.1 23 23 */ 24 24 class Frontend { … … 192 192 * 193 193 * @since 1.0.0 194 * @updated 1.2. 0194 * @updated 1.2.1 195 195 */ 196 196 public function catalog_thumbnail( … … 204 204 global $is_edge; 205 205 206 if ( ( false === stripos( self::SINGLE_SIZES, $size . ';' ) ) 207 && ( false === stripos( self::CATALOG_SIZES, $size . ';' ) ) ) { 206 if ( \is_array($size) 207 || ( ( false === stripos( self::SINGLE_SIZES, $size . ';' ) ) 208 && ( false === stripos( self::CATALOG_SIZES, $size . ';' ) ) ) ) { 208 209 return $html; 209 210 } … … 361 362 $classes = []; 362 363 363 364 364 if ( $this->single_product ) { // Just basics, template fills in attributes 365 365 $classes[] = 'wcp-line' . ( $i + 1 ); -
wysiwyg-custom-products/tags/1.2/readme.txt
r2006975 r2007358 157 157 * Using SVG scaling transform to simplify various image sizes 158 158 159 = 1.2.1 = 160 * Fixed bug when called with a size array instead of string 161 159 162 == Upgrade Notice == 160 163 161 = 1.2. 0=164 = 1.2.1 = 162 165 Faster and more stable. 163 166 Multi line catalog text now always displays correctly. (In premium version the same fix applies to using select and multiline select methods.) -
wysiwyg-custom-products/trunk/frontend/class-frontend.php
r2006975 r2007358 20 20 * 21 21 * @since 1.0.0 22 * @updated 1.2. 022 * @updated 1.2.1 23 23 */ 24 24 class Frontend { … … 192 192 * 193 193 * @since 1.0.0 194 * @updated 1.2. 0194 * @updated 1.2.1 195 195 */ 196 196 public function catalog_thumbnail( … … 204 204 global $is_edge; 205 205 206 if ( ( false === stripos( self::SINGLE_SIZES, $size . ';' ) ) 207 && ( false === stripos( self::CATALOG_SIZES, $size . ';' ) ) ) { 206 if ( \is_array($size) 207 || ( ( false === stripos( self::SINGLE_SIZES, $size . ';' ) ) 208 && ( false === stripos( self::CATALOG_SIZES, $size . ';' ) ) ) ) { 208 209 return $html; 209 210 } … … 361 362 $classes = []; 362 363 363 364 364 if ( $this->single_product ) { // Just basics, template fills in attributes 365 365 $classes[] = 'wcp-line' . ( $i + 1 ); -
wysiwyg-custom-products/trunk/readme.txt
r2006975 r2007358 157 157 * Using SVG scaling transform to simplify various image sizes 158 158 159 = 1.2.1 = 160 * Fixed bug when called with a size array instead of string 161 159 162 == Upgrade Notice == 160 163 161 = 1.2. 0=164 = 1.2.1 = 162 165 Faster and more stable. 163 166 Multi line catalog text now always displays correctly. (In premium version the same fix applies to using select and multiline select methods.)
Note: See TracChangeset
for help on using the changeset viewer.