Plugin Directory

Changeset 1972927


Ignore:
Timestamp:
11/12/2018 11:21:00 AM (7 years ago)
Author:
moosch
Message:

Fixed warning with newer versions of WooCommerce

File:
1 edited

Legend:

Unmodified
Added
Removed
  • better-image-loading/trunk/better-image-loading.php

    r1877688 r1972927  
    1010 * Plugin URI:        http://wp.mooschmedia.com/plugins/better-image-loading/
    1111 * Description:       Load images better on page paint. No more jank!
    12  * Version:           0.3.6
     12 * Version:           0.3.7
    1313 * Author:            Moosch Media
    1414 * Author URI:        http://wp.mooschmedia.com/
     
    3636 */
    3737
    38 define( 'BIL_VERSION', '0.3.6' );
     38define( 'BIL_VERSION', '0.3.7' );
    3939define( 'BIL_URL', plugins_url( '', __FILE__ ) );
    4040define( 'BIL_LANG', '__moosch__' );
     
    151151                foreach( $wooSizes as $_size ){
    152152                    $size = wc_get_image_size( $_size );
    153                     if( isset($size['width']) && $size['width'] != 0 ){
     153                    if( isset($size['height']) && isset($size['width']) && $size['width'] != 0 && $size['height'] != '' && $size['width'] != '' ){
    154154                        $ratio = $size['height'] / $size['width'];
    155155                        $height = $this->blursize * $ratio;
Note: See TracChangeset for help on using the changeset viewer.