Skip to content

Commit b18252b

Browse files
authored
Merge pull request #261 from gocodebox/dev
Release 2.6.2 / 2.7
2 parents 96cba70 + ba404e0 commit b18252b

File tree

6 files changed

+26
-17
lines changed

6 files changed

+26
-17
lines changed

CHANGELOG.md

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

4+
v2.7.0 - 2025-10-31
5+
-------------------
6+
7+
##### Breaking Changes
8+
9+
+ Removing "Estimated Completion Time" from the Course Inforamtion block, as it was moved to General course options tab.
10+
11+
12+
v2.6.2 - 2025-10-06
13+
-------------------
14+
15+
##### Bug Fixes
16+
17+
+ Avoid "user email required" warning when editing a pattern. [#246](https://github.com/gocodebox/lifterlms-blocks/issues/246)
18+
19+
420
v2.6.1 - 2025-08-18
521
-------------------
622

lifterlms-blocks.php

Lines changed: 2 additions & 2 deletions
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.6.1
14+
* Version: 2.7.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.6.1' );
30+
define( 'LLMS_BLOCKS_VERSION', '2.7.0' );
3131
}
3232

3333
/**

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lifterlms-blocks",
3-
"version": "2.6.1",
3+
"version": "2.7.0",
44
"description": "blocks",
55
"author": "LifterLMS",
66
"homepage": "https://lifterlms.com/",

src/js/blocks/course-information/inspect.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ export default class Inspector extends Component {
6161
] }
6262
/>
6363

64-
<TextControl
65-
label={ __( 'Estimated Completion Time', 'lifterlms' ) }
66-
value={ length }
67-
onChange={ ( value ) =>
68-
setAttributes( { length: value } )
69-
}
70-
help={ __(
71-
'How many hours, days, weeks, etc… should a student expect to spend in order to complete this course.',
72-
'lifterlms'
73-
) }
74-
/>
75-
7664
<ToggleControl
7765
label={ __( 'Display Estimated Time', 'lifterlms' ) }
7866
checked={ !! show_length }

src/js/dom-ready/forms/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ function ensureEmailFieldExists() {
192192

193193
subscribe(
194194
debounce( () => {
195+
// Skip this check if we're editing a pattern.
196+
if ( 'wp_block' === select( 'core/editor' ).getCurrentPostType() ) {
197+
return;
198+
}
199+
195200
const post = select( 'core/editor' ).getCurrentPost(),
196201
blocks = getBlocksFlat().map( ( block ) => block.name );
197202

0 commit comments

Comments
 (0)