Ticket #31373: 31373-dailymotion.diff
File 31373-dailymotion.diff, 871 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-press-this.php
419 419 $src = 'https://vimeo.com/' . (int) $src_matches[1]; 420 420 } else if ( preg_match( '/\/\/vine\.co\/v\/([^\/]+)\/embed/', $src, $src_matches ) ) { 421 421 $src = 'https://vine.co/v/' . $src_matches[1]; 422 } else if ( preg_match( '/\/\/(www\.)?dailymotion\.com\/embed\/video\/([^\/\?]+)([\/\?]{1}.+)?/', $src, $src_matches ) ) { 423 $src = 'https://www.dailymotion.com/video/' . $src_matches[2]; 422 424 } else if ( ! preg_match( '/\/\/(m\.|www\.)?youtube\.com\/watch\?/', $src ) 423 425 && ! preg_match( '/\/youtu\.be\/.+$/', $src ) 424 426 && ! preg_match( '/\/\/vimeo\.com\/[\d]+$/', $src )