Skip to content

Commit 9215df2

Browse files
committed
Merge branch 'dev' of github.com:gocodebox/lifterlms-rest into trunk
2 parents 36d769f + 1792fad commit 9215df2

36 files changed

+3088
-254
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
LifterLMS REST API Changelog
22
============================
33

4+
v1.0.0-beta.18 - 2021-02-09
5+
---------------------------
6+
7+
##### Updates
8+
9+
+ Added Access Plan resource and endpoint.
10+
+ Provide a more significant error message when trying to delete an item without permissions.
11+
+ Use `WP_Http` constants in favor of integers when referencing HTTP status codes.
12+
13+
##### Bug fixes
14+
15+
+ Fixes localization issues where a singular name was used in favor of the expected plural form.
16+
+ Fixed issues where an error object was not properly returned when expected
17+
+ Fixed call to undefined function `llms_bad_request_error()`, must be `llms_rest_bad_request_error()`.
18+
+ Fixed access plans resource link.
19+
+ Fixed wrong trigger retrieved when multiple trigger were present for the same user/post pair on Student Enrollment resources.
20+
21+
422
v1.0.0-beta.17 - 2020-11-24
523
---------------------------
624

class-lifterlms-rest-api.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package LifterLMS_REST_API/Classes
66
*
77
* @since 1.0.0-beta.1
8-
* @version 1.0.0-beta.17
8+
* @version 1.0.0-beta.18
99
*/
1010

1111
defined( 'ABSPATH' ) || exit;
@@ -26,7 +26,7 @@ final class LifterLMS_REST_API {
2626
*
2727
* @var string
2828
*/
29-
public $version = '1.0.0-beta.17';
29+
public $version = '1.0.0-beta.18';
3030

3131
/**
3232
* Constructor.
@@ -119,6 +119,7 @@ public function keys() {
119119
*
120120
* @since 1.0.0-beta.1
121121
* @since 1.0.0-beta.9 Include memberships controller class file.
122+
* @since 1.0.0-beta.18 Include access plans controller class file.
122123
*
123124
* @return void
124125
*/
@@ -137,6 +138,7 @@ public function rest_api_includes() {
137138

138139
// Controllers.
139140
'server/class-llms-rest-api-keys-controller',
141+
'server/class-llms-rest-access-plans-controller',
140142
'server/class-llms-rest-courses-controller',
141143
'server/class-llms-rest-sections-controller',
142144
'server/class-llms-rest-lessons-controller',
@@ -159,6 +161,7 @@ public function rest_api_includes() {
159161
*
160162
* @since 1.0.0-beta.1
161163
* @since 1.0.0-beta.9 Init memberships controller.
164+
* @since 1.0.0-beta.18 Init access plans controller.
162165
*
163166
* @return void
164167
*/
@@ -175,6 +178,7 @@ public function rest_api_controllers_init() {
175178
'LLMS_REST_Students_Progress_Controller',
176179
'LLMS_REST_Enrollments_Controller',
177180
'LLMS_REST_Webhooks_Controller',
181+
'LLMS_REST_Access_Plans_Controller',
178182
);
179183

180184
foreach ( $controllers as $controller ) {

0 commit comments

Comments
 (0)