Plugin Directory

Changeset 198291


Ignore:
Timestamp:
01/26/2010 12:18:41 PM (16 years ago)
Author:
Ornani
Message:
 
Location:
youtube-thumbnailer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • youtube-thumbnailer/trunk/readme.txt

    r196692 r198291  
    66Requires at least: 2.7
    77Tested up to: 2.9.1
    8 Stable tag: 1
     8Stable tag: 1.1
    99
    1010This plugin allows you add your own buttons to the post editor's toolbar.
    1111
    1212== Description ==
    13 <p><strong>1:</strong>
    14 Now this plugin actually works for regular youtube embedding.</p>
     13<p><strong>1.1:</strong>
     14Auto thumbnailing bug fixed.
     15Better video detection.</p>
    1516
    1617<p>
     
    3334== Changelog ==
    3435
     36= 1.1 =
     37*Auto thumbnailing bug fixed.
     38*Better video detection.
     39
    3540= 1 =
    3641*Now this plugin actually works for regular youtube embedding.
  • youtube-thumbnailer/trunk/youtube_thumbnails_script.php

    r196692 r198291  
    44Plugin URI: http://orenyomtov..com
    55Description: This plugin creates thumbnails from your Youtube videos embedded in your posts.
    6 Version: 1
     6Version: 1.1
    77Author: Oren Yomtov
    88Author URI: http://orenyomtov..com
     
    3030    add_action('admin_menu', 'ytt_config_pages');
    3131    add_filter('plugin_action_links', 'ytt_actions', 10, 2 );
    32     if( get_option('ytt_new') )
     32    if( get_option('ytt_new')=='' )
    3333        add_action('save_post','ytt_save_post');
    3434}
     
    5252       
    5353    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) ) {
    5555            $img="http://i2.ytimg.com/vi/{$match[1]}/default.jpg";
    5656
     
    7373   
    7474    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) ) {
    7676            $img="http://i2.ytimg.com/vi/{$match[1]}/default.jpg";
    7777
Note: See TracChangeset for help on using the changeset viewer.