Changeset 496510
- Timestamp:
- 01/28/2012 03:12:45 PM (14 years ago)
- Location:
- share-and-follow/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
share-and-follow.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
share-and-follow/trunk/readme.txt
r496439 r496510 298 298 == Changelog == 299 299 300 = 1.60.2 = 301 302 added error checking for those that do not have post thumbnails and use share images from post. 303 304 300 305 = 1.60.1 = 301 306 … … 823 828 == Upgrade Notice == 824 829 830 = 1.60.2 = 831 832 added error checking for those that do not have post thumbnails and use share images from post. 833 834 825 835 = 1.60.1 = 826 836 -
share-and-follow/trunk/share-and-follow.php
r496439 r496510 3 3 Plugin Name: Share and Follow 4 4 Plugin URI: http://share-and-follow.com/wordpress-plugin/ 5 Version: 1.60. 15 Version: 1.60.2 6 6 Author: Andy Killen 7 7 Author URI: http://phat-reaction.com … … 138 138 139 139 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 } 143 147 }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;} 147 151 148 152 else {return $image_src;}
Note: See TracChangeset
for help on using the changeset viewer.