PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | inc/TemplateHooks/Admin/AdminListStudentsEnrolled.php +3 -1 4.4.8 → 4.4.9 View file →
@@ -592,9 +592,11 @@
592 592 $graduation = $userCourseModel->get_graduation();
593 593 $status_raw = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
594 594 ? $userCourseModel->get_graduation()
595 595 : $userCourseModel->get_status();
596 - $status_label = ucfirst( str_replace( array( '-', '_' ), ' ', $status_raw ) );
596 + $status_label = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
597 + ? $userCourseModel->get_graduation_label()
598 + : $userCourseModel->get_status_label();
597 599 $badge_class = 'lp-badge--' . sanitize_html_class( $status_raw );
598 600
599 601 // Date.
600 602 $date = UserCourseTemplate::instance()->html_start_date_time( $userCourseModel, false );