Plugin Directory

Changeset 419134


Ignore:
Timestamp:
08/04/2011 09:34:08 AM (15 years ago)
Author:
sproject
Message:

1.4.2 release

Location:
facebook-likes-you/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • facebook-likes-you/trunk/facebook-likes-you.php

    r419000 r419134  
    44Plugin URI: http://www.sproject.name/download/wp-facebook-likes-you/
    55Description: 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.1
     6Version: 1.4.2
    77Author: Piotr Sochalewski
    88Author URI: http://www.sproject.name/
     
    206206    ob_end_clean();
    207207   
    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' );
    210211   
    211212    $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
    212213    $img = $matches[1][0];
    213214   
    214     // Oh my god! This is nasty, pathetic and ridiculous, but it's better than random image! Facebook FTW…
    215215    if (empty($first_img))
    216216        $img = $fb_like_settings['defaultpic'];
     
    228228        echo '<meta property="og:type" content="blog"/> <meta property="og:url" content="' . get_bloginfo("home") . '"/>';
    229229        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() ?>"/>
    231231        <meta property="og:site_name" content="<?php bloginfo('name') ?>"/>
    232232        <meta property="fb:app_id" content="<?php echo fb_like_return_appid() ?>"/>
  • facebook-likes-you/trunk/readme.txt

    r419000 r419134  
    55Requires at least: 2.9
    66Tested up to: 3.2
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88
    99Facebook 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!
     
    4848
    4949== Changelog ==
     50
     51= 1.4.2 =
     52* Fixed critical bug (really important update!)
    5053
    5154= 1.4.1 =
Note: See TracChangeset for help on using the changeset viewer.