Skip to content

Commit

Permalink
build for version 7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ideadude committed Nov 5, 2023
1 parent 81d5a96 commit 1374729
Show file tree
Hide file tree
Showing 84 changed files with 825 additions and 2,482 deletions.
5 changes: 0 additions & 5 deletions .changelogs/add-gateway-can-process-access-plan-logic-1.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/add-gateway-can-process-access-plan-logic-2.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .changelogs/add-gateway-can-process-access-plan-logic.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/blocks-2.5.2.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .changelogs/dev.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .changelogs/export-possible-security-issue.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .changelogs/feature_favorite-1.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/feature_favorite-2.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/feature_favorite-3.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/feature_favorite-4.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .changelogs/feature_favorite-5.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .changelogs/feature_favorite.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .changelogs/function-name-correction.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .changelogs/issue_2511-1.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .changelogs/issue_2511.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .changelogs/issue_2552.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .changelogs/issues_2434.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .changelogs/only-lifterlms-add-ons-in-all.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .changelogs/php82-1.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .changelogs/php82-2.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/php82.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/rest-beta-29.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .changelogs/update-action-scheduler.yml

This file was deleted.

55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,61 @@
LifterLMS Changelog
===================

v7.5.0 - 2023-11-05
-------------------

##### New Features

+ Added `LLMS_Add_On::get_image()` method to get the addon and author image. [#2511](https://github.com/gocodebox/lifterlms/issues/2511)
+ Added a paragraph to show Number of lessons in a course at Course Catalog and My Courses. [#2434](https://github.com/gocodebox/lifterlms/issues/2434)

##### Updates and Enhancements

+ Updates LifterLMS Blocks to [v2.5.2](https://make.lifterlms.com/2023/11/01/lifterlms-blocks-version-2-5-2/).
+ Bundled Add-ons & More Banners/Author Images in Core LifterLMS. [#2511](https://github.com/gocodebox/lifterlms/issues/2511)
+ Updates LifterLMS Rest to [v1.0.0-beta.29](https://make.lifterlms.com/2023/10/24/lifterlms-rest-api-version-1-0-0-beta-29/).
+ Update Action Scheduler to version 3.5.4. To improve compatibility with PHP 8.2.

##### Bug Fixes

+ Fixed checking for the wrong function name when defining the pluggable function `lifterlms_student_dashboard`. [#2550](https://github.com/gocodebox/lifterlms/issues/2550)
+ Only show LifterLMS-authored Addons in All section.
+ Improved compatibility with WordPress 6.4 by using `traverse_and_serialize_blocks` in place of the deprecated `_inject_theme_attribute_in_block_template_content`.
+ PHP 8.2 compatibility fix: Fixed creation of dynamic property `LLMS_Meta_Box_Access::$_saved`.

##### Developer Notes

+ Added `LLMS_Payment_Gateway::can_process_access_plan()` method to determine if an access plan can be processed by the gateway. Also added the filter hook `llms_can_gateway_process_access_plan` to filter its result.
+ Added a check on whether the gateway can process a specific plan when purchasing a plan, or switching the payment gateway of a recurring payment.
+ Added action hook `llms_checkout_form_gateway_cant_process_plan` fired on the checkout form gateways section, when a gateway cannot process a specific plan.
+ Added new filter hook `llms_unschedule_recurring_payment_on_access_pan_expiration` to control whether or not the recurring payments fo an order need to be unscheduled when the related access plan expires (`true` by default).
+ Added 'favorites' in User postmeta for getting all user's favorites.
+ Added filter `llms_course_syllabus_lesson_favorite_visibility` for disabling favorites in syllabus view.
+ Added filter `llms_is_$object_type_favorite` to change object's (lesson, student, course) favorite boolean value.
+ Added `llms_lesson_preview_before_title` and `llms_lesson_preview_after_title` action hooks.
+ Added function `llms_template_syllabus_favorite_lesson_preview`.
+ Added filter `llms_favorites_enabled` to enable/disable Favorites feature.
+ Removed references to the unused quiz's property `random_answers`. Thanks [@AlexVCS](https://github.com/AlexVCS)! [#2552](https://github.com/gocodebox/lifterlms/issues/2552)
+ Improved some unit tests compatibility with PHP 8.2.

##### Security Fixes

+ Improved security when exporting a reporting table: make sure to avoid path traversals. Thanks [Huseyin Tintas (stif)](https://linkedin.com/in/huseyintintas)!

##### Updated Templates

+ [templates/checkout/form-gateways.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/checkout/form-gateways.php)
+ [templates/checkout/form-switch-source.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/checkout/form-switch-source.php)
+ [templates/content-single-lesson-before.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/content-single-lesson-before.php)
+ [templates/course/favorite.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/course/favorite.php)
+ [templates/course/length.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/course/length.php)
+ [templates/course/lesson-count.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/course/lesson-count.php)
+ [templates/course/lesson-preview.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/course/lesson-preview.php)
+ [templates/loop/content.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/loop/content.php)
+ [templates/myaccount/dashboard.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/myaccount/dashboard.php)
+ [templates/myaccount/my-favorites.php](https://github.com/gocodebox/lifterlms/blob/7.5.0/templates/myaccount/my-favorites.php)


v7.4.2 - 2023-10-06
-------------------

Expand Down
23 changes: 23 additions & 0 deletions assets/css/lifterlms-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,29 @@ svg .llms-animated-circle {
display: inline-block;
}

.llms-favorite-wrapper {
cursor: pointer;
}
.llms-favorite-wrapper .fa-heart {
color: #EF476F;
}

.llms-has-favorite .llms-parent-course-link {
display: inline-block;
margin-bottom: 20px;
}
.llms-has-favorite .llms-parent-course-link + .llms-favorite-wrapper {
float: left;
margin: 0;
}

.llms-syllabus-wrapper .llms-has-favorite {
text-align: right;
}
.llms-syllabus-wrapper .llms-has-favorite .llms-favorite-wrapper {
display: inline-block;
}

.llms-loop-list {
list-style: none;
margin: 0 -10px;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/lifterlms-rtl.min.css

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions assets/css/lifterlms.css

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

2 changes: 1 addition & 1 deletion assets/css/lifterlms.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/builder/Models/Quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Quiz Model.
*
* @since 3.16.0
* @version [version]
* @version 7.5.0
*/
define( [
'Collections/Questions',
Expand Down Expand Up @@ -51,7 +51,7 @@ define( [
*
* @since 3.16.0
* @since 7.4.0 Added filter for filtering defaults.
* @since [version] Replaced unused `random_answers` property with `random_questions`.
* @since 7.5.0 Replaced unused `random_answers` property with `random_questions`.
*
* @return {Object}
*/
Expand Down
13 changes: 7 additions & 6 deletions assets/js/llms-builder.js

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

2 changes: 1 addition & 1 deletion assets/js/llms-builder.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions assets/js/llms-favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* @type {Object}
*
* @since [version]
* @version [version]
* @since 7.5.0
* @version 7.5.0
*/
( function( $ ) {

Expand All @@ -16,7 +16,7 @@
/**
* Bind DOM events.
*
* @since [version]
* @since 7.5.0
*
* @return {Void}
*/
Expand All @@ -39,7 +39,7 @@
/**
* Favorite / Unfavorite an object.
*
* @since [version]
* @since 7.5.0
*
* @param {Object} $btn jQuery object for the "Favorite / Unfavorite" button.
* @return {Void}
Expand Down
2 changes: 2 additions & 0 deletions assets/js/llms-favorites.min.js

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

2 changes: 1 addition & 1 deletion assets/maps/css/lifterlms.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/maps/css/lifterlms.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/maps/js/llms-builder.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/maps/js/llms-builder.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion class-lifterlms.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class LifterLMS {
*
* @var string
*/
public $version = '7.4.2';
public $version = '7.5.0';

/**
* LLMS_Assets instance
Expand Down
2 changes: 1 addition & 1 deletion includes/abstracts/abstract.llms.admin.metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ abstract class LLMS_Admin_Metabox {
* Used to prevent save action from running
* multiple times on a single load.
*
* @since [version]
* @since 7.5.0
* @var bool
*/
private $_saved;
Expand Down
6 changes: 3 additions & 3 deletions includes/abstracts/abstract.llms.payment.gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package LifterLMS/Abstracts/Classes
*
* @since 3.0.0
* @version [version]
* @version 7.5.0
*/

defined( 'ABSPATH' ) || exit;
Expand Down Expand Up @@ -1059,7 +1059,7 @@ public function supports( $feature, $order = null ) {
/**
* Determine if an access plan can be processed by the gateway.
*
* @since [version]
* @since 7.5.0
*
* @param LLMS_Access_Plan $plan Instance of an LLMS_Access_Plan.
* @param LLMS_Order $order Instance of an LLMS_Order. Used to check whether a payment can be switched using this gateway.
Expand All @@ -1071,7 +1071,7 @@ public function can_process_access_plan( $plan, $order = null ) {
/**
* Filters whether or not a gateway can process a specific access plan.
*
* @since [version]
* @since 7.5.0
*
* @param bool $can_process_plan Whether or not the gateway can process a specific access plan.
* @param LLMS_Access_Plan $plan Access plan object.
Expand Down
Loading

0 comments on commit 1374729

Please sign in to comment.