PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 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 All 142 releases
← All changes | inc/TemplateHooks/Admin/AdminListStudentsEnrolled.php +4 -1 4.4.8 → 4.4.10 View file →
@@ -100,8 +100,9 @@
100 100 'end_date' => LP_Request::get_param( 'end_date' ),
101 101 'enableUpdateParamsUrl' => false,
102 102 );
103 103
104 + /** @use self::render_enrolled_students $call_back */
104 105 $call_back = array(
105 106 'class' => self::class,
106 107 'method' => 'render_enrolled_students',
107 108 );
@@ -592,9 +593,11 @@
592 593 $graduation = $userCourseModel->get_graduation();
593 594 $status_raw = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
594 595 ? $userCourseModel->get_graduation()
595 596 : $userCourseModel->get_status();
596 - $status_label = ucfirst( str_replace( array( '-', '_' ), ' ', $status_raw ) );
597 + $status_label = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS
598 + ? $userCourseModel->get_graduation_label()
599 + : $userCourseModel->get_status_label();
597 600 $badge_class = 'lp-badge--' . sanitize_html_class( $status_raw );
598 601
599 602 // Date.
600 603 $date = UserCourseTemplate::instance()->html_start_date_time( $userCourseModel, false );