Skip to content

Commit f4a224d

Browse files
chore: tweaks
1 parent cfe9a37 commit f4a224d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

inc/admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ public function get_bf_notices( $user_plan ) {
15801580
$now = apply_filters( 'themeisle_sdk_current_date', new \DateTime( 'now' ) );
15811581
$current_year = $now->format( 'Y' );
15821582

1583-
$black_friday_day = new DateTime( "last Friday of November $current_year" );
1583+
$black_friday_day = new \DateTime( "last Friday of November $current_year" );
15841584
$sale_start = clone $black_friday_day;
15851585
$sale_start->modify( 'monday this week' );
15861586
$sale_start->setTime( 0, 0 );
@@ -1612,7 +1612,7 @@ public function get_bf_notices( $user_plan ) {
16121612
}
16131613

16141614
$message = sprintf(
1615-
// translators: $1$s is the promo code, $2$s is the discount amount ('25% off')
1615+
// translators: %1$s is the promo code, %2$s is the discount amount ('25% off')
16161616
__( 'Use coupon code %1$s for an instant %2$s on your first billing cycle on Optimole plan.', 'optimole-wp' ),
16171617
'<span class="border-b border-0 border-white border-dashed text-promo-orange">' . $promo_code . '</span>',
16181618
'<span class="text-promo-orange uppercase">' . __( '25% discount', 'optimole-wp' ) . '</span>'

tests/test-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function setUp(): void {
5454
$now = new \DateTime( 'now' );
5555
$current_year = $now->format( 'Y' );
5656

57-
$this->black_friday = new DateTime( "last Friday of November $current_year" );
57+
$this->black_friday = new \DateTime( "last Friday of November $current_year" );
5858
$this->sale_start = clone $this->black_friday;
5959
$this->sale_start->modify( 'monday this week' );
6060
$this->sale_start->setTime( 0, 0 );

0 commit comments

Comments
 (0)