Skip to content

Commit 565c96c

Browse files
author
Marco Pereirinha
committed
Remove analytics from video shortcode
1 parent 0e4b3f0 commit 565c96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/media/class-video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function filter_video_shortcode( $html, $attr ) {
162162
if ( empty( $attr['cloudinary'] ) ) {
163163
$video = wp_get_attachment_metadata( $attr['id'] );
164164
$url = $this->media->cloudinary_url( $attr['id'] );
165-
$attr[ $video['fileformat'] ] = $url;
165+
$attr[ $video['fileformat'] ] = strtok( $url, '?' );
166166
$attr['cloudinary'] = true; // Flag Cloudinary to ensure we don't call it again.
167167
$html = wp_video_shortcode( $attr, $html );
168168
}

0 commit comments

Comments
 (0)