PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.2.0 All 139 releases
← All changes | inc/rest-api/v1/admin/class-lp-admin-rest-tools-controller.php +2 -2 4.4.34.4.8 View file →
@@ -567,9 +567,9 @@
567 567 foreach ( $data as $user_course ) {
568 568 $user_id = $user_course['user_id'] ?? 0;
569 569 $course_id = $user_course['course_id'] ?? 0;
570 570 if ( ! $user_id || ! $course_id ) {
571 - throw new Exception( 'User or Course is invalid', 'learnpress' );
571 + throw new Exception( __( 'User or Course is invalid', 'learnpress' ) );
572 572 }
573 573
574 574 $can_handle = apply_filters(
575 575 'learn-press/assign-courses-to-users/can-handle',
@@ -646,9 +646,9 @@
646 646 foreach ( $data as $user_course ) {
647 647 $user_id = $user_course['user_id'] ?? 0;
648 648 $course_id = $user_course['course_id'] ?? 0;
649 649 if ( ! $user_id || ! $course_id ) {
650 - throw new Exception( 'User or Course is invalid', 'learnpress' );
650 + throw new Exception( __( 'User or Course is invalid', 'learnpress' ) );
651 651 }
652 652
653 653 // Delete data user who already enrolled this course.
654 654 LP_User_Items_DB::getInstance()->delete_user_items_old( $user_id, $course_id );