Skip to content

Commit cc830f3

Browse files
authored
Apply suggestions from code review
1 parent 88b2c95 commit cc830f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-global-transformations.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,11 @@ private function init_taxonomy_manager( $post ) {
405405

406406
// Get apply Type.
407407
if ( ! empty( $terms ) ) {
408-
$type = get_post_meta($post->ID, self::META_APPLY_KEY . '_terms', true);
409-
$out[] = '<label class="cld-tax-order-list-type"><input ' . checked( 'overwrite', $type, false ) . ' type="checkbox" value="overwrite" name="cld_apply_type" />' . __('Overwrite taxonomy', 'cloudinary') . '</label>';
408+
$type = get_post_meta( $post->ID, self::META_APPLY_KEY . '_terms', true );
409+
$out[] = '<label class="cld-tax-order-list-type"><input ' . checked( 'overwrite', $type, false ) . ' type="checkbox" value="overwrite" name="cld_apply_type" />' . __( 'Overwrite taxonomy', 'cloudinary' ) . '</label>';
410410
}
411411

412412
$out[] = '</div>';
413-
414413
return implode( $out );
415414
}
416415

0 commit comments

Comments
 (0)