Plugin Directory

Changeset 496510


Ignore:
Timestamp:
01/28/2012 03:12:45 PM (14 years ago)
Author:
andykillen
Message:

release 1.60.2 additional anti-post thumbnail support.

Location:
share-and-follow/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • share-and-follow/trunk/readme.txt

    r496439 r496510  
    298298== Changelog ==
    299299
     300= 1.60.2 =
     301
     302added error checking for those that do not have post thumbnails and use share images from post.
     303
     304
    300305= 1.60.1 =
    301306
     
    823828== Upgrade Notice ==
    824829
     830= 1.60.2 =
     831
     832added error checking for those that do not have post thumbnails and use share images from post.
     833
     834
    825835= 1.60.1 =
    826836
  • share-and-follow/trunk/share-and-follow.php

    r496439 r496510  
    33Plugin Name: Share and Follow
    44Plugin URI: http://share-and-follow.com/wordpress-plugin/
    5 Version: 1.60.1
     5Version: 1.60.2
    66Author: Andy Killen
    77Author URI: http://phat-reaction.com
     
    138138
    139139                    function findMetaImageURL($post_id){
    140                     if(has_post_thumbnail( $post_id )){
    141                         $post_thumbnail_id = get_post_thumbnail_id( $post_id );
    142                         $image_src = wp_get_attachment_image_src( $post_thumbnail_id );
     140                    if(function_exists('has_post_thumbnail')){
     141                        if(has_post_thumbnail( $post_id )){
     142                            $post_thumbnail_id = get_post_thumbnail_id( $post_id );
     143                            $image_src = wp_get_attachment_image_src( $post_thumbnail_id );
     144                        }else{
     145                            $image_src = get_post_meta($post_id, 'image_src', true);
     146                        }
    143147                    }else{
    144                         $image_src = get_post_meta($post_id, 'image_src', true);
    145                     }
    146                     if (empty($image_src) || !isset($image_src)){return false;}
     148                       $image_src = get_post_meta($post_id, 'image_src', true);
     149                    }
     150                    if (empty($image_src) || !isset($image_src)  || $image_src === false ){return false;}
    147151                   
    148152                    else {return $image_src;}
Note: See TracChangeset for help on using the changeset viewer.