We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9515ee4 commit b129fa0Copy full SHA for b129fa0
php/media/class-gallery.php
@@ -131,6 +131,13 @@ public function get_config() {
131
*/
132
$config['container'] = apply_filters( 'cloudinary_gallery_html_container', '' );
133
134
+ $credentials = $this->plugin->components['connect']->get_credentials();
135
+
136
+ if ( ! empty( $credentials['cname'] ) ) {
137
+ $config['secureDistribution'] = $credentials['cname'];
138
+ $config['privateCdn'] = true;
139
+ }
140
141
/**
142
* Filter the gallery configuration.
143
*
0 commit comments