LifterLMS Blocks

LifterLMS Blocks Version 1.8.0

  • Improved script dependencies definitions.
  • Updated asset paths for consistency with other LifterLMS projects.
  • Updated various WP Core references that have been deprecated (maintains backwards compatibility).
  • The Lesson Progression block is no longer rendered server-side in the block editor (minor performance improvement).
Changes to the Classic Editor Block
  • The classic editor block will no longer show block visibility settings because it is impossible to use those settings to filter the block on the frontend.
  • In order to apply visibility settings to the classic editor block, place the Classic Editor within a “Group” block and apply visibility settings to the Group.
Bug fixes
  • Fixed an issue encountered when using the WP Core “Table” block.
  • Fixed a few areas where class was being used instead of className to define CSS classes on elements in the block editor.
  • Fixed a user-experience issues encountered on the Course Information block when all possible information is disabled.
  • Fixed an issue causing visibility attributes to render on blocks that don’t support them.
  • Fixed an issue preventing 3rd party blocks from modifying default block visibility settings.
  • Fixed a spelling error visible inside the block editor.
  • Fixed an issue causing the “Course Progress” block to be shown to non-enrolled students and visitors.
  • Removed redundant CSS from frontend.
  • Stop outputting editor CSS on the frontend.
  • Dynamic blocks with no content to render will now only output their empty render messages inside the block editor, not on the frontend.

LifterLMS Blocks Version 1.7.1

  • Bug fix: Fixed a WordPress 5.3 issues with JSON data affecting the ability to save course/membership instructors.
  • Update: Added filter, llms_block_supports_visibility to allow modification of the return of the check.
  • Update: Disabled block visibility on registration & account forms to prevent a potentially confusing form creation experience.
  • Update: Added block editor rendering for password type fields.

LifterLMS Blocks Version 1.7.0

  • Membership post types can now use the LifterLMS Pricing Table block.
  • Membership post types are automatically migrated to the block editor (use the pricing table block instead of the pricing table action).
  • Added a block editor template for the Membership post type.
  • The block ‘llms/form-field-redeem-voucher’ is now only available on registration forms.
Bug Fixes
  • Backwards compatibility fixes for WP Core 5.2 and earlier.
  • Perform post migrations on current_screen instead of admin_enqueue_scripts.
  • Fix an issue causing “No HTML Returned” to be displayed in place of the Lesson Progression block on free lessons when viewed by a logged-out user.
  • Import InspectorControls from wp.blockEditor and fallback to wp.editor to maintain backwards compatibility.
  • Fall back to wp.editor for RichText import when wp.blockEditor is not found.
  • Import from wp.editor when wp.blockEditor is not available.
  • Return early during renders on WP Core 5.2 and earlier where the PluginDocumentSettingPanel doesn’t exist.

LifterLMS Blocks Version 1.6.0

  • Feature: Added form field blocks for use on the Forms manager.
  • Feature: Add logic for logged_in and logged_out block visibility options.
  • Update: Added isDisabled property to Search component.
  • Update: Adjusted priority of render_block filter to 20.
  • Bug fix: Import InspectorControls from wp.blockEditor in favor of deprecated wp.editor
  • Bug fix: Automatically store course/membership instructor with post_author data when the post is created.
  • Bug fix: Pass style rules as camelCase.