WordPress.org

Make WordPress Core

Changeset 16323


Ignore:
Timestamp:
11/12/10 11:17:35 (6 years ago)
Author:
nacin
Message:

Self-close embed tag for googlevideo embed handler. props pross, fixes #14230.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-embeds.php

    r13021 r16323  
    2929    } 
    3030 
    31     return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always"></embed>', $matches, $attr, $url, $rawattr ); 
     31    return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr ); 
    3232} 
    3333wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' ); 
Note: See TracChangeset for help on using the changeset viewer.