diff --git a/docs/cloudinary_asset_payload.html b/docs/cloudinary_asset_payload.html index 40f1555f..e000e263 100644 --- a/docs/cloudinary_asset_payload.html +++ b/docs/cloudinary_asset_payload.html @@ -168,7 +168,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_context_options.html b/docs/cloudinary_context_options.html index edcb6f72..8591f13a 100644 --- a/docs/cloudinary_context_options.html +++ b/docs/cloudinary_context_options.html @@ -188,7 +188,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_download_asset.html b/docs/cloudinary_download_asset.html index 0c2308cb..ba3c4b59 100644 --- a/docs/cloudinary_download_asset.html +++ b/docs/cloudinary_download_asset.html @@ -168,7 +168,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_filter_out_local.html b/docs/cloudinary_filter_out_local.html index b6af8480..9ddff91b 100644 --- a/docs/cloudinary_filter_out_local.html +++ b/docs/cloudinary_filter_out_local.html @@ -147,7 +147,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_id.html b/docs/cloudinary_id.html index f708e810..58169fac 100644 --- a/docs/cloudinary_id.html +++ b/docs/cloudinary_id.html @@ -171,7 +171,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_is_folder_synced.html b/docs/cloudinary_is_folder_synced.html index 547fe0e0..d1aa68d9 100644 --- a/docs/cloudinary_is_folder_synced.html +++ b/docs/cloudinary_is_folder_synced.html @@ -165,7 +165,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_max_files_import.html b/docs/cloudinary_max_files_import.html index 0f023c55..97aad32c 100644 --- a/docs/cloudinary_max_files_import.html +++ b/docs/cloudinary_max_files_import.html @@ -150,7 +150,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_migrate_legacy_meta.html b/docs/cloudinary_migrate_legacy_meta.html index 8e4ccc6d..1b31ef47 100644 --- a/docs/cloudinary_migrate_legacy_meta.html +++ b/docs/cloudinary_migrate_legacy_meta.html @@ -145,7 +145,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_prepare_size.html b/docs/cloudinary_prepare_size.html index 282534f1..c7612fe9 100644 --- a/docs/cloudinary_prepare_size.html +++ b/docs/cloudinary_prepare_size.html @@ -168,7 +168,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_upload_options.html b/docs/cloudinary_upload_options.html index c05ac371..b29a29e7 100644 --- a/docs/cloudinary_upload_options.html +++ b/docs/cloudinary_upload_options.html @@ -188,7 +188,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_validate_cloudinary_id.html b/docs/cloudinary_validate_cloudinary_id.html index 78584d80..f4f58d65 100644 --- a/docs/cloudinary_validate_cloudinary_id.html +++ b/docs/cloudinary_validate_cloudinary_id.html @@ -168,7 +168,7 @@
Parameters:
Source:
diff --git a/docs/cloudinary_version_upgrade.html b/docs/cloudinary_version_upgrade.html index af194988..f88c5d91 100644 --- a/docs/cloudinary_version_upgrade.html +++ b/docs/cloudinary_version_upgrade.html @@ -168,7 +168,7 @@
Parameters:
Source:
diff --git a/docs/php_class-connect.php.html b/docs/php_class-connect.php.html index 15e01408..c4f0ea94 100644 --- a/docs/php_class-connect.php.html +++ b/docs/php_class-connect.php.html @@ -213,8 +213,10 @@

Source: php/class-connect.php

$advanced = true === $request->get_param( 'advanced' ) ? 'on' : 'off'; // Cloudinary URL. - $connect = $this->settings->get_setting( 'cloudinary_url' ); - $connect->set_pending( $url ); + if ( ! empty( $url ) && true !== $url ) { + $connect = $this->settings->get_setting( 'cloudinary_url' ); + $connect->set_pending( $url ); + } // Autosync setup. $autosync = $this->settings->get_setting( 'auto_sync' ); diff --git a/docs/php_class-media.php.html b/docs/php_class-media.php.html index ea09ba4d..dbae89dd 100644 --- a/docs/php_class-media.php.html +++ b/docs/php_class-media.php.html @@ -1622,7 +1622,8 @@

Source: php/class-media.php

} } elseif ( is_string( $size ) || ( is_array( $size ) && 3 === count( $size ) ) ) { $intermediate = image_get_intermediate_size( $attachment_id, $size ); - if ( is_array( $intermediate ) ) { + // PDF's do not have intermediate URL. + if ( is_array( $intermediate ) && ! empty( $intermediate['url'] ) ) { $size = $this->get_crop( $intermediate['url'], $attachment_id ); } } elseif ( array_keys( $size ) === array( 0, 1 ) ) {