v1.7.0
This commit is contained in:
parent
4f8ab239b0
commit
c7a8d9efcc
7 changed files with 123 additions and 27 deletions
|
|
@ -278,7 +278,7 @@ $compat_warnings = 0;
|
|||
|
||||
if ( $days_left >= 0 && $days_left <= 14 ) {
|
||||
$sub_text = sprintf(
|
||||
/* translators: %d: days remaining. */
|
||||
/* translators: %d: days remaining. */
|
||||
__( 'Subscribed — %d days left', 'robotstxt-manager' ),
|
||||
$days_left
|
||||
);
|
||||
|
|
@ -292,6 +292,17 @@ $compat_warnings = 0;
|
|||
} elseif ( 'expired' === $sub_status ) {
|
||||
$sub_text = __( 'Expired', 'robotstxt-manager' );
|
||||
}
|
||||
|
||||
// Bound domain (per-domain licenses, Core 1.11.0+):
|
||||
// shown once the license is tied to a site.
|
||||
$raw_bound = $sub_row['bound_domain'] ?? '';
|
||||
$bound_text = is_string( $raw_bound ) ? trim( $raw_bound ) : '';
|
||||
|
||||
if ( '' !== $bound_text && in_array( $sub_status, array( 'active', 'payment_failed' ), true ) ) {
|
||||
$sub_text = '' !== $sub_text
|
||||
? $sub_text . ' @ ' . $bound_text
|
||||
: $bound_text;
|
||||
}
|
||||
}
|
||||
|
||||
if ( '' !== $sub_text ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue