Skip to content

Commit

Permalink
Displays the new licence->name instead of license_account matching li…
Browse files Browse the repository at this point in the history
…cence (Closes #7096)
  • Loading branch information
nicomollet committed Nov 7, 2024
1 parent e5bca66 commit 67e6253
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/functions/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,12 @@ function rocket_get_license_type( $customer_data ) {
return __( 'Unavailable', 'rocket' );
}

// The licence name directly from User endpoint.
if ( ! empty ( $customer_data->licence->name ) ) {

Check notice on line 554 in inc/functions/admin.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/functions/admin.php#L554

Space before opening parenthesis of function call prohibited
return esc_html( $customer_data->licence->name );
}

// Fallback to licence account.
if ( 1 <= $customer_data->licence_account
&&
$customer_data->licence_account < 3
Expand Down

0 comments on commit 67e6253

Please sign in to comment.