Skip to content

Commit

Permalink
= 4.2.2.4 =
Browse files Browse the repository at this point in the history
~ Added: wp_enqueue_media on field image.
  • Loading branch information
tungnxt89 committed Apr 4, 2023
1 parent 01cfccb commit 93aea1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion inc/admin/meta-box/fields/image.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php $option_value = $value['value']; ?>
<?php
wp_enqueue_media();
$option_value = $value['value'];
?>

<tr valign="top">
<th scope="row" class="titledesc">
Expand Down
2 changes: 1 addition & 1 deletion inc/user/class-lp-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function can_view_item( int $item_id = 0, $view = null ): LP_Model_User_C
$view = $view_new;
}

return apply_filters( 'learnpress/course/item/can-view', $view, $item );
return apply_filters( 'learnpress/course/item/can-view', $view, $item, $this );
}

/**
Expand Down

0 comments on commit 93aea1e

Please sign in to comment.