Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions js/cloudinary-media-library.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion php/class-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,8 @@ public function editor_assets() {

// External assets.
wp_enqueue_script( 'cloudinary-media-modal', $this->plugin->dir_url . '/js/media-modal.js', array(), $this->plugin->version, true );
wp_enqueue_script( 'cloudinary-media-library', CLOUDINARY_ENDPOINTS_MEDIA_LIBRARY, $deps, $this->plugin->version, true );
// Self-hosted to avoid WP 7.1 stamping crossorigin="anonymous" on this cross-origin CDN script, which the CDN doesn't send CORS headers for. See #1254.
wp_enqueue_script( 'cloudinary-media-library', $this->plugin->dir_url . '/js/cloudinary-media-library.js', $deps, $this->plugin->version, true );
wp_enqueue_script( 'cloudinary-terms-order', $this->plugin->dir_url . '/js/terms-order.js', array( 'jquery', 'wp-i18n' ), $this->plugin->version, true );
wp_enqueue_style( 'cloudinary' );
$params = array(
Expand Down
Loading