Skip to content

Commit

Permalink
= 4.2.2.4 =
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnxt89 committed Apr 4, 2023
1 parent 7b2ea98 commit 9da1656
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions inc/course/abstract-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ public function load_data() {
$regular_price = get_post_meta( $id, '_lp_regular_price', true );
}

$block_course_finished = get_post_meta(
$id,
'_lp_block_finished',
true
);

$this->_set_data(
array(
'status' => $post_object->post_status,
Expand All @@ -186,11 +192,7 @@ public function load_data() {
'_lp_block_expire_duration',
true
),
'block_course_finished' => get_post_meta(
$id,
'_lp_block_finished',
true
),
'block_course_finished' => $block_course_finished ? $block_course_finished : 'yes',
'allow_repurchase' => get_post_meta( $id, '_lp_allow_course_repurchase', true ),
'allow_repurchase_course_option' => get_post_meta( $id, '_lp_course_repurchase_option', true ),
)
Expand Down
1 change: 0 additions & 1 deletion inc/user/class-lp-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public function can_view_content_course( int $course_id = 0 ): LP_Model_User_Can
);

$course = learn_press_get_course( $course_id );

if ( ! $course ) {
return $view;
}
Expand Down

0 comments on commit 9da1656

Please sign in to comment.