Changeset 903726
- Timestamp:
- 04/27/2014 11:43:24 PM (12 years ago)
- Location:
- developer-share-buttons/trunk
- Files:
-
- 2 edited
-
developer-share-buttons.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
developer-share-buttons/trunk/developer-share-buttons.php
r903694 r903726 3 3 Plugin Name: Developer Share Buttons 4 4 Description: Share buttons with no CSS and no JavaScript 5 Version: 1.0. 35 Version: 1.0.4 6 6 Author: Terminal Pixel 7 7 Author URI: http://wwww.terminalpixel.co.uk/ … … 214 214 $css_class = static::$slug; 215 215 216 if ( !$title && !$url ) 217 $title = get_the_title(); 218 219 if ( !$url ) 220 $url = get_permalink(); 221 222 if ( $service['url_after_title'] && $title ) 216 // If the page is not a proper post object fall back to defaults 217 if ( get_post() ) { 218 219 if ( !$title && !$url ) { 220 $title = get_the_title(); 221 } 222 223 if ( !$url ) { 224 $url = get_permalink(); 225 } 226 227 228 if ( !$image && $image_id = get_post_thumbnail_id() ) { 229 $image_object = wp_get_attachment_image_src( $image_id, 'full' ); 230 $image = $image_object[0]; 231 } 232 233 } else { 234 235 $title = get_bloginfo( 'title' ); 236 $url = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ; 237 238 } 239 240 if ( $service['url_after_title'] && $title ) { 223 241 $title .= ' ' . $url; 242 } 224 243 225 244 $url = urlencode( $url ); 226 227 if ( !$image && $image_id = get_post_thumbnail_id() ) {228 $image_object = wp_get_attachment_image_src( $image_id, 'full' );229 $image = $image_object[0];230 }231 245 232 246 $share_text = apply_filters( static::$slug_ . '_share_text', $share_text ); -
developer-share-buttons/trunk/readme.txt
r903694 r903726 4 4 Requires at least: 3.5 5 5 Tested up to: 3.9 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 8 8 A super lightweight social sharing solution. No JavaScript. No images. No CSS. … … 61 61 = 1.0.3 = 62 62 * Fix profile link widget 63 64 = 1.0.4 = 65 * Improve support for non post object based pages
Note: See TracChangeset
for help on using the changeset viewer.