Skip to content

Commit

Permalink
Fixed label regression wp-media/imagify#3001
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Dec 18, 2024
1 parent f9a94bc commit 111382c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion views/admin/admin-bar-status.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

$pos = strpos( $data['plan_label'], '_' );
$plan_label = false !== $pos ? substr( $data['plan_label'], 0, $pos ) : $data['plan_label'];
?>
<div class="imagify-admin-bar-quota">
<div class="imagify-abq-row">
Expand All @@ -8,7 +11,7 @@
<?php endif; ?>
<div class="imagify-account">
<p class="imagify-meteo-title"><?php esc_html_e( 'Account status', 'imagify' ); ?></p>
<p class="imagify-meteo-subs"><?php esc_html_e( 'Your subscription:', 'imagify' ); ?> &nbsp;<strong class="imagify-user-plan"><?php echo strstr( $data['plan_label'], '_', true ); ?></strong></p>
<p class="imagify-meteo-subs"><?php esc_html_e( 'Your subscription:', 'imagify' ); ?> &nbsp;<strong class="imagify-user-plan"><?php echo $plan_label; ?></strong></p>
</div>
</div>
<?php if ( $data['plan_with_quota'] ) : ?>
Expand Down

0 comments on commit 111382c

Please sign in to comment.