Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix My Courses returns all courses when 'All' is selected (#2671)
* fix My Course returns all courses Because the get_course_ids_to_be_excluded function from sensei-lms directly returns an empty array when encountering "all" and unexpected options, it causes the filter to return all courses when "all" is selected, instead of the courses that a student has been enrolled in. Since there is no native hook to adjust this, it has been ported from Sensei. reference: https://github.com/Automattic/sensei/blob/trunk/includes/blocks/course-list/class-sensei-course-list-student-course-filter.php#L95-L97
- Loading branch information