@@ 1513-1520 (lines=8) @@ | ||
1510 | wordpoints_show_admin_error( esc_html__( 'That license key is invalid.', 'wordpoints' ) ); |
|
1511 | } elseif ( $license instanceof WordPoints_Extension_Server_API_Extension_License_ExpirableI && $license->is_expired() ) { |
|
1512 | if ( $license instanceof WordPoints_Extension_Server_API_Extension_License_RenewableI && $license->is_renewable() ) { |
|
1513 | if ( $license instanceof WordPoints_Extension_Server_API_Extension_License_Renewable_URLI ) { |
|
1514 | wordpoints_show_admin_error( |
|
1515 | esc_html__( 'Sorry, that license key is expired, and must be renewed.', 'wordpoints' ) |
|
1516 | . ' <a href="' . esc_url( $license->get_renewal_url() ) . '">' . esc_html__( 'Renew License', 'wordpoints' ) . '</a>' |
|
1517 | ); |
|
1518 | } else { |
|
1519 | wordpoints_show_admin_error( esc_html__( 'Sorry, that license key is expired, and must be renewed.', 'wordpoints' ) ); |
|
1520 | } |
|
1521 | } else { |
|
1522 | wordpoints_show_admin_error( esc_html__( 'Sorry, that license key is expired.', 'wordpoints' ) ); |
|
1523 | } |
|
@@ 2676-2688 (lines=13) @@ | ||
2673 | ||
2674 | $license_key = $extension_data->get( 'license_key' ); |
|
2675 | ||
2676 | if ( empty( $license_key ) ) { |
|
2677 | ||
2678 | wordpoints_show_admin_error( |
|
2679 | sprintf( |
|
2680 | // translators: Extension name. |
|
2681 | esc_html__( 'Please fill in your license key for the %s extension for WordPoints, so that you can receive updates.', 'wordpoints' ) |
|
2682 | , $extension['name'] |
|
2683 | ) |
|
2684 | . ' <a href="' . esc_url( self_admin_url( 'admin.php?page=wordpoints_extensions' ) ) . '">' . esc_html__( 'WordPoints Extensions screen »', 'wordpoints' ) . '</a>' |
|
2685 | ); |
|
2686 | ||
2687 | continue; |
|
2688 | } |
|
2689 | ||
2690 | $license = $api->get_extension_license_object( $extension_data, $license_key ); |
|
2691 |