Plugin Directory

Changeset 394379


Ignore:
Timestamp:
06/07/2011 09:26:37 PM (15 years ago)
Author:
scibuff
Message:
  • Fixes the bug with the description meta tag that would print just the first letter of the content followed by a space and the ellipsis.
  • Fixes a rare bug Division by zero ... on line 220 for posts/pages with featured images
Location:
wordpress-connect/branches/2.0.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-connect/branches/2.0.3/readme.txt

    r393620 r394379  
    200200* Fixes the bug with the description meta tag that would print just the
    201201  first letter of the content followed by a space and the ellipsis.
     202* Fixes a rare bug `Division by zero ... on line 220` for posts/pages with
     203  featured images
    202204= 2.0.2 =
    203205* Fixes the bug that like button display settings are not saved correctly
     
    267269== Upgrade Notice ==
    268270= 2.0.3 =
     271* Minor bug fixes (featured image, og:description, etc.)
    269272= 2.0.2 =
    270273* Options bug fix
  • wordpress-connect/branches/2.0.3/src/WordpressConnect.php

    r391013 r394379  
    218218                $image_width = $image[1];
    219219                $image_height = $image[2];
    220                 $aspect_ratio = floatval( $image_width ) / floatval( $image_height );
    221    
    222                 if ( $image_width >= 50 && $image_height >= 50 && $aspect_ratio <= 3.0 ){
    223                     $image_url = $image[0];
     220                // TODO check this
     221                // http://wordpress.org/support/topic/error-message-on-only-one-page?replies=4#post-2154264
     222                if ( floatval( $image_height ) > 0 ){
     223                    $aspect_ratio = floatval( $image_width ) / floatval( $image_height );
     224                   
     225                    if ( $image_width >= 50 && $image_height >= 50 && $aspect_ratio <= 3.0 ){
     226                        $image_url = $image[0];
     227                    }
    224228                }
    225229            }
Note: See TracChangeset for help on using the changeset viewer.