Plugin Directory

Changeset 1004158


Ignore:
Timestamp:
10/08/2014 11:25:34 PM (11 years ago)
Author:
djtidau
Message:

0.9.1

Location:
sm2wp-twitter-minimal
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • sm2wp-twitter-minimal/trunk/classes/common.php

    r1003840 r1004158  
    11<?php
    22
    3 define('SM2WP_AUTH_URL', 'http://auth.sm2wp.com/');
    4 define('SM2WP_UPDATE_URL', 'http://sm2wp.com/');
     3if (!defined('SM2WP_AUTH_URL')) {
     4    define('SM2WP_AUTH_URL', 'http://auth.sm2wp.com/');
     5    define('SM2WP_UPDATE_URL', 'http://sm2wp.com/');
     6}
    57
    68if (get_option('timezone_string')) {
  • sm2wp-twitter-minimal/trunk/classes/twitter.php

    r1003840 r1004158  
    418418                foreach (@$post->entities->urls as $url_entity) {
    419419                  if (substr($url_entity->display_url, 0, 8) == 'youtu.be' ||
    420                       substr($url_entity->display_url, 0, 11) == 'youtube.com') {
     420                      substr($url_entity->display_url, 0, 11) == 'youtube.com' ||
     421                      strpos($url_entity->display_url, 'youtube.com') !== FALSE) {
    421422                    $video = str_replace('/v/', '/embed/', str_replace('&autoplay=1','', $url_entity->expanded_url));
    422423                    $video = str_replace('.be/', 'be.com/embed/', str_replace('&autoplay=1','', $video));
    423                     $video = str_replace('/?watch?v=', '/embed/', str_replace('&autoplay=1','', $video));
     424                    $video = str_replace('/watch?v=', '/embed/', str_replace('&autoplay=1','', $video));
     425                    if (strpos($video, '&') !== FALSE) $video = substr($video, 0, strpos($video, '&'));
    424426                    $p->add_video($video);
    425427                  } else {
     
    464466    }
    465467
     468    protected function refresh() { }
     469
    466470    public static function get_template() {
    467471        return <<<EOT
  • sm2wp-twitter-minimal/trunk/readme.txt

    r1003840 r1004158  
    55Requires at least: 3.0.1
    66Tested up to: 4.0
    7 Stable tag: 0.9.0
     7Stable tag: 0.9.1
    88
    99Social Media 2 WordPress for Twitter allows you to continuously import posts (including photos, videos and links) from Twitter to your blog.
     
    4646== Changelog ==
    4747
     48= 0.9.1 =
     49* Compatibility fixes
     50* Youtube embed fixes
     51
    4852= 0.9.0 =
    4953* Bug fix release
  • sm2wp-twitter-minimal/trunk/sm2wp.php

    r1003840 r1004158  
    44 * Plugin URI:      http://sm2wp.com
    55 * Description:     Import your Twitter Posts to your WordPress Blog
    6  * Version:         0.9.0
     6 * Version:         0.9.1
    77 * Author:          Daniel Treadwell
    88 * Author URI:      http://minimali.se
Note: See TracChangeset for help on using the changeset viewer.