Plugin Directory

Changeset 445759


Ignore:
Timestamp:
09/30/2011 04:09:00 PM (14 years ago)
Author:
niccolo_tapparo
Message:

version 1.0.2 - bugfix for facebook localization based on WPLANG

Location:
wordpress-social-ring
Files:
21 added
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-social-ring/trunk/includes/library.php

    r436729 r445759  
    1414        echo "<meta property=\"og:title\" content=\"".esc_attr( strip_tags( stripslashes($post->post_title)))."\" />\n";
    1515        echo "<meta property=\"og:type\" content=\"article\" />\n";
    16         echo "<meta property=\"og:site_name\" content=\"".get_bloginfo('name')."\" />\n";
     16        echo "<meta property=\"og:site_name\" content=\"".esc_attr(get_bloginfo('name'))."\" />\n";
    1717        echo "<meta property=\"og:description\" content=\"".esc_attr(social_ring_make_excerpt($post))."\" />\n";
    1818        if ( empty( $image ) && function_exists('has_post_thumbnail') && has_post_thumbnail( $post->ID ) ) {
     
    143143    if(social_ring_print_check() == 1) {
    144144        if($wp_social_ring_options['social_facebook_like_button'] == 1) {
    145             if(WPLANG != "") {
     145            if(defined(WPLANG) && WPLANG != "") {
    146146?>
    147147<div id="fb-root"></div><script src="http://connect.facebook.net/<?php echo WPLANG; ?>/all.js#xfbml=1"></script>
     
    172172
    173173    global $wp_social_ring_options;
    174     if(is_single()) {
     174    global $post;
     175   
     176    if(is_single() && $post->post_type == "post") {
    175177        return $wp_social_ring_options['social_on_posts'];
    176178    }
    177     if(is_page()) {
     179    if(is_page() && $post->post_type == "page") {
    178180        return $wp_social_ring_options['social_on_pages'];
    179181    }
  • wordpress-social-ring/trunk/readme.txt

    r436735 r445759  
    55Requires at least: 3.0
    66Tested up to: 3.2.1
    7 Version: 1.0.1
    8 Stable tag: 1.0.1
     7Version: 1.0.2
     8Stable tag: 1.0.2
    99
    1010WordPress Social Ring adds sharing buttons for Facebook, Twitter and Google+.
     
    3636== Changelog ==
    3737
     38= 1.0.2 =
     39
     40* Fixed bug with WPLANG for Facebook API (thanks to zabor)
     41* Disabled for custom post types
     42
    3843= 1.0.1 =
    3944
Note: See TracChangeset for help on using the changeset viewer.