Changeset 445759
- Timestamp:
- 09/30/2011 04:09:00 PM (14 years ago)
- Location:
- wordpress-social-ring
- Files:
-
- 21 added
- 2 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/admin (added)
-
tags/1.0.2/admin/admin.php (added)
-
tags/1.0.2/admin/css (added)
-
tags/1.0.2/admin/css/style.css (added)
-
tags/1.0.2/admin/images (added)
-
tags/1.0.2/admin/images/av-16x16.png (added)
-
tags/1.0.2/admin/images/av32px.png (added)
-
tags/1.0.2/admin/images/avblog-wpbox.png (added)
-
tags/1.0.2/images (added)
-
tags/1.0.2/images/facebook.png (added)
-
tags/1.0.2/includes (added)
-
tags/1.0.2/includes/library.php (added)
-
tags/1.0.2/includes/share.php (added)
-
tags/1.0.2/langs (added)
-
tags/1.0.2/langs/wp_social_ring-it_IT.mo (added)
-
tags/1.0.2/langs/wp_social_ring-it_IT.po (added)
-
tags/1.0.2/readme.txt (added)
-
tags/1.0.2/screenshot-1.png (added)
-
tags/1.0.2/screenshot-2.png (added)
-
tags/1.0.2/wp-social-ring.php (added)
-
trunk/includes/library.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-social-ring/trunk/includes/library.php
r436729 r445759 14 14 echo "<meta property=\"og:title\" content=\"".esc_attr( strip_tags( stripslashes($post->post_title)))."\" />\n"; 15 15 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"; 17 17 echo "<meta property=\"og:description\" content=\"".esc_attr(social_ring_make_excerpt($post))."\" />\n"; 18 18 if ( empty( $image ) && function_exists('has_post_thumbnail') && has_post_thumbnail( $post->ID ) ) { … … 143 143 if(social_ring_print_check() == 1) { 144 144 if($wp_social_ring_options['social_facebook_like_button'] == 1) { 145 if( WPLANG != "") {145 if(defined(WPLANG) && WPLANG != "") { 146 146 ?> 147 147 <div id="fb-root"></div><script src="http://connect.facebook.net/<?php echo WPLANG; ?>/all.js#xfbml=1"></script> … … 172 172 173 173 global $wp_social_ring_options; 174 if(is_single()) { 174 global $post; 175 176 if(is_single() && $post->post_type == "post") { 175 177 return $wp_social_ring_options['social_on_posts']; 176 178 } 177 if(is_page() ) {179 if(is_page() && $post->post_type == "page") { 178 180 return $wp_social_ring_options['social_on_pages']; 179 181 } -
wordpress-social-ring/trunk/readme.txt
r436735 r445759 5 5 Requires at least: 3.0 6 6 Tested up to: 3.2.1 7 Version: 1.0. 18 Stable tag: 1.0. 17 Version: 1.0.2 8 Stable tag: 1.0.2 9 9 10 10 WordPress Social Ring adds sharing buttons for Facebook, Twitter and Google+. … … 36 36 == Changelog == 37 37 38 = 1.0.2 = 39 40 * Fixed bug with WPLANG for Facebook API (thanks to zabor) 41 * Disabled for custom post types 42 38 43 = 1.0.1 = 39 44
Note: See TracChangeset
for help on using the changeset viewer.