Skip to content

Commit af300df

Browse files
authored
Merge pull request #962 from cloudinary/hofix/3.1.9-build-1
Hofix/3.1.9 build 1
2 parents 6ac28b8 + 2a62a35 commit af300df

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

css/cloudinary.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/images/connection-string.png

1.62 KB
Loading

php/integrations/class-wpml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function setup_cron() {
144144
* @return string|null
145145
*/
146146
public function add_wpml_context( $context, $attachment_id ) {
147-
if ( 'attachment' === get_post_type( $attachment_id ) ) {
147+
if ( is_null( $attachment_id ) || 'attachment' === get_post_type( $attachment_id ) ) {
148148
$context = apply_filters( 'wpml_current_language', null );
149149
}
150150

php/media/class-global-transformations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __construct( \Cloudinary\Media $media ) {
9393
}
9494
$priority = intval( $setting->get_param( 'taxonomy_field.priority', 10 ) ) * 1000;
9595
while ( isset( $this->taxonomy_fields[ $context ][ $priority ] ) ) {
96-
$priority ++;
96+
++$priority;
9797
}
9898
if ( ! isset( $this->taxonomy_fields[ $context ] ) ) {
9999
$this->taxonomy_fields[ $context ] = array();
@@ -635,7 +635,7 @@ public function transformations_column( $cols ) {
635635
* @param int $attachment_id The attachment id.
636636
*/
637637
public function transformations_column_value( $column_name, $attachment_id ) {
638-
if ( 'cld_transformations' === $column_name && $this->media->sync->is_synced( $attachment_id ) ) {
638+
if ( 'cld_transformations' === $column_name && $this->media->sync->is_synced( $attachment_id, true ) ) {
639639

640640
// Transformations are only available for Images and Videos.
641641
if (

php/templates/connection-string.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
?>
2929
</p>
3030
<ol>
31-
<li><?php esc_html_e( 'Open your Cloudinary Dashboard', 'cloudinary' ); ?></li>
31+
<li><?php esc_html_e( 'Open your Cloudinary Console.', 'cloudinary' ); ?></li>
3232
<li>
3333
<?php
3434
printf(

src/css/components/ui/wizard/_connect.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,11 @@
5454
&-help {
5555
margin-top: 50px;
5656
}
57+
58+
&-help-image {
59+
border: 1px solid $color-cld-grey-blue;
60+
box-shadow: 0 0 1em 1em rgba(0, 0, 0, .05);
61+
margin: 2em;
62+
padding: 1em;
63+
}
5764
}
1.62 KB
Loading

0 commit comments

Comments
 (0)