Skip to content

Commit d61206b

Browse files
committed
Revert class-api code
1 parent 124ba15 commit d61206b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php/connect/class-api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,6 @@ public function cloudinary_url( $public_id = null, $args = array(), $size = arra
358358
);
359359

360360
$base = Utils::pathinfo( $public_id );
361-
if ( ! empty( $args['transformation'] ) ) {
362-
$url_parts[] = self::generate_transformation_string( $args['transformation'], $args['resource_type'] );
363-
}
364361

365362
// Add size.
366363
if ( ! empty( $size ) && is_array( $size ) ) {
@@ -372,6 +369,9 @@ public function cloudinary_url( $public_id = null, $args = array(), $size = arra
372369
$public_id = str_replace( $base['basename'], $size['file'], $public_id );
373370
}
374371
}
372+
if ( ! empty( $args['transformation'] ) ) {
373+
$url_parts[] = self::generate_transformation_string( $args['transformation'], $args['resource_type'] );
374+
}
375375

376376
if ( $attachment_id ) {
377377
$public_id = $this->get_public_id( $attachment_id, $args, $public_id );

0 commit comments

Comments
 (0)