Skip to content

Commit 12dc684

Browse files
authored
Merge pull request #7553 from Automattic/release/4.22.0
Release 4.22.0
2 parents e8cf694 + 3288498 commit 12dc684

40 files changed

+1428
-1317
lines changed

changelog.txt

+25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
*** Changelog ***
22

3+
## 4.22.0 - 2024-03-20
4+
### Added
5+
- Added Course onboarding tour [#7535](https://github.com/Automattic/sensei/pull/7535)
6+
- Added Lesson Quiz onboarding tour [#7538](https://github.com/Automattic/sensei/pull/7538)
7+
- Add toggle to pre-publish panel to publish associated lessons when the course is published [#7536](https://github.com/Automattic/sensei/pull/7536)
8+
- Display warning when there are no layouts available. [#7530](https://github.com/Automattic/sensei/pull/7530)
9+
10+
### Changed
11+
- Tweak "Configure learning mode" task description [#7540](https://github.com/Automattic/sensei/pull/7540)
12+
- Updated styles for module title and lesson title in Course Outline block [#7068](https://github.com/Automattic/sensei/pull/7068)
13+
14+
### Removed
15+
- Remove "Customize your lesson template" from task list [#7539](https://github.com/Automattic/sensei/pull/7539)
16+
17+
### Fixed
18+
- Address the issue of patterns flickering in the editor wizard on WPCOM sites [#7511](https://github.com/Automattic/sensei/pull/7511)
19+
- Contact Teacher and Conditional Content block not appearing in Site Editor when Gutenberg is enabled [#7541](https://github.com/Automattic/sensei/pull/7541)
20+
- Email subject with special characters not being displayed correctly [#7546](https://github.com/Automattic/sensei/pull/7546)
21+
- Email Template showing up as default template in editor when GB is installed [#7517](https://github.com/Automattic/sensei/pull/7517)
22+
- Ensure that default passing grade will be "0" for any situation [#7524](https://github.com/Automattic/sensei/pull/7524)
23+
- Fix lesson bulk edit. [#7515](https://github.com/Automattic/sensei/pull/7515)
24+
- Fix Sensei Pro question type not displaying in filter and table on Questions page [#7544](https://github.com/Automattic/sensei/pull/7544)
25+
- Ignore Passing Grade for answer feedback when Pass Required is turned off [#7525](https://github.com/Automattic/sensei/pull/7525)
26+
- WPML: Create quiz and question translations, update relations [#7480](https://github.com/Automattic/sensei/pull/7480)
27+
328
## 4.21.0 - 2024-02-26
429
### Added
530
- Add existing lessons in Course Outline [#7368](https://github.com/Automattic/sensei/pull/7368)

changelog/add-ability-to-set-font-size-for-subheader

-4
This file was deleted.

changelog/add-course-onboarding-tour

-4
This file was deleted.

changelog/add-lesson-onboarding-tour

-4
This file was deleted.

changelog/fix-answer-feedback

-4
This file was deleted.

changelog/fix-contact-teacher-and-conditional-block-not-appearing

-4
This file was deleted.

changelog/fix-default-quiz-passmark

-4
This file was deleted.

changelog/fix-editor-layout-with-divi

-4
This file was deleted.

changelog/fix-email-post-type-being-set-for-all-posts

-4
This file was deleted.

changelog/fix-encoded-email-subject

-4
This file was deleted.

changelog/fix-lesson-bulk-edit

-4
This file was deleted.

changelog/fix-ordering-question-type

-4
This file was deleted.

changelog/fix-patterns-flicker-on-wpcom

-4
This file was deleted.

changelog/fix-wpml-quiz

-4
This file was deleted.

changelog/update-learning-mode-task-description

-4
This file was deleted.

changelog/update-remove-customize-lesson-template-task

-4
This file was deleted.

changelog/update-save-lessons-on-course-save

-4
This file was deleted.

includes/admin/class-sensei-course-pre-publish-panel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Class that handles the pre-publish panel for courses.
1414
*
15-
* @since $$next-version$$
15+
* @since 4.22.0
1616
*/
1717
class Sensei_Course_Pre_Publish_Panel {
1818
/**

includes/admin/class-sensei-editor-wizard.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public function register_post_metas() {
7878
*
7979
* @access private
8080
*
81-
* @deprecated $$next-version$$ use Sensei_Editor_Wizard::enqueue_editor_wizard_assets instead.
81+
* @deprecated 4.22.0 use Sensei_Editor_Wizard::enqueue_editor_wizard_assets instead.
8282
*/
8383
public function enqueue_admin_scripts( $hook_suffix ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
84-
_deprecated_function( __METHOD__, '$$next-version$$', 'Sensei_Editor_Wizard::enqueue_editor_wizard_assets' );
84+
_deprecated_function( __METHOD__, '4.22.0', 'Sensei_Editor_Wizard::enqueue_editor_wizard_assets' );
8585

8686
$this->enqueue_editor_wizard_assets();
8787
}

includes/admin/class-sensei-tour.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Class that handles editor wizards.
1616
*
17-
* @since $$next-version$$
17+
* @since 4.22.0
1818
*/
1919
class Sensei_Tour {
2020

@@ -34,7 +34,7 @@ private function __construct() {
3434
/**
3535
* Fetches an instance of the class.
3636
*
37-
* @since $$next-version$$
37+
* @since 4.22.0
3838
*
3939
* @return self
4040
*/
@@ -49,7 +49,7 @@ public static function instance() {
4949
/**
5050
* Initializes the class.
5151
*
52-
* @since $$next-version$$
52+
* @since 4.22.0
5353
*/
5454
public function init() {
5555
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_scripts' ] );
@@ -71,7 +71,7 @@ public function enqueue_admin_scripts( $hook ) {
7171
in_array( $hook, [ 'post-new.php', 'post.php' ], true )
7272
) {
7373
$tour_loaders[ "sensei-$post_type-tour" ] = [
74-
'minimum_install_version' => '$$next-version$$', // TODO: Add different version for lesson tour later if needed.
74+
'minimum_install_version' => '4.22.0',
7575
'path' => "admin/tour/$post_type-tour/index.js",
7676
];
7777
}
@@ -81,7 +81,7 @@ public function enqueue_admin_scripts( $hook ) {
8181
*
8282
* @hook sensei_tour_loaders Load tours for Sensei.
8383
*
84-
* @since $$next-version$$
84+
* @since 4.22.0
8585
*
8686
* @param {array} $tour_loaders The tour loaders.
8787
*
@@ -108,7 +108,7 @@ public function enqueue_admin_scripts( $hook ) {
108108
*
109109
* @hook sensei_tour_is_complete Check if a tour is complete.
110110
*
111-
* @since $$next-version$$
111+
* @since 4.22.0
112112
*
113113
* @param {bool} $is_tour_complete The tour completion status.
114114
* @param {string} $tour_id The tour ID.
@@ -133,7 +133,7 @@ public function enqueue_admin_scripts( $hook ) {
133133
/**
134134
* Set tour status for user.
135135
*
136-
* @since $$next-version$$
136+
* @since 4.22.0
137137
*
138138
* @param string $tour_id The tour ID.
139139
* @param bool $status The tour status.
@@ -160,7 +160,7 @@ public function set_tour_completion_status( $tour_id, $status, $user_id = 0 ) {
160160
/**
161161
* Get tour status for user.
162162
*
163-
* @since $$next-version$$
163+
* @since 4.22.0
164164
*
165165
* @param string $tour_id The tour ID.
166166
* @param int $user_id The user ID.

includes/class-sensei-course-structure.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -593,19 +593,19 @@ private function create_quiz( int $lesson_id ) {
593593
*
594594
* @since 4.20.1
595595
*
596-
* @deprecated $$next-version$$ Use sensei_quiz_create instead.
596+
* @deprecated 4.22.0 Use sensei_quiz_create instead.
597597
*
598598
* @hook sensei_course_structure_quiz_created
599599
*
600600
* @param {int} $quiz_id Quiz post ID.
601601
* @param {int} $lesson_id Course post ID.
602602
*/
603-
do_action_deprecated( 'sensei_course_structure_quiz_created', array( $quiz_id, $lesson_id ), '$$next-version$$', 'sensei_quiz_create' );
603+
do_action_deprecated( 'sensei_course_structure_quiz_created', array( $quiz_id, $lesson_id ), '4.22.0', 'sensei_quiz_create' );
604604

605605
/**
606606
* Fires after a quiz is created while saving the course structure.
607607
*
608-
* @since $$next-version$$
608+
* @since 4.22.0
609609
*
610610
* @hook sensei_quiz_create
611611
*

includes/class-sensei-lesson.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ public function quiz_update( $post_id ) {
10311031
/**
10321032
* Fires after a quiz is created while saving a lesson in a non-block editor.
10331033
*
1034-
* @since $$next-version$$
1034+
* @since 4.22.0
10351035
*
10361036
* @hook sensei_quiz_create
10371037
*

includes/rest-api/class-sensei-rest-api-lesson-quiz-controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function save_quiz( WP_REST_Request $request ) {
204204
/**
205205
* Fires after a quiz is created via the REST API.
206206
*
207-
* @since $$next-version$$
207+
* @since 4.22.0
208208
*
209209
* @hook sensei_quiz_create
210210
*

includes/rest-api/class-sensei-rest-api-tour-controller.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Sensei Tour API.
44
*
55
* @package sensei
6-
* @since $$next-version$$
6+
* @since 4.22.0
77
*/
88

99
namespace Sensei\Admin\Tour;
@@ -15,7 +15,7 @@
1515
/**
1616
* Sensei Tour REST API endpoints.
1717
*
18-
* @since $$next-version$$
18+
* @since 4.22.0
1919
*/
2020
class Sensei_REST_API_Tour_Controller extends \WP_REST_Controller {
2121

includes/wpml/class-course-translation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Compatibility code with WPML.
1818
*
19-
* @since $$next-version$$
19+
* @since 4.22.0
2020
*
2121
* @internal
2222
*/
@@ -36,7 +36,7 @@ public function init() {
3636
/**
3737
* Save lessons fields on course translation created.
3838
*
39-
* @since $$next-version$$
39+
* @since 4.22.0
4040
*
4141
* @internal
4242
*

includes/wpml/class-custom-fields.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Compatibility code with WPML.
1818
*
19-
* @since $$next-version$$
19+
* @since 4.22.0
2020
*
2121
* @internal
2222
*/
@@ -34,7 +34,7 @@ public function init() {
3434
/**
3535
* Update course prerequisite before copied.
3636
*
37-
* @since $$next-version$$
37+
* @since 4.22.0
3838
*
3939
* @internal
4040
*
@@ -77,7 +77,7 @@ public function update_course_prerequisite_before_copied( $copied_value, $post_i
7777
/**
7878
* Update lesson course before copied.
7979
*
80-
* @since $$next-version$$
80+
* @since 4.22.0
8181
*
8282
* @internal
8383
*
@@ -120,7 +120,7 @@ public function update_lesson_course_before_copied( $copied_value, $post_id_from
120120
/**
121121
* Update quiz id for a question before copied.
122122
*
123-
* @since $$next-version$$
123+
* @since 4.22.0
124124
*
125125
* @internal
126126
*

includes/wpml/class-email.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Compatibility code with WPML.
1818
*
19-
* @since $$next-version$$
19+
* @since 4.22.0
2020
*
2121
* @internal
2222
*/

includes/wpml/class-language-details.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Compatibility code with WPML.
1818
*
19-
* @since $$next-version$$
19+
* @since 4.22.0
2020
*
2121
* @internal
2222
*/
@@ -114,7 +114,7 @@ public function set_language_details_when_quiz_created( $quiz_id, $lesson_id ) {
114114
/**
115115
* Set language details for the question when it is created.
116116
*
117-
* @since $$next-version$$
117+
* @since 4.22.0
118118
*
119119
* @internal
120120
*

includes/wpml/class-lesson-translation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Compatibility code with WPML.
1818
*
19-
* @since $$next-version$$
19+
* @since 4.22.0
2020
*
2121
* @internal
2222
*/
@@ -37,7 +37,7 @@ public function init() {
3737
/**
3838
* Update lesson properties on lesson translation created.
3939
*
40-
* @since $$next-version$$
40+
* @since 4.22.0
4141
*
4242
* @internal
4343
*

0 commit comments

Comments
 (0)