Plugin Directory

Changeset 2007358


Ignore:
Timestamp:
01/07/2019 12:42:53 AM (7 years ago)
Author:
tazziedave
Message:

1.2.1

  • Fixed bug when called with a size array instead of string
Location:
wysiwyg-custom-products
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wysiwyg-custom-products/tags/1.2/frontend/class-frontend.php

    r2006975 r2007358  
    2020 *
    2121 * @since      1.0.0
    22  * @updated    1.2.0
     22 * @updated    1.2.1
    2323 */
    2424class Frontend {
     
    192192     *
    193193     * @since   1.0.0
    194      * @updated 1.2.0
     194     * @updated 1.2.1
    195195     */
    196196    public function catalog_thumbnail(
     
    204204        global $is_edge;
    205205
    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 . ';' ) ) ) ) {
    208209            return $html;
    209210        }
     
    361362            $classes = [];
    362363
    363 
    364364            if ( $this->single_product ) { // Just basics, template fills in attributes
    365365                $classes[] = 'wcp-line' . ( $i + 1 );
  • wysiwyg-custom-products/tags/1.2/readme.txt

    r2006975 r2007358  
    157157* Using SVG scaling transform to simplify various image sizes
    158158
     159= 1.2.1 =
     160* Fixed bug when called with a size array instead of string
     161
    159162== Upgrade Notice ==
    160163
    161 = 1.2.0 =
     164= 1.2.1 =
    162165Faster and more stable.
    163166Multi 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  
    2020 *
    2121 * @since      1.0.0
    22  * @updated    1.2.0
     22 * @updated    1.2.1
    2323 */
    2424class Frontend {
     
    192192     *
    193193     * @since   1.0.0
    194      * @updated 1.2.0
     194     * @updated 1.2.1
    195195     */
    196196    public function catalog_thumbnail(
     
    204204        global $is_edge;
    205205
    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 . ';' ) ) ) ) {
    208209            return $html;
    209210        }
     
    361362            $classes = [];
    362363
    363 
    364364            if ( $this->single_product ) { // Just basics, template fills in attributes
    365365                $classes[] = 'wcp-line' . ( $i + 1 );
  • wysiwyg-custom-products/trunk/readme.txt

    r2006975 r2007358  
    157157* Using SVG scaling transform to simplify various image sizes
    158158
     159= 1.2.1 =
     160* Fixed bug when called with a size array instead of string
     161
    159162== Upgrade Notice ==
    160163
    161 = 1.2.0 =
     164= 1.2.1 =
    162165Faster and more stable.
    163166Multi 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.