LifterLMS Social Learning Version 1.3.0

Updates
  • Define versions for llms-select2 script and styles to improve cache busting after updates.
  • Use strict type comparisons wherever possible.
  • Use wp_json_encode() in favor of json_encode().
  • Use wp_parse_url() in favor of parse_url().
  • Use wp_safe_redirect() over wp_redirect() when redericting to a same site URL.
  • Use wp_strip_all_tags() in favor of strip_tags().
  • Added new filter llms_sl_story_query_query_where.
  • Added new filter llms_sl_story_reply_query_query_where.
Bug fixes
  • Unslash input $_POST['term'] before using it.
  • Fixed trying to access to undefined variable $story_id, use $data['story_id'] instead.
  • Fixed a bug causing users from being unable to edit or delete stories on their own profile page.
  • Fixed use of incorrect usage of filter llms_sl_story_can_user_edit which should have been llms_sl_story_can_user_delete.
Deprecations
  • The $student argument of llms_sl_get_student_achievement_url() is no longer optional (for php8 compatibility).
  • File includes/models/class-llms-sl-story-reply.php should be used in favor of deprecated file includes/model-llms-sl-story-reply.php.
  • File includes/models/class-llms-sl-story.php should be used in favor of deprecated file includes/model-llms-sl-story.php.

Leave a Comment

Your email address will not be published. Required fields are marked *