Changeset 198291
- Timestamp:
- 01/26/2010 12:18:41 PM (16 years ago)
- Location:
- youtube-thumbnailer/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
youtube_thumbnails_script.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
youtube-thumbnailer/trunk/readme.txt
r196692 r198291 6 6 Requires at least: 2.7 7 7 Tested up to: 2.9.1 8 Stable tag: 1 8 Stable tag: 1.1 9 9 10 10 This plugin allows you add your own buttons to the post editor's toolbar. 11 11 12 12 == Description == 13 <p><strong>1:</strong> 14 Now this plugin actually works for regular youtube embedding.</p> 13 <p><strong>1.1:</strong> 14 Auto thumbnailing bug fixed. 15 Better video detection.</p> 15 16 16 17 <p> … … 33 34 == Changelog == 34 35 36 = 1.1 = 37 *Auto thumbnailing bug fixed. 38 *Better video detection. 39 35 40 = 1 = 36 41 *Now this plugin actually works for regular youtube embedding. -
youtube-thumbnailer/trunk/youtube_thumbnails_script.php
r196692 r198291 4 4 Plugin URI: http://orenyomtov..com 5 5 Description: This plugin creates thumbnails from your Youtube videos embedded in your posts. 6 Version: 1 6 Version: 1.1 7 7 Author: Oren Yomtov 8 8 Author URI: http://orenyomtov..com … … 30 30 add_action('admin_menu', 'ytt_config_pages'); 31 31 add_filter('plugin_action_links', 'ytt_actions', 10, 2 ); 32 if( get_option('ytt_new') )32 if( get_option('ytt_new')=='' ) 33 33 add_action('save_post','ytt_save_post'); 34 34 } … … 52 52 53 53 foreach($posts as $p) { 54 if (preg_match('#http://www\.youtube\.com/v/([^&"\' ]*)#',$p->post_content,$match) ) {54 if (preg_match('#http://www\.youtube\.com/v/([^&"\' ]*)#',$p->post_content,$match) ) { 55 55 $img="http://i2.ytimg.com/vi/{$match[1]}/default.jpg"; 56 56 … … 73 73 74 74 foreach($posts as $p) { 75 if (preg_match('#http://www\.youtube\.com/v/([^&"\' ]*)#',$p->post_content,$match) ) {75 if (preg_match('#http://www\.youtube\.com/v/([^&"\' ]*)#',$p->post_content,$match) ) { 76 76 $img="http://i2.ytimg.com/vi/{$match[1]}/default.jpg"; 77 77
Note: See TracChangeset
for help on using the changeset viewer.