Skip to content

Commit 225815e

Browse files
authored
Merge pull request #487 from cloudinary/fix/videos-and-push
Fix videos and push
2 parents 0e4b3f0 + 147f65f commit 225815e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
}

php/sync/class-upload-sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function handle_bulk_actions( $location, $action, $post_ids ) {
163163

164164
// It's required to perform a new sync that Cloudinary and WordPress storage is set.
165165
if (
166-
$this->plugin->components['sync']->is_synced( $post_id ) &&
166+
$this->plugin->components['sync']->been_synced( $post_id ) &&
167167
'dual_full' !== $this->plugin->settings->find_setting( 'offload' )->get_value()
168168
) {
169169
continue;

0 commit comments

Comments
 (0)