Skip to content

Commit 78354b1

Browse files
committed
Fix: Add checkout error message for pause enrollment courses
1 parent f1b670a commit 78354b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ecommerce/CheckoutController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,9 @@ public function pay_now() {
635635
$errors,
636636
sprintf(
637637
// Translators: %s course name.
638-
__( ' Course %s cannot be enrolled right now.', 'tutor' )
638+
__( 'Course %s cannot be enrolled right now.', 'tutor' ),
639+
get_the_title( $course_id ) ?? ''
639640
),
640-
get_the_title( $course_id ) ?? ''
641641
);
642642
}
643643
}

0 commit comments

Comments
 (0)