LifterLMS Blocks

LifterLMS Blocks Version 2.1.0

  • Adjusted priority of block editor JS assets to load at priority 5 instead of 999. Resolves plugin conflicts encountered when using block-level visibility on blocks registered after visibility filters are applied.
  • Removed usage of react-sortable-hoc and replaced with dndkit for drag and drop UX within the editor.
  • Refactored the instructors sidebar (on courses and memberships) as well as the option shorting (for fields with options) to utilize dndkit.
  • Fixed an issue encountered on password confirmation fields when adjusting the minimum password length option on the user password block.

LifterLMS Blocks Version 2.0.0

  • Adds LifterLMS User Information form building via the block editor.
  • Initially compatibility for WordPress 5.8 (full site editing). Ensures core functionality but doesn’t add any exciting features.
  • Improve the visual feedback inside the editor for a block with visibility restrictions.
  • Added reusable block support for form fields.
  • Adds a user information ([llms-user]) shortcode inserter to rich text block toolbars.
  • Use rich text allowedFormats in favor of deprecated formattingControls
  • Improved localization of Javascript files.
Bug Fixes
  • Fixed issue encountered when using lesson progression blocks outside of a lesson, thanks @reedhewitt!
  • Fixed fatal errors encountered if LifterLMS core isn’t active when this plugin is activated.
  • Currently selected instructors are excluded from queries for instructor users.
  • Fixed issue encountered on courses and memberships when attempting to edit instructor information.
Backwards Incompatible Changes
  • Major refactor of all field-related blocks.
  • The names of many field blocks have changed.
  • Use getDisallowedBlocks() in favor of removed getBlacklist() in block-visibility/check.
  • Blocks restricted to specific posts have had the post object stored on the block attribute reduced to include only the minimum required properties.
  • The Search, SearchPost, and SearchUser components have had major changes to make them more extendable.
  • Don’t render InspectorControls since the block doesn’t have any actual settings.

LifterLMS Blocks Version 2.0.0-rc.1

  • Fixes issue encountered when adding a confirm group
  • Stop using merge codes in the password block
  • Improve block duplication handlers
  • Prevent confirm fields from being manually pasted outside of a confirm group
  • Adds the llms/user-information-fields redux store to allow for better field validation and handling
  • Improves and adds field attribute validation
  • Use rich text allowedFormats in favor of deprecated formattingControls
  • Remove the now unnecessary uuid field block attribute.
  • Adds WP core 5.8 compatibility on the widget and customizer screens.
  • Exclude LifterLMS field block reusables from the widgets reusable blocks screen.
  • Adds backwards compatibility for WordPress < 5.6

LifterLMS Blocks Version 2.0.0-beta.6

  • (Re-)introduces user information shortcode through a block editor rich text area format button.
  • Prevent usage the “User Login” block on account edit forms (usersnames cannot be edited in WordPress).
  • Only prevent form posts from being made “draft” status on the “core” forms.
  • Modifies field localization data strategy for field validation and others.

LifterLMS Blocks Version 2.0.0-beta.5

  • Add WP core 5.8 compatibility for deprecated filter block_categories.
  • Fixed issue encountered on courses and memberships when attempting to edit instructor information.
  • Added validation to ensure all fields have unique HTML name attributes.
  • Simplified field data storage interface to enable saving only to the usermeta table.

LifterLMS Blocks Version 2.0.0-beta.4

  • Fixed error encountered when opening the block editor options menu on an llms_form post type.
  • Added UUID generation to all form field blocks.
  • Fixed visual issues encountered with form field blocks on wide screens in the block editor.
  • Fixed issue preventing column widths from being set after switching from a stacked layout to a columns layout for a field group.
  • Added CSS classes to various option elements in the block editor
  • Moved most inline css in the editor into a static file
  • Fixed issue encountered when reverting a form to it’s default
  • Fixed dynamic block rendering errors encountered when the block is restricted to specific courses/memberships.
  • Added CSS to make input placeholder text look like a placeholder

LifterLMS Blocks Version 2.0.0-beta.3

  • All form field blocks refactored and many were removed or renamed.
  • Added column support to form field blocks.
  • Added reusable block support to form field blocks.
  • Removed support for block visibility on required field blocks (email and password).
  • Added reusable block filtering to only show “supported” reusable blocks when editing a form.
  • Added utility function support for reusable blocks.
  • Fixed issues related to visual rendering of checkboxes / radio elements on custom fields.