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/rest-api/v1/admin/class-lp-admin-rest-reset-data-controller.php +2 -2 4.1.7.1 → 4.4.9 View file →
@@ -93,9 +93,9 @@
93 93
94 94 if ( $rows ) {
95 95 foreach ( $rows as $k => $row ) {
96 96 $course = learn_press_get_course( $row->id );
97 - $row->students = $course->get_total_user_enrolled();
97 + $row->students = $course->get_total_user_enrolled_or_purchased();
98 98
99 99 if ( $row->students ) {
100 100 $courses[] = $row;
101 101 }
@@ -173,9 +173,9 @@
173 173 $wpdb->learnpress_user_items,
174 174 array(
175 175 'status' => LP_COURSE_ENROLLED,
176 176 'graduation' => 'in-progress',
177 - 'start_time' => current_time( 'mysql', true ),
177 + 'start_time' => current_time( 'mysql', 1 ),
178 178 'end_time' => null,
179 179 ),
180 180 array(
181 181 'item_id' => $course_id,