Changeset 419134
- Timestamp:
- 08/04/2011 09:34:08 AM (15 years ago)
- Location:
- facebook-likes-you/trunk
- Files:
-
- 2 edited
-
facebook-likes-you.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
facebook-likes-you/trunk/facebook-likes-you.php
r419000 r419134 4 4 Plugin URI: http://www.sproject.name/download/wp-facebook-likes-you/ 5 5 Description: Facebook Likes You! is simple plugin which makes it easy to add Facebook Like button and widgetable Like box. It's fully configurable, so you can decide where to append the button. 6 Version: 1.4. 16 Version: 1.4.2 7 7 Author: Piotr Sochalewski 8 8 Author URI: http://www.sproject.name/ … … 206 206 ob_end_clean(); 207 207 208 if(has_post_thumbnail( $post->ID )) 209 return wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); 208 if (current_theme_supports('post-thumbnails')) 209 if (has_post_thumbnail($post->ID)) 210 return wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' ); 210 211 211 212 $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); 212 213 $img = $matches[1][0]; 213 214 214 // Oh my god! This is nasty, pathetic and ridiculous, but it's better than random image! Facebook FTW…215 215 if (empty($first_img)) 216 216 $img = $fb_like_settings['defaultpic']; … … 228 228 echo '<meta property="og:type" content="blog"/> <meta property="og:url" content="' . get_bloginfo("home") . '"/>'; 229 229 else echo '<meta property="og:type" content="article"/> <meta property="og:url" content="' . get_permalink() . '"/>' ?> 230 <meta property="og:image" content=" ' . fb_like_catch_image() . '"/>230 <meta property="og:image" content="<?php echo fb_like_catch_image() ?>"/> 231 231 <meta property="og:site_name" content="<?php bloginfo('name') ?>"/> 232 232 <meta property="fb:app_id" content="<?php echo fb_like_return_appid() ?>"/> -
facebook-likes-you/trunk/readme.txt
r419000 r419134 5 5 Requires at least: 2.9 6 6 Tested up to: 3.2 7 Stable tag: 1.4. 17 Stable tag: 1.4.2 8 8 9 9 Facebook Likes You! is simple plugin which makes it easy to add Like Button and widgetable Like Box. Google +1 Button isn't a problem too! … … 48 48 49 49 == Changelog == 50 51 = 1.4.2 = 52 * Fixed critical bug (really important update!) 50 53 51 54 = 1.4.1 =
Note: See TracChangeset
for help on using the changeset viewer.