Plugin Directory

Changeset 400590


Ignore:
Timestamp:
06/23/2011 09:50:13 PM (15 years ago)
Author:
scibuff
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-connect/tags/2.0.3/src/WordpressConnect.php

    r400586 r400590  
    218218                $image_width = $image[1];
    219219                $image_height = $image[2];
    220                 // TODO check this
    221                 // http://wordpress.org/support/topic/error-message-on-only-one-page?replies=4#post-2154264
    222220                if ( floatval( $image_height ) > 0 ){
    223221                    $aspect_ratio = floatval( $image_width ) / floatval( $image_height );
     
    322320        if ( strlen( $description ) > 200 ){
    323321            $split_position = strpos( $description, '.', 200 );
     322            if ( $split_position === FALSE ){
     323                $split_position = strpos( $description, ' ', 200 );
     324            }
    324325            $description = substr( $description, 0, $split_position + 1 ) . ' ...';
    325326        }
Note: See TracChangeset for help on using the changeset viewer.