Skip to content

Commit

Permalink
Merge branch 'dev' into additional-attempt-check
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhogg authored Dec 16, 2024
2 parents 9872f41 + 4cd94ae commit d95c77e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changelogs/fix_start-date-error.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
significance: patch
type: fixed
links:
- "#2810"
entry: Avoid showing course opens message if no Course Start Date has been set.
3 changes: 1 addition & 2 deletions templates/content-single-course-before.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

if ( 'yes' === $course->get( 'time_period' ) ) {
// If the start date hasn't passed yet.
if ( ! $course->has_date_passed( 'start_date' ) ) {
if ( $course->get( 'start_date' ) && ! $course->has_date_passed( 'start_date' ) ) {

llms_add_notice( $course->get( 'course_opens_message' ), 'notice' );

Expand All @@ -30,4 +30,3 @@

llms_print_notices();
do_action( 'lifterlms_single_course_before_summary' );

0 comments on commit d95c77e

Please sign in to comment.