Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
LifterLMS Blocks Changelog
==========================

v2.7.0 - 2025-10-31
-------------------

##### Breaking Changes

+ Removing "Estimated Completion Time" from the Course Inforamtion block, as it was moved to General course options tab.


v2.6.2 - 2025-10-06
-------------------

##### Bug Fixes

+ Avoid "user email required" warning when editing a pattern. [#246](https://github.com/gocodebox/lifterlms-blocks/issues/246)


v2.6.1 - 2025-08-18
-------------------

Expand Down
4 changes: 2 additions & 2 deletions lifterlms-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: LifterLMS Blocks
* Plugin URI: https://github.com/gocodebox/lifterlms-blocks
* Description: WordPress Editor (Gutenberg) blocks for LifterLMS.
* Version: 2.6.1
* Version: 2.7.0
* Author: LifterLMS
* Author URI: https://lifterlms.com/
* Text Domain: lifterlms
Expand All @@ -27,7 +27,7 @@

// Define Constants.
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
define( 'LLMS_BLOCKS_VERSION', '2.6.1' );
define( 'LLMS_BLOCKS_VERSION', '2.7.0' );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lifterlms-blocks",
"version": "2.6.1",
"version": "2.7.0",
"description": "blocks",
"author": "LifterLMS",
"homepage": "https://lifterlms.com/",
Expand Down
12 changes: 0 additions & 12 deletions src/js/blocks/course-information/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@ export default class Inspector extends Component {
] }
/>

<TextControl
label={ __( 'Estimated Completion Time', 'lifterlms' ) }
value={ length }
onChange={ ( value ) =>
setAttributes( { length: value } )
}
help={ __(
'How many hours, days, weeks, etc… should a student expect to spend in order to complete this course.',
'lifterlms'
) }
/>

<ToggleControl
label={ __( 'Display Estimated Time', 'lifterlms' ) }
checked={ !! show_length }
Expand Down
5 changes: 5 additions & 0 deletions src/js/dom-ready/forms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ function ensureEmailFieldExists() {

subscribe(
debounce( () => {
// Skip this check if we're editing a pattern.
if ( 'wp_block' === select( 'core/editor' ).getCurrentPostType() ) {
return;
}

const post = select( 'core/editor' ).getCurrentPost(),
blocks = getBlocksFlat().map( ( block ) => block.name );

Expand Down
Loading