Skip to content

Commit 351dbf7

Browse files
author
Marco Pereirinha
committed
Add consistency
1 parent 40be42f commit 351dbf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/sync/class-upload-sync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,14 @@ public function filter_status( $status, $attachment_id ) {
306306

307307
if ( $this->is_pending( $attachment_id ) ) {
308308
$status['state'] = 'warning';
309-
$status['note'] = esc_html__( 'Upload sync pending', 'cloudinary' );
309+
$status['note'] = __( 'Upload sync pending', 'cloudinary' );
310310
}
311311

312312
// Check if there's an error.
313313
$has_error = $this->plugin->components['media']->get_post_meta( $attachment_id, Sync::META_KEYS['sync_error'], true );
314314
if ( ! empty( $has_error ) ) {
315-
$status['note'] = $has_error;
316315
$status['state'] = 'error';
316+
$status['note'] = $has_error;
317317
}
318318

319319
return $status;

0 commit comments

Comments
 (0)