WordPress.org

Make WordPress Core

Ticket #14230: default-embeds.patch

File default-embeds.patch, 1.1 KB (added by pross, 4 years ago)
  • default-embeds.php

    old new  
    2828                list( $width, $height ) = wp_expand_dimensions( 425, 344, $attr['width'], $attr['height'] ); 
    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' ); 
    3434 
    35 ?> 
    36  No newline at end of file 
     35?>