LearnPress 4.2.0 Beta 1 Is Now Available
This version of the LearnPress software is under development. Please do not install, run, or test this version of LearnPress on production or mission-critical websites. Instead, it is recommended that you test the Beta version on a test server and site.
Direct download version-beta. (Release version may be published on 05 December 2022)
‘Keep WordPress bug-free – help with testing‘
If you see this notification, you can help us by downloading and testing this beta version on your testing websites. If you find any issues, feel free to send us the issue code, image, and anything related.
Your feedback helps us to find and fix issues before releasing the official version.
Feedback to us
LearnPress 4.2.0 Beta 1 ChangeLog
~ Added: ‘LP_Question_Cache’, LP_Session_Filter class.
~ Implement: Except for class LP_Query_List_Table we still keep implementing ArrayAccess (will notice the warning, but don’t worry, you only need to disable WP_DEBUG mode), because add-ons: learnpress-h5p(version 4.0.1 and lower), learnpress-assignment(version 4.0.7 and lower) require it. So you need to update to the higher version of these plugins to make sure.
~ Not Implement: ArrayAccess, Iterator, Countable of PHP on classes: LP_Datetime, LP_Session_Handler, LP_User_Item_Course, LP_User_Item, LP_Quiz_Results, LP_Course_Item, LP_Quiz, LP_Array_Access, LP_Profile_Tabs.
~ Fixed: Shortcode [learn_press_checkout] working right.
~ Fixed: Compatibility with WordPress PHP 8.1.
~ Defined: ‘learn_press_clear_cart_after_payment’ on hook ‘get_header’.
~ Defined: ‘learn_press_set_user_cookie_for_guest’ function on hook ‘wp’.
~ Defined: ‘learn_press_custom_checkout_cart’ on hook ‘learn_press_checkout_cart’.
~ Modified: LP_Datetime, remove method: toLocal, toRFC822, toUnix, setGMT, getSqlNullDate, addDuration, getPeriod.
~ Modified: get_expiration_time, remove param $format (17502a0).
~ Modified: Class LP_Question_True_Or_False, LP_Question_Single_Choice, LP_Question_Multi_Choice, LP_Question_Fill_In_Blanks (3af1d1c).
~ Modified: class LP_Question, remove method: _get_default_answers, _filter_meta_box_meta, update_answer_orders (3af1d1c)
~ Modified: Method ‘get_answers’ of class LP_Question (3af1d1c)
~ Modified: ‘learn_press_mark_user_just_logged_in’ function.
~ Modified: Not storing key ‘order_awaiting_payment’ in session, you need to update the ‘learnpress-certificate’ add-on to version 4.0.4 or higher.
~ Modified: ‘set_cookie’ method on class LP_Request (c12c4b54).
~ Modified: ‘LP_Session_Handler’ class (c12c4b54).
~ Modified: ‘save_data’ method of class LP_Session_Handler (c12c4b5).
~ Modified: ‘get_cart_from_session’, ‘get_session_data’, ‘save_data’ methods on class LP_Session_Handler.
~ Modified: Change name ‘get_session’ method to ‘get_session_by_customer_id’.
~ Modified: ‘update_session_timestamp’, ‘delete_session’ methods on class LP_Session_Handler.
~ Modified: ‘LP_Cart’, optimize how to set session for cart, get cart items when called, an instance of set on hook ‘wp_loaded’ always call, not call ‘set_cart_cookies’ when ‘add_to_cart’ method called.
~ Modified: ‘LP_Profile_Tabs’ class.
~ Modified: Replace all access via array to fields and methods of classes LP_Query_List_Table, LP_Profile, LP_Profile_Tab.
~ Modified: ‘create_order’ method on class ‘LP_Checkout’.
~ Modified: ‘calculate_totals’ on class LP_Cart.
~ Modified: LP_Shortcode_Checkout class.
~ Remove: get_time_remaining, get_time of the class LP_User_Item, get_finishing_type of the class LP_User_Item_Course.
~ Remove: ‘learn_press_course_question_permalink_friendly’ function.
~ Remove: get_course_remaining_time on the class LP_Abstract_User.
~ Remove: ‘learn_press_add_order’ function.
~ Remove: learn_press_generate_transaction_object function.
~ Remove: ‘offsetExists’, ‘offsetGet’, ‘get_current_question’, ‘get_question_position’, ‘check_question’, ‘get_question_link’ methods LP_Quiz class.
~ Remove: The ‘instructions’ method on the ‘LP_Gateway_Offline_Payment’ class.
~ Remove: Delete the ‘LP_Request_Handler’ class, your need to update add-ons ‘Course Review’ (version 4.0.4 or higher), and ‘Wishlist’ (version 4.0.4 or higher).
~ Remove: method ‘get_cart_for_session’ on class LP_Cart.
~ Optimized: handle the session.
~ Optimized: Only set the cookie when the user does not log in.
~ Optimized: When a user login is successful, the previous session of the guest user is deleted.
~ Optimized: When a user logs out, expired sessions are deleted.
ThimPress Development Team