Skip to content

Commit 03df3b8

Browse files
committed
Build 2.4.0
1 parent 4d37e69 commit 03df3b8

13 files changed

+29
-26
lines changed

.changelogs/component-extensibility.yml

-4
This file was deleted.

.changelogs/intructors-update-fix-error.yml

-5
This file was deleted.

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
LifterLMS Blocks Changelog
22
==========================
33

4+
v2.4.0 - 2022-02-25
5+
-------------------
6+
7+
##### Updates and Enhancements
8+
9+
+ Components added to `window.llms.components` are now aware of components added to the object from other sources.
10+
11+
##### Bug Fixes
12+
13+
+ Fixed access to non-existing variable when current user tries to edit course/membership instructors without proper permissions. [#140](https://github.com/gocodebox/lifterlms-blocks#140)
14+
15+
416
v2.3.2 - 2022-02-22
517
-------------------
618

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'wp-polyfill', 'wp-redux-routine'), 'version' => '3522d2a2e5e9bf8f231f96c47d7fb93b');
1+
<?php return array('dependencies' => array('lodash', 'wp-polyfill', 'wp-redux-routine'), 'version' => 'cc7565f89caa7d3150c8aee593a46367');

assets/js/llms-blocks.asset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('jquery', 'lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url'), 'version' => '59f0d96c303b2be3cb16b1f516d10f2f');
1+
<?php return array('dependencies' => array('jquery', 'lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-rich-text', 'wp-server-side-render', 'wp-url'), 'version' => '307288dd7d86a8e56fd36f3eb1b4565b');

assets/js/llms-blocks.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

i18n/lifterlms-blocks.pot

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the GPLv3.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: LifterLMS Blocks 2.3.2\n"
5+
"Project-Id-Version: LifterLMS Blocks 2.4.0\n"
66
"Report-Msgid-Bugs-To: https://lifterlms.com/my-account/my-tickets\n"
77
"Last-Translator: Team LifterLMS <[email protected]>\n"
88
"Language-Team: Team LifterLMS <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2022-02-22T11:28:13-07:00\n"
12+
"POT-Creation-Date: 2022-02-25T08:52:58-07:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: llms/dev 0.0.3\n"
1515
"X-Domain: lifterlms\n"
@@ -54,7 +54,7 @@ msgstr ""
5454
msgid "No HTML was returned."
5555
msgstr ""
5656

57-
#: includes/class-llms-blocks-post-instructors.php:136
57+
#: includes/class-llms-blocks-post-instructors.php:137
5858
msgid "Sorry, you are not allowed to edit the object instructors."
5959
msgstr ""
6060

includes/class-llms-blocks-post-instructors.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package LifterLMS_Blocks/Classes
66
*
77
* @since 1.0.0
8-
* @version [version]
8+
* @version 2.4.0
99
*/
1010

1111
defined( 'ABSPATH' ) || exit;
@@ -122,7 +122,7 @@ public function maybe_set_default_instructor( $post_id, $post, $update ) {
122122
*
123123
* @since 1.0.0
124124
* @since 1.7.1 Decode JSON prior to saving.
125-
* @since [version] Fix access to non-existing variable when current user canno edit the course/membership.
125+
* @since 2.4.0 Fix access to non-existing variable when current user canno edit the course/membership.
126126
*
127127
* @param string $value Instructor data to add to the object (JSON).
128128
* @param WP_Post $object WP_Post object.

lifterlms-blocks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: LifterLMS Blocks
1212
* Plugin URI: https://github.com/gocodebox/lifterlms-blocks
1313
* Description: WordPress Editor (Gutenberg) blocks for LifterLMS.
14-
* Version: 2.3.2
14+
* Version: 2.4.0
1515
* Author: LifterLMS
1616
* Author URI: https://lifterlms.com/
1717
* Text Domain: lifterlms
@@ -27,7 +27,7 @@
2727

2828
// Define Constants.
2929
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
30-
define( 'LLMS_BLOCKS_VERSION', '2.3.2' );
30+
define( 'LLMS_BLOCKS_VERSION', '2.4.0' );
3131
}
3232

3333
/**

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lifterlms-blocks",
3-
"version": "2.3.2",
3+
"version": "2.4.0",
44
"description": "blocks",
55
"author": "LifterLMS",
66
"homepage": "https://lifterlms.com/",

src/js/blocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Main Block editor entry point.
33
*
44
* @since 1.0.0
5-
* @version [version]
5+
* @version 2.4.0
66
*/
77

88
// SCSS.

tests/phpunit/unit-tests/class-llms-blocks-test-post-instructors.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* @group post_instructors
88
*
99
* @since 1.6.0
10-
* @since [version] Added tests on `update_callback()` method for users without permissions to set course/membership instructors.
11-
* @version [version]
10+
* @since 2.4.0 Added tests on `update_callback()` method for users without permissions to set course/membership instructors.
11+
* @version 2.4.0
1212
*/
1313
class LLMS_Blocks_Test_Post_Instructors extends LLMS_Blocks_Unit_Test_Case {
1414

@@ -145,7 +145,7 @@ public function test_maybe_set_default_instructor_integration() {
145145
/**
146146
* Test update_callback method whith a user who has no permissions to set instructors.
147147
*
148-
* @since [version]
148+
* @since 2.4.0
149149
*
150150
* @return void
151151
*/

0 commit comments

Comments
 (0)