|
@@ 1474-1481 (lines=8) @@
|
| 1471 |
|
wordpoints_show_admin_error( esc_html__( 'That license key is invalid.', 'wordpoints' ) ); |
| 1472 |
|
} elseif ( $license instanceof WordPoints_Extension_Server_API_Extension_License_ExpirableI && $license->is_expired() ) { |
| 1473 |
|
if ( $license instanceof WordPoints_Extension_Server_API_Extension_License_RenewableI && $license->is_renewable() ) { |
| 1474 |
|
if ( $license instanceof WordPoints_Extension_Server_API_Extension_License_Renewable_URLI ) { |
| 1475 |
|
wordpoints_show_admin_error( |
| 1476 |
|
esc_html__( 'Sorry, that license key is expired, and must be renewed.', 'wordpoints' ) |
| 1477 |
|
. ' <a href="' . esc_url( $license->get_renewal_url() ) . '">' . esc_html__( 'Renew License', 'wordpoints' ) . '</a>' |
| 1478 |
|
); |
| 1479 |
|
} else { |
| 1480 |
|
wordpoints_show_admin_error( esc_html__( 'Sorry, that license key is expired, and must be renewed.', 'wordpoints' ) ); |
| 1481 |
|
} |
| 1482 |
|
} else { |
| 1483 |
|
wordpoints_show_admin_error( esc_html__( 'Sorry, that license key is expired.', 'wordpoints' ) ); |
| 1484 |
|
} |
|
@@ 2612-2624 (lines=13) @@
|
| 2609 |
|
|
| 2610 |
|
$license_key = $extension_data->get( 'license_key' ); |
| 2611 |
|
|
| 2612 |
|
if ( empty( $license_key ) ) { |
| 2613 |
|
|
| 2614 |
|
wordpoints_show_admin_error( |
| 2615 |
|
sprintf( |
| 2616 |
|
// translators: Extension name. |
| 2617 |
|
esc_html__( 'Please fill in your license key for the %s extension for WordPoints, so that you can receive updates.', 'wordpoints' ) |
| 2618 |
|
, $extension['name'] |
| 2619 |
|
) |
| 2620 |
|
. ' <a href="' . esc_url( self_admin_url( 'admin.php?page=wordpoints_extensions' ) ) . '">' . esc_html__( 'WordPoints Extensions screen »', 'wordpoints' ) . '</a>' |
| 2621 |
|
); |
| 2622 |
|
|
| 2623 |
|
continue; |
| 2624 |
|
} |
| 2625 |
|
|
| 2626 |
|
$license = $api->get_extension_license_object( $extension_data, $license_key ); |
| 2627 |
|
|