Changeset 19726 for trunk/wp-admin/press-this.php
- Timestamp:
- 01/09/2012 09:20:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r19671 r19726 352 352 $content = ''; 353 353 if ( preg_match("/youtube\.com\/watch/i", $url) ) { 354 list($domain, $video_id) = split("v=", $url);354 list($domain, $video_id) = explode("v=", $url); 355 355 $video_id = esc_attr($video_id); 356 356 $content = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $video_id . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $video_id . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>'; 357 357 358 358 } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { 359 list($domain, $video_id) = split(".com/", $url);359 list($domain, $video_id) = explode(".com/", $url); 360 360 $video_id = esc_attr($video_id); 361 361 $content = '<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=' . $video_id . '&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /> <embed src="http://www.vimeo.com/moogaloop.swf?clip_id=' . $video_id . '&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>';
Note: See TracChangeset
for help on using the changeset viewer.