Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions classes/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,10 @@ public function add_earning_data( $item_id, $item, $order_id ) {
* Prevent adding earning data when order is created with WC block checkout page.
*
* @since 3.9.14
*
* @since 4.0.5 Check session before using $order->has_status
*/
if ( $order->has_status( 'checkout-draft' ) ) {
if ( WC()->session && $order->has_status( 'checkout-draft' ) ) {
return;
}

Expand Down Expand Up @@ -804,6 +806,7 @@ private function handle_checkout_order_item( $order, $item, $context = 'classic_
* @return void
*/
public function course_placing_order_from_customer( $item_id, $item, $order_id ) {

if ( is_admin() ) {
return;
}
Expand All @@ -817,8 +820,10 @@ public function course_placing_order_from_customer( $item_id, $item, $order_id )
* Prevent when order is created with WC block checkout page.
*
* @since 3.9.14
*
* @since 4.0.5 Check session before using $order->has_status
*/
if ( $order->has_status( 'checkout-draft' ) ) {
if ( WC()->session && $order->has_status( 'checkout-draft' ) ) {
return;
}

Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,18 @@ Tutor LMS allows you to offer certificates to your students upon course completi
Update: Hid the course products on shop page settings when monetize is native.
Update: UX updated for mobile devices to get back to website's home page from learning area.
Update: Updated instructor capability for better security.
Update: Updating a course author now set new instructor as author for all the course contents.
Fix: Resolve an issue where enrollment time extend date-picker was showing wrong date. (Pro)
Fix: Sending manual email is not working. (Pro)
Fix: Wrong site url set on the login otp email. (Pro)
Fix: WC Subscription renewal order trigger PHP fatal error. (Pro)
Fix: Fixed the cart & checkout shows only 10 items.
Fix: Course bundle maximum enrollment limit issue fixed. (Pro)
Fix: Cancelling a failed order revokes access from a valid paid order.
Fix: Co-author unable to see submitted assignments. (Pro)
Fix: Youtube link's preview not showing on the quiz's answer explanation.
Fix: Course detail page on the record showing incorrect enrollment date. (Pro)
Fix: LaTeX equations not render properly on the quiz options.

= 4.0.4 - 31 July, 2026

Expand Down
Loading