Strenghtened the “members only” products purchase prevention.
Updates and Enhancements
Replaced use of the deprecated FILTER_SANITIZE_STRING constant.
Improved compatibility with blockified WooCommerce templates.
Bug Fixes
Fixed an issue with the Divi builder when using the Divi module Woo Product Meta on a non product page.
Developer Notes
New methods added: LLMS_WC_Availability_Buttons::maybe_modify_blockified_add_to_cart_form(), LLMS_WC_Availability_Buttons::maybe_modify_blockified_product_grid_item(), LLMS_WC_Availability_Buttons::maybe_modify_blockified_loop_product_add_to_cart_link().
Added new function llms_wc_is_members_only_wc_product_restricted_for_user, to determine whether a product is only available for members only users and the current use can buy it.
The LifterLMS Core minimum required version has been raised to version 5.9.0.
Added filters llms_wc_user_can_buy_members_only_wc_product and llms_wc_user_not_already_enrolled_into_related_llms_products.
The minimum WordPress supported version is now 5.8, while the minimum WooCommerce supported version has been raised to 6.7.
Replaced Post Title block from full-width template.
Styling improvements for Social Learning Advanced Add On.
Added stylelint and update WooCommerce element custom properties.
Added improved styling for Social Learning add on.
Added inline heading custom properties e.g. var(--wp--custom--heading--font-family).
Load editor styles for LifterLMS add-ons.
Added body element to custom properties function.
Updated custom properties in CSS files to use element properties.
Added font weight value to typography styles in theme.json.
Removes LifterLMS single templates when plugin not active.
Updates and Enhancements
Changed footer pattern to instead load site logo due to WP 6.2.2 shortcode issues.
Using element custom properties in Social Learning CSS.
Improved Logged Out view of Social Learning timeline and input fields.
Update tested up to version to 6.2.
Bug Fixes
Updating 404 to match empty search results for consistency.
Fixed missing social media brand icons in profile sidebar.
Added temporary CSS fix to avoid unsightly spaces into the course syllabus and course progress on lesson’s sidebar, due to WordPress 6.2.2 adding empty paragraphs to shortcode content when rendered in a block template.
Fixed styling for notifications that were not visible on large screens.
Breaking Changes
Removed duplicate i18n directory and Composer build:pot script.
Removed Post Title block from full-width template.
Fixed an issue that prevented the correct saving of the course length when using the block editor. #2426
Developer Notes
Fixed an issue running unit tests on PHP 7.4 and WordPress 6.2 expecting render_block() returning a string while we were applying a filter that returned the boolean true.
Avoid use of inline styles in course reviews. #410
Bug Fixes
Fixed “Unsaved Data” warning when adding vouchers. #2394
Fixed “Course Length” and “Difficulty” fields visible in the Block Editor which is meant for Classic Editor. #2174
Added missing $post_id parameter to the the_title filter hook when retrieving a form title. #2332
Added missing Armed Forces options to the US States dropdown in the Billing information form. #2325
Using strpos() instead of str_starts_with() for compatibility. #2415
Developer Notes
Added helper function llms_get_floats_rounding_precision() to return precision for rounding off floating values and filter hook lifterlms_floats_rounding_precision to filter precision value in reporting. #2237
Added lifterlms_dashboard_memberships_not_enrolled_text filter hook to allow altering the message displaying on the student dashboard when the current user is not enrolled in any memberships. #2396
Added lifterlms_dashboard_courses_not_enrolled_text filter hook to allow altering the message displaying on the student dashboard when the current user is not enrolled in any courses. #2396