Skip to content

Commit 9140244

Browse files
authored
Merge pull request #339 from cloudinary/fix/upgrade-options
Fix upgrade options link
2 parents ea8f05f + 0029c0d commit 9140244

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

php/class-connect.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -615,19 +615,15 @@ public function usage_notices() {
615615
if ( empty( $usage ) ) {
616616
continue;
617617
}
618-
$link = null;
619-
$link_text = null;
618+
$link = 'https://cloudinary.com/console/lui/upgrade_options';
619+
$link_text = __( 'upgrade your account', 'cloudinary' );
620620
if ( 90 <= $usage ) {
621621
// 90% used - show error.
622-
$level = 'error';
623-
$link = 'https://cloudinary.com/console/lui/upgrade_options';
624-
$link_text = __( 'upgrade your account', 'cloudinary' );
622+
$level = 'error';
625623
} elseif ( 80 <= $usage ) {
626-
$level = 'warning';
627-
$link_text = __( 'upgrade your account', 'cloudinary' );
624+
$level = 'warning';
628625
} elseif ( 70 <= $usage ) {
629-
$level = 'neutral';
630-
$link_text = __( 'upgrade your account', 'cloudinary' );
626+
$level = 'neutral';
631627
} else {
632628
continue;
633629
}

0 commit comments

Comments
 (0)