Releases: gocodebox/lifterlms-rest
Releases · gocodebox/lifterlms-rest
Version 1.0.2
Version 1.0.1
v1.0.1 - 2024-07-09
Bug Fixes
- Update the processed flag to use all arguments. #2568
Security Fixes
- Adds additional security checks and escaping.
Version 1.0.0
v1.0.0 - 2024-01-22
includes/abstracts/class-llms-rest-posts-controller.php
- Fix fatals when searching for llms post type based resources but the query post type parameter is forced to be something else.
includes/models/class-llms-rest-webhook.php - Remove the processed flag as the ActionScheduler prevents multiple additions of the same hook.
Version 1.0.0-beta.29
v1.0.0-beta.29 - 2023-10-24
Bug Fixes
- Avoid PHP fatal when searching for courses/memberships but the query post type parameter is forced to a different post type. e.g. all post types except
post
excluded from search results. #299
Version 1.0.0-beta.28
v1.0.0-beta.28 - 2023-06-08
Bug Fixes
- Rebuild and re-release to avoid including unnecessary heavy files.
Version 1.0.0-beta.27
v1.0.0-beta.27 - 2023-05-31
Updates and Enhancements
- Replaced use of deprecated
strftime()
. - Replaced use of the deprecated
FILTER_SANITIZE_STRING
constant.
Developer Notes
- Fixed unit tests on WordPress 6.2.
- Allow all the resources to be extended using
register_rest_field()
. #157 - Added the ability for all the
WP_Post
andWP_User
based resources to manage custom meta registered viaregister_meta()
. #157 - Added
llms_rest_{$object_type}_item_schema
that will allow filtering any resource schema. Additional schema fields, added viaregister_rest_field()
, are not included. #157 - Added
llms_rest_allow_filtering_{$object_type}_item_schema_to_add_fields
filter hook. It allows adding additional fields using the filter hookllms_rest_{$object_type}_item_schema
without warnings. By default additional fields should be added viaregister_rest_field()
. #157 - Deprecated
llms_rest_enrollments_item_schema
andllms_rest_membership_item_schema
filter hooks in favor ofllms_rest_$object_type_item_schema
where the object type is, respectively, equal to 'students-enrollments' and 'llms-membership'. #157
Performance Improvements
- Cache results of get_item_schema on controller instances for performance. Additional schema fields, added via
register_rest_field()
, are not cached. #73
Version 1.0.0-beta.26
v1.0.0-beta.26 - 2023-02-28
Bug Fixes
- Removed the extra parameter passed to
LLMS_Student::enroll()
during status updates. #278 - Fixed an issue that produced the enrollment of the current user into a course when they were trying to enroll an user with ID 0. #308
Developer Notes
- The LifterLMS Core minimum required version has been raised to version 7.0.2. #308
Version 1.0.0-beta.25
Version 1.0.0-beta-24
v1.0.0-beta-24 - 2022-03-17
Bug Fixes
- Fixed reference to a non-existent schema property, visibiliy in place of visibility, when updating/adding an access plan.
- Fixed issue when updating a free access plan. #267
- Fixed issue causing the access plan
availability_restrictions
property to always return an empty array. #269 - Fixed issue that prevented updating the access plan
redirect_forced
property. #271 - Fixed issue updating access plans when there are 6 (max) plans associated with a course/membership. #272
Version 1.0.0-beta.23
v1.0.0-beta.23 - 2022-02-23
Updates and Enhancements
- Replaced call to deprecated
LLMS_Section::get_parent_course()
withLLMS_Section::get( 'parent_course' )
. - Replaced the calls to the deprecated
LLMS_Lesson::get_parent_course()
method withLLMS_Lesson::get( 'parent_course' )
. - Replaced deprecated
llms_user_removed_from_membership_level
action hook withllms_user_removed_from_membership
.