Changeset 1004158
- Timestamp:
- 10/08/2014 11:25:34 PM (11 years ago)
- Location:
- sm2wp-twitter-minimal
- Files:
-
- 10 added
- 4 edited
-
tags/0.9.1 (added)
-
tags/0.9.1/classes (added)
-
tags/0.9.1/classes/common.php (added)
-
tags/0.9.1/classes/sm2wp_twitter.php (added)
-
tags/0.9.1/classes/sm2wp_twitter_admin.php (added)
-
tags/0.9.1/classes/twitter.php (added)
-
tags/0.9.1/readme.txt (added)
-
tags/0.9.1/sm2wp.php (added)
-
tags/0.9.1/views (added)
-
tags/0.9.1/views/admin.php (added)
-
trunk/classes/common.php (modified) (1 diff)
-
trunk/classes/twitter.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sm2wp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sm2wp-twitter-minimal/trunk/classes/common.php
r1003840 r1004158 1 1 <?php 2 2 3 define('SM2WP_AUTH_URL', 'http://auth.sm2wp.com/'); 4 define('SM2WP_UPDATE_URL', 'http://sm2wp.com/'); 3 if (!defined('SM2WP_AUTH_URL')) { 4 define('SM2WP_AUTH_URL', 'http://auth.sm2wp.com/'); 5 define('SM2WP_UPDATE_URL', 'http://sm2wp.com/'); 6 } 5 7 6 8 if (get_option('timezone_string')) { -
sm2wp-twitter-minimal/trunk/classes/twitter.php
r1003840 r1004158 418 418 foreach (@$post->entities->urls as $url_entity) { 419 419 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) { 421 422 $video = str_replace('/v/', '/embed/', str_replace('&autoplay=1','', $url_entity->expanded_url)); 422 423 $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, '&')); 424 426 $p->add_video($video); 425 427 } else { … … 464 466 } 465 467 468 protected function refresh() { } 469 466 470 public static function get_template() { 467 471 return <<<EOT -
sm2wp-twitter-minimal/trunk/readme.txt
r1003840 r1004158 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.0 7 Stable tag: 0.9. 07 Stable tag: 0.9.1 8 8 9 9 Social Media 2 WordPress for Twitter allows you to continuously import posts (including photos, videos and links) from Twitter to your blog. … … 46 46 == Changelog == 47 47 48 = 0.9.1 = 49 * Compatibility fixes 50 * Youtube embed fixes 51 48 52 = 0.9.0 = 49 53 * Bug fix release -
sm2wp-twitter-minimal/trunk/sm2wp.php
r1003840 r1004158 4 4 * Plugin URI: http://sm2wp.com 5 5 * Description: Import your Twitter Posts to your WordPress Blog 6 * Version: 0.9. 06 * Version: 0.9.1 7 7 * Author: Daniel Treadwell 8 8 * Author URI: http://minimali.se
Note: See TracChangeset
for help on using the changeset viewer.