Skip to content

Commit c9fb204

Browse files
authored
Merge pull request #2928 from gocodebox/dev
Release 8.0.6
2 parents 1680f72 + 1c8ad18 commit c9fb204

File tree

8 files changed

+25
-9
lines changed

8 files changed

+25
-9
lines changed

.wordpress-org/readme/01-header.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=== LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes ===
2-
Contributors: chrisbadgett, strangerstudios, kimannwall, d4z_c0nf, actuallyakash, codeboxllc, brianhogg
2+
Contributors: lifterlms, chrisbadgett, strangerstudios, kimannwall, d4z_c0nf, actuallyakash, codeboxllc, brianhogg
33
Donate link: {{__PROJECT_URI__}}
44
Tags: lms, course, elearning, learning management system, quiz
55
License: {{__LICENSE__}}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
LifterLMS Changelog
22
===================
33

4+
v8.0.6 - 2025-04-21
5+
-------------------
6+
7+
##### Bug Fixes
8+
9+
+ Fix error when editing a lesson with a drip setting of a specific date. [#2926](https://github.com/gocodebox/lifterlms/issues/2926)
10+
11+
412
v8.0.5 - 2025-04-17
513
-------------------
614

class-lifterlms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class LifterLMS {
3434
*
3535
* @var string
3636
*/
37-
public $version = '8.0.5';
37+
public $version = '8.0.6';
3838

3939
/**
4040
* LLMS_Assets instance

includes/admin/post-types/meta-boxes/class.llms.meta.box.lesson.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public function get_fields() {
184184
'controller' => '#' . $this->prefix . 'drip_method',
185185
'controller_value' => 'date',
186186
'class' => 'llms-datepicker',
187+
'date_format' => 'yy-mm-dd',
187188
'id' => $this->prefix . 'date_available',
188189
'label' => __( 'Date Available', 'lifterlms' ),
189190
'type' => 'date',

includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.date.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,17 @@ public function output() {
133133
parent::output(); ?>
134134
<?php
135135
// Convert the meta value into display format.
136-
$js_display_date = '';
136+
$js_display_date = $this->meta;
137137
if ( ! empty( $this->meta ) ) {
138-
$meta_date = DateTime::createFromFormat( $this->jquery_date_to_php_format( $this->field['date_format'] ), $this->meta );
139-
$js_display_date = $meta_date->format( $this->jquery_date_to_php_format( $this->field['date_displayformat'] ) );
138+
$meta_date = DateTime::createFromFormat( $this->jquery_date_to_php_format( $this->field['date_format'] ), $this->meta );
139+
140+
if ( ! $meta_date ) {
141+
error_log( sprintf( 'Meta value %s for field %s is not in the expected format %s', $this->meta, $this->field['id'], $this->field['date_format'] ) );
142+
}
143+
144+
if ( $meta_date ) {
145+
$js_display_date = $meta_date->format( $this->jquery_date_to_php_format( $this->field['date_displayformat'] ) );
146+
}
140147
}
141148
?>
142149
<input type="hidden"

lifterlms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: LifterLMS
1111
* Plugin URI: https://lifterlms.com/
1212
* Description: Complete e-learning platform to sell online courses, protect lessons, offer memberships, and quiz students. WP Learning Management System.
13-
* Version: 8.0.5
13+
* Version: 8.0.6
1414
* Author: LifterLMS
1515
* Author URI: https://lifterlms.com/
1616
* Text Domain: lifterlms

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lifterlms",
3-
"version": "8.0.5",
3+
"version": "8.0.6",
44
"description": "LifterLMS by codeBOX",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)