Changeset 735561
- Timestamp:
- 07/03/2013 05:38:05 PM (11 years ago)
- Location:
- social/trunk
- Files:
-
- 5 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
social/trunk/README.txt
r723327 r735561 3 3 Tags: comments, facebook, twitter, social, broadcast, import, integrate, integration 4 4 Requires at least: 3.3 5 Tested up to: 3.5. 16 Stable tag: 2.9. 15 Tested up to: 3.5. 6 Stable tag: 2.9. 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 294 294 295 295 == Changelog == 296 297 298 299 300 301 302 296 303 297 304 = 2.9.1 = -
social/trunk/lib/social/service.php
r723283 r735561 409 409 $content = do_shortcode($post->post_content); 410 410 $content = htmlspecialchars_decode(strip_tags($content)); 411 $content = preg_replace('/\s+/', ' ', $content);412 411 break; 413 412 case '{author}': -
social/trunk/lib/social/service/facebook.php
r723327 r735561 171 171 172 172 $args = apply_filters($this->key().'_broadcast_args', $args, $post_id, $comment_id); 173 $response = $this->request($account, 'me/feed', $args, 'POST'); 173 $request = apply_filters($this->key().'_broadcast_request', array( 174 'url' => 'me/feed', 175 'args' => $args, 176 'post_id' => $post_id, 177 'comment_id' => $comment_id, 178 )); 179 $response = $this->request($account, $request['url'], $request['args'], 'POST'); 174 180 if ($response !== false && $response->body()->result == 'success') { 175 181 // post succeeded, return response -
social/trunk/lib/social/service/twitter.php
r723283 r735561 663 663 } 664 664 global $comment; 665 if (in_array($comment->comment_type, self::comment_types())) {666 $status_id = get_comment_meta($comment->comment_ID, 'social_status_id', true);665 666 667 667 $output = str_replace("rel='", "rel='".$status_id." ", $url); 668 668 $output = str_replace("'>", "'>@", $output); 669 670 669 return $output; 671 670 } -
social/trunk/social.php
r723327 r735561 4 4 Plugin URI: http://mailchimp.com/social-plugin-for-wordpress/ 5 5 Description: Broadcast newly published posts and pull in discussions using integrations with Twitter and Facebook. Brought to you by <a href="http://mailchimp.com">MailChimp</a>. 6 Version: 2.9. 16 Version: 2.9. 7 7 Author: Crowd Favorite 8 8 Author URI: http://crowdfavorite.com/ … … 26 26 * @var string version number 27 27 */ 28 public static $version = '2.9. 1';28 public static $version = '2.9.'; 29 29 30 30 /** … … 1675 1675 if (!in_array($comment->comment_type, $ignored_types)) { 1676 1676 $status_id = get_comment_meta($comment->comment_ID, 'social_status_id', true); 1677 if ( !empty($status_id)) {1677 if () { 1678 1678 $status_url = $service->status_url(get_comment_author(), $status_id); 1679 1679 } 1680 1680 // Social items? 1681 if (!empty($comment->social_items) ) {1681 if (!empty($comment->social_items)) { 1682 1682 if (is_object($service) && method_exists($service, 'key')) { 1683 1683 $avatar_size = apply_filters('social_items_comment_avatar_size', array( -
social/trunk/views/wp-admin/post/broadcast/error/email.php
r547543 r735561 56 56 default: 57 57 $message = __('Social was not successful in broadcasting this post (perhaps the service is down?), please try broadcasting again. If you receive this message repeatedly, you can try the support forums.', 'social') 58 . ' '.__('Support forums:', 'social').' http://wordpress.org/ tags/social?forum_id=10';58 . ' '.__('Support forums:', 'social').' http://wordpress.org/'; 59 59 break; 60 60 } -
social/trunk/views/wp-admin/post/broadcast/error/notice.php
r547543 r735561 61 61 break; 62 62 default: 63 echo '<li>'.sprintf(__('Social was not successful in broadcasting this post (perhaps the service is down?), please try broadcasting again. If you receive this message repeatedly, you can try the <a href="%s">support forums</a>.', 'social'), 'http://wordpress.org/ tags/social?forum_id=10').'</li>';63 echo '<li>'.sprintf(__('Social was not successful in broadcasting this post (perhaps the service is down?), please try broadcasting again. If you receive this message repeatedly, you can try the <a href="%s">support forums</a>.', 'social'), 'http://wordpress.org/').'</li>'; 64 64 break; 65 65 } -
social/trunk/views/wp-admin/post/meta/broadcast/parts/account.php
r471325 r735561 2 2 <img src="<?php echo esc_url($account->avatar()); ?>" width="24" height="24" /> 3 3 <span> 4 <?php 5 $broadcasted = $service->title(); 6 if (isset($broadcasted_id)) { 7 if ($account->has_user() or $service->key() != 'twitter') { 8 $broadcasted = '<a href="'.esc_url($service->status_url($account->username(), $broadcasted_id)).'" target="_blank">'.$service->title().'</a>'; 9 } 10 } 11 echo esc_html($account->name()).' · '.$broadcasted; 12 ?> 4 <?php 5 $broadcasted = esc_html($service->title()); 6 if (isset($broadcasted_id)) { 7 if ($account->has_user() or $service->key() != 'twitter') { 8 $url = $service->status_url($account->username(), $broadcasted_id); 9 if (!empty($url)) { 10 $broadcasted = '<a href="'.esc_url($url).'" target="_blank">'.esc_html($service->title()).'</a>'; 11 } 12 } 13 } 14 echo esc_html($account->name()).' · '.$broadcasted; 15 ?> 13 16 </span> 14 17 </li>
Note: See TracChangeset
for help on using the changeset viewer.