Skip to content

Commit

Permalink
Merge pull request #7553 from Automattic/release/4.22.0
Browse files Browse the repository at this point in the history
Release 4.22.0
  • Loading branch information
Imran92 committed Mar 20, 2024
2 parents e8cf694 + 3288498 commit 12dc684
Show file tree
Hide file tree
Showing 40 changed files with 1,428 additions and 1,317 deletions.
25 changes: 25 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
*** Changelog ***

## 4.22.0 - 2024-03-20
### Added
- Added Course onboarding tour [#7535](https://github.com/Automattic/sensei/pull/7535)
- Added Lesson Quiz onboarding tour [#7538](https://github.com/Automattic/sensei/pull/7538)
- Add toggle to pre-publish panel to publish associated lessons when the course is published [#7536](https://github.com/Automattic/sensei/pull/7536)
- Display warning when there are no layouts available. [#7530](https://github.com/Automattic/sensei/pull/7530)

### Changed
- Tweak "Configure learning mode" task description [#7540](https://github.com/Automattic/sensei/pull/7540)
- Updated styles for module title and lesson title in Course Outline block [#7068](https://github.com/Automattic/sensei/pull/7068)

### Removed
- Remove "Customize your lesson template" from task list [#7539](https://github.com/Automattic/sensei/pull/7539)

### Fixed
- Address the issue of patterns flickering in the editor wizard on WPCOM sites [#7511](https://github.com/Automattic/sensei/pull/7511)
- Contact Teacher and Conditional Content block not appearing in Site Editor when Gutenberg is enabled [#7541](https://github.com/Automattic/sensei/pull/7541)
- Email subject with special characters not being displayed correctly [#7546](https://github.com/Automattic/sensei/pull/7546)
- Email Template showing up as default template in editor when GB is installed [#7517](https://github.com/Automattic/sensei/pull/7517)
- Ensure that default passing grade will be "0" for any situation [#7524](https://github.com/Automattic/sensei/pull/7524)
- Fix lesson bulk edit. [#7515](https://github.com/Automattic/sensei/pull/7515)
- Fix Sensei Pro question type not displaying in filter and table on Questions page [#7544](https://github.com/Automattic/sensei/pull/7544)
- Ignore Passing Grade for answer feedback when Pass Required is turned off [#7525](https://github.com/Automattic/sensei/pull/7525)
- WPML: Create quiz and question translations, update relations [#7480](https://github.com/Automattic/sensei/pull/7480)

## 4.21.0 - 2024-02-26
### Added
- Add existing lessons in Course Outline [#7368](https://github.com/Automattic/sensei/pull/7368)
Expand Down
4 changes: 0 additions & 4 deletions changelog/add-ability-to-set-font-size-for-subheader

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-course-onboarding-tour

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-lesson-onboarding-tour

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-answer-feedback

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-default-quiz-passmark

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-editor-layout-with-divi

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-email-post-type-being-set-for-all-posts

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-encoded-email-subject

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-lesson-bulk-edit

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-ordering-question-type

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-patterns-flicker-on-wpcom

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-wpml-quiz

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/update-learning-mode-task-description

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/update-remove-customize-lesson-template-task

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/update-save-lessons-on-course-save

This file was deleted.

2 changes: 1 addition & 1 deletion includes/admin/class-sensei-course-pre-publish-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Class that handles the pre-publish panel for courses.
*
* @since $$next-version$$
* @since 4.22.0
*/
class Sensei_Course_Pre_Publish_Panel {
/**
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/class-sensei-editor-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public function register_post_metas() {
*
* @access private
*
* @deprecated $$next-version$$ use Sensei_Editor_Wizard::enqueue_editor_wizard_assets instead.
* @deprecated 4.22.0 use Sensei_Editor_Wizard::enqueue_editor_wizard_assets instead.
*/
public function enqueue_admin_scripts( $hook_suffix ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
_deprecated_function( __METHOD__, '$$next-version$$', 'Sensei_Editor_Wizard::enqueue_editor_wizard_assets' );
_deprecated_function( __METHOD__, '4.22.0', 'Sensei_Editor_Wizard::enqueue_editor_wizard_assets' );

$this->enqueue_editor_wizard_assets();
}
Expand Down
16 changes: 8 additions & 8 deletions includes/admin/class-sensei-tour.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Class that handles editor wizards.
*
* @since $$next-version$$
* @since 4.22.0
*/
class Sensei_Tour {

Expand All @@ -34,7 +34,7 @@ private function __construct() {
/**
* Fetches an instance of the class.
*
* @since $$next-version$$
* @since 4.22.0
*
* @return self
*/
Expand All @@ -49,7 +49,7 @@ public static function instance() {
/**
* Initializes the class.
*
* @since $$next-version$$
* @since 4.22.0
*/
public function init() {
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_scripts' ] );
Expand All @@ -71,7 +71,7 @@ public function enqueue_admin_scripts( $hook ) {
in_array( $hook, [ 'post-new.php', 'post.php' ], true )
) {
$tour_loaders[ "sensei-$post_type-tour" ] = [
'minimum_install_version' => '$$next-version$$', // TODO: Add different version for lesson tour later if needed.
'minimum_install_version' => '4.22.0',
'path' => "admin/tour/$post_type-tour/index.js",
];
}
Expand All @@ -81,7 +81,7 @@ public function enqueue_admin_scripts( $hook ) {
*
* @hook sensei_tour_loaders Load tours for Sensei.
*
* @since $$next-version$$
* @since 4.22.0
*
* @param {array} $tour_loaders The tour loaders.
*
Expand All @@ -108,7 +108,7 @@ public function enqueue_admin_scripts( $hook ) {
*
* @hook sensei_tour_is_complete Check if a tour is complete.
*
* @since $$next-version$$
* @since 4.22.0
*
* @param {bool} $is_tour_complete The tour completion status.
* @param {string} $tour_id The tour ID.
Expand All @@ -133,7 +133,7 @@ public function enqueue_admin_scripts( $hook ) {
/**
* Set tour status for user.
*
* @since $$next-version$$
* @since 4.22.0
*
* @param string $tour_id The tour ID.
* @param bool $status The tour status.
Expand All @@ -160,7 +160,7 @@ public function set_tour_completion_status( $tour_id, $status, $user_id = 0 ) {
/**
* Get tour status for user.
*
* @since $$next-version$$
* @since 4.22.0
*
* @param string $tour_id The tour ID.
* @param int $user_id The user ID.
Expand Down
6 changes: 3 additions & 3 deletions includes/class-sensei-course-structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,19 +593,19 @@ private function create_quiz( int $lesson_id ) {
*
* @since 4.20.1
*
* @deprecated $$next-version$$ Use sensei_quiz_create instead.
* @deprecated 4.22.0 Use sensei_quiz_create instead.
*
* @hook sensei_course_structure_quiz_created
*
* @param {int} $quiz_id Quiz post ID.
* @param {int} $lesson_id Course post ID.
*/
do_action_deprecated( 'sensei_course_structure_quiz_created', array( $quiz_id, $lesson_id ), '$$next-version$$', 'sensei_quiz_create' );
do_action_deprecated( 'sensei_course_structure_quiz_created', array( $quiz_id, $lesson_id ), '4.22.0', 'sensei_quiz_create' );

/**
* Fires after a quiz is created while saving the course structure.
*
* @since $$next-version$$
* @since 4.22.0
*
* @hook sensei_quiz_create
*
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-lesson.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ public function quiz_update( $post_id ) {
/**
* Fires after a quiz is created while saving a lesson in a non-block editor.
*
* @since $$next-version$$
* @since 4.22.0
*
* @hook sensei_quiz_create
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function save_quiz( WP_REST_Request $request ) {
/**
* Fires after a quiz is created via the REST API.
*
* @since $$next-version$$
* @since 4.22.0
*
* @hook sensei_quiz_create
*
Expand Down
4 changes: 2 additions & 2 deletions includes/rest-api/class-sensei-rest-api-tour-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sensei Tour API.
*
* @package sensei
* @since $$next-version$$
* @since 4.22.0
*/

namespace Sensei\Admin\Tour;
Expand All @@ -15,7 +15,7 @@
/**
* Sensei Tour REST API endpoints.
*
* @since $$next-version$$
* @since 4.22.0
*/
class Sensei_REST_API_Tour_Controller extends \WP_REST_Controller {

Expand Down
4 changes: 2 additions & 2 deletions includes/wpml/class-course-translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Compatibility code with WPML.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*/
Expand All @@ -36,7 +36,7 @@ public function init() {
/**
* Save lessons fields on course translation created.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*
Expand Down
8 changes: 4 additions & 4 deletions includes/wpml/class-custom-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Compatibility code with WPML.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*/
Expand All @@ -34,7 +34,7 @@ public function init() {
/**
* Update course prerequisite before copied.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*
Expand Down Expand Up @@ -77,7 +77,7 @@ public function update_course_prerequisite_before_copied( $copied_value, $post_i
/**
* Update lesson course before copied.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*
Expand Down Expand Up @@ -120,7 +120,7 @@ public function update_lesson_course_before_copied( $copied_value, $post_id_from
/**
* Update quiz id for a question before copied.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*
Expand Down
2 changes: 1 addition & 1 deletion includes/wpml/class-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Compatibility code with WPML.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/wpml/class-language-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Compatibility code with WPML.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*/
Expand Down Expand Up @@ -114,7 +114,7 @@ public function set_language_details_when_quiz_created( $quiz_id, $lesson_id ) {
/**
* Set language details for the question when it is created.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*
Expand Down
4 changes: 2 additions & 2 deletions includes/wpml/class-lesson-translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Compatibility code with WPML.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*/
Expand All @@ -37,7 +37,7 @@ public function init() {
/**
* Update lesson properties on lesson translation created.
*
* @since $$next-version$$
* @since 4.22.0
*
* @internal
*
Expand Down

0 comments on commit 12dc684

Please sign in to comment.