Posted on

Sensei 1.8.1 bug fix release now available

Version 1.8.1 of Sensei has just been released. See our documentation for details of how to update.

This release just includes a few minor fixes and tweaks:

  • We made teachers have to submit courses for review before they will be published.
  • We tweaked the wording in the email sent to admins when a teacher submits a course for review.
  • We updated the .pot language file with all new strings.

 

See the changelog for full details of this release.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Sensei 1.8 is here, with big improvements for teachers

Version 1.8.0 of Sensei has just been released. See our documentation for details of how to update.

This update introduces several new features, so as usual, we strongly recommend testing the update on a staging site before updating your live site.

Here’s an overview of what’s new in Sensei 1.8:

  • Teachers can now create and manage their own courses (including lessons and quizzes). See Sensei Roles & Capabilities
  • This works with WooCommerce Product Vendors, allowing teachers to earn commission on sales of their courses.
  • Modules are now in Sensei core (so you can remove the modules extension if you have it).
  • Many lesson and quiz settings can now be updated via Bulk Edit and Quick Edit.
  • Email notifications can now be disabled on a per-course basis. See Email Notifications
  • The Sensei menu items in the WordPress admin have been restructured to be more logical. See Sensei Menu Items.

Note: The Sensei Course Progress extension has also been updated (v1.0.4) to work with Sensei 1.8. Again, make sure you remove the Modules extension before updating Sensei Course Progress, as it won’t work with the Modules extension.

Important notes for developers:

Sensei global instance function
In previous versions you had to to declare the global $Woothemes_Sensei before you could gain access to Sensei properties, but from now on you can simply use:

Sensei()

The code below:

global $woothemes_sensei;
$version = $woothemes_sensei->version;

will become

$version = Sensei()->version

This has not yet been applied across the whole code base but all instances of global $woothemes_sensei will be replaced by it as we continue to improve Sensei.

Get all courses
You can now get all course with this function: WooThemes_Sensei_Courses::get_all_courses().  No need to roll your own WP_Query. This function also comes with a new filter for further extensions: sensei_get_all_courses .

Modules template
There is a new template for modules which is now included as part of the Sensei templates. You will find it here:
 woothemes-sensei/templates/single-course/course-modules/course-modules.php

New classes and class name formats
You will notice 2 new classes namely:

  • class-sensei-modules.php ( modules functionality )
  • class-sensei-teacher.php ( teacher role functionality )

You will also notice that these classes are named differently in that we have dropped WooThemes from the name. The reason for this is to simplify finding files in the class list. The aim is to eventually just end up with class-module and class teacher. This will go hand in hand with using Name spaces when the minimum requirement for WordPress is pushed up to 5.4 and beyond.

When name spaces are supported we will be giving classes simpler names within the Sensei name space, but more on that in future.

More unit tests

The units have been extended, but this is just the beginning as we aim to cover most of the code base with Unit tests. Our tests run publicly here: https://travis-ci.org/woothemes/sensei

Check if admin user is a teacher

We also have a new function to test if the current user is on the admin of the site and if they are a teacher:

Sensei()->teacher->is_admin_teacher()

You can see the full commit history for this release here: https://github.com/woothemes/sensei/pull/855

See the changelog for full details of this release.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Sensei Course Participants 1.1.1 now available

Sensei Course Participants 1.1.1 was recently released, fixing a few minor issues:

  • Fixed an issue with a single course participant not showing correctly.
  • Updated the .pot file to ensure all strings are included.
  • Adjusted the localisation loader to look inside the ‘languages’ directory, so translations will work there.

View the changelog for full details.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Sensei 1.7.7 security release is now available

Version 1.7.7 of Sensei has just been released. See our documentation for details of how to update.

This release fixes a cross-site-scripting vulnerability identified in WordPress earlier this week. You can read more about the vulnerability here.

We strongly recommend updating to version 1.7.7 immediately.

See the changelog for full details of this release.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Sensei 1.7.6 bugfix release is now available

Version 1.7.6 of Sensei has just been released. See our documentation for details of how to update.

This release fixes two important bugs in the Learner Management screen:

  • Restores the search field in the ‘Find learner’ dropdown when adding a learner to a course.
  • Fixes an issue preventing learners being removed from a course.

See the changelog for full details of this release.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Sensei 1.7.5 bugfix release is now available

Version 1.7.5 of Sensei has just been released. See our documentation for details of how to update.

This release fixes several bugs:

  • Fixed an issue in Learner Management where completing a course for a learner wouldn’t work, and redirected to the lesson page.
  • Fixed an issue where the answer feedback was not saved when the question was first saved.
  • Prevents two notification emails being sent when a private message is sent.
  • Fixed the ‘upload file’ button when editing a single question.
  • Ensures the question order is maintained when duplicating a lesson with a quiz.
  • Fixed an issue where grading feedback was not being displayed.
  • Ensures a confirmation message is displayed when a learner sends a private message.
  • The ‘Register’ button on the single course page now links to the My Courses page (if set), rather than the default WordPress register page.

See the changelog for full details of this release.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Sensei 1.7.4 bugfix release is now available

Version 1.7.4 of Sensei has just been released. See our documentation for details of how to update.

This release fixes several bugs, most notably, an issue where if you used the same questions in multiple quizzes, the answers you submitted in the first quiz would already be selected when viewing the second quiz.

See the changelog for full details of this release.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)

Posted on

Updates for Sensei Share Your Grade and Sensei Course Participants

Sensei Share Your Grade 1.0.2 and Sensei Course Participants 1.1.0 are now available. See our documentation for details of how to update.

Sensei Share Your Grade – 1.0.2

  • Fixes an issue preventing the display of the sharing buttons in Sensei 1.7+

Sensei Course Participants – 1.1.0

  • Displays “1 learner” instead of “1 learners”
  • Displays “You” instead of the learner name of the currently logged in user.

(Comments are closed on this post. If you experience any issues, please contact support via the link in the sidebar.)