Plugin Directory

Changeset 735561

Timestamp:
07/03/2013 05:38:05 PM (11 years ago)
Author:
alexkingorg
Message:

version 2.9.2

Location:
social/trunk
Files:
5 added
8 edited

Legend:

Unmodified
Added
Removed
  • social/trunk/README.txt

    r723327 r735561  
    33Tags: comments, facebook, twitter, social, broadcast, import, integrate, integration
    44Requires at least: 3.3
    5 Tested up to: 3.5.1
    6 Stable tag: 2.9.1
     5Tested up to: 3.5.
     6Stable tag: 2.9.
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    294294
    295295== Changelog ==
     296
     297
     298
     299
     300
     301
     302
    296303
    297304= 2.9.1 =
  • social/trunk/lib/social/service.php

    r723283 r735561  
    409409                    $content = do_shortcode($post->post_content);
    410410                    $content = htmlspecialchars_decode(strip_tags($content));
    411                     $content = preg_replace('/\s+/', ' ', $content);
    412411                    break;
    413412                case '{author}':
  • social/trunk/lib/social/service/facebook.php

    r723327 r735561  
    171171
    172172        $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');
    174180        if ($response !== false && $response->body()->result == 'success') {
    175181            // post succeeded, return response
  • social/trunk/lib/social/service/twitter.php

    r723283 r735561  
    663663        }
    664664        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       
    667667            $output = str_replace("rel='", "rel='".$status_id." ", $url);
    668668            $output = str_replace("'>", "'>@", $output);
    669 
    670669            return $output;
    671670        }
  • social/trunk/social.php

    r723327 r735561  
    44Plugin URI: http://mailchimp.com/social-plugin-for-wordpress/
    55Description: 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.1
     6Version: 2.9.
    77Author: Crowd Favorite
    88Author URI: http://crowdfavorite.com/
     
    2626     * @var  string  version number
    2727     */
    28     public static $version = '2.9.1';
     28    public static $version = '2.9.';
    2929
    3030    /**
     
    16751675        if (!in_array($comment->comment_type, $ignored_types)) {
    16761676            $status_id = get_comment_meta($comment->comment_ID, 'social_status_id', true);
    1677             if (!empty($status_id)) {
     1677            if () {
    16781678                $status_url = $service->status_url(get_comment_author(), $status_id);
    16791679            }
    16801680            // Social items?
    1681             if (!empty($comment->social_items)) {
     1681            if (!empty($comment->social_items)) {
    16821682                if (is_object($service) && method_exists($service, 'key')) {
    16831683                    $avatar_size = apply_filters('social_items_comment_avatar_size', array(
  • social/trunk/views/wp-admin/post/broadcast/error/email.php

    r547543 r735561  
    5656            default:
    5757                $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/';
    5959            break;
    6060        }
  • social/trunk/views/wp-admin/post/broadcast/error/notice.php

    r547543 r735561  
    6161            break;
    6262            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>';
    6464            break;
    6565        }
  • social/trunk/views/wp-admin/post/meta/broadcast/parts/account.php

    r471325 r735561  
    22    <img src="<?php echo esc_url($account->avatar()); ?>" width="24" height="24" />
    33    <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()).' &middot; '.$broadcasted;
    12         ?>
     4<?php
     5$broadcasted = esc_html($service->title());
     6if (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}
     14echo esc_html($account->name()).' &middot; '.$broadcasted;
     15?>
    1316    </span>
    1417</li>
Note: See TracChangeset for help on using the changeset viewer.