Skip to content

Commit 2928f41

Browse files
authored
Merge pull request #7589 from Automattic/release/4.23.1
Release 4.23.1
2 parents 16178aa + cb94707 commit 2928f41

File tree

55 files changed

+1074
-1070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1074
-1070
lines changed

changelog.txt

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
*** Changelog ***
22

3+
## 4.23.1 - 2024-04-15
4+
### Added
5+
- WPML: Setting to disable Sensei slugs translation for better compatibility [#7569](https://github.com/Automattic/sensei/pull/7569)
6+
- WPML: Share student progress and quiz submission across translations [#7492](https://github.com/Automattic/sensei/pull/7492)
7+
- WPML: Show user courses for different languages using `sensei_user_courses` shortcode [#7583](https://github.com/Automattic/sensei/pull/7583)
8+
9+
### Changed
10+
- Open setup wizard if necessary when navigating through relevant pages in WP admin [#7581](https://github.com/Automattic/sensei/pull/7581)
11+
12+
### Fixed
13+
- Usage of question categories in translated quizzes [#7559](https://github.com/Automattic/sensei/pull/7559)
14+
- Lessons being automatically published when course is updated [#7582](https://github.com/Automattic/sensei/pull/7582)
15+
316
## 4.23.0 - 2024-04-04
417
### Added
518
- Sensei pro upsell task in Sensei Home [#7562](https://github.com/Automattic/sensei/pull/7562)

changelog/change-setup-wizard-redirect

-4
This file was deleted.

changelog/fix-publishing-lessons-in-course-updates

-4
This file was deleted.

changelog/fix-wpml-my-courses

-4
This file was deleted.

changelog/fix-wpml-progress

-4
This file was deleted.

changelog/fix-wpml-question-categories

-4
This file was deleted.

changelog/fix-wpml-translate-slugs

-4
This file was deleted.

includes/blocks/class-sensei-block-take-course.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function render_take_course_block( $attributes, $content ): string {
5454
*
5555
* @hook sensei_block_take_course_course_id
5656
*
57-
* @since $$next-version$$
57+
* @since 4.23.1
5858
*
5959
* @param {int} $course_id The course ID.
6060
* @return {int} The course ID.

includes/class-sensei-course.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public static function is_user_enrolled( $course_id, $user_id = null ) {
534534
*
535535
* @hook sensei_block_course_progress_course_id
536536
*
537-
* @since $$next-version$$
537+
* @since 4.23.1
538538
*
539539
* @param {int} $course_id The course ID.
540540
* @return {int} The course ID.
@@ -3345,7 +3345,7 @@ public static function get_course_completed_page_url( $course_id ) {
33453345
/**
33463346
* Filter the course completed page ID.
33473347
*
3348-
* @since $$next-version$$
3348+
* @since 4.23.1
33493349
*
33503350
* @hook sensei_course_completed_page_id
33513351
*

includes/class-sensei-data-cleaner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class Sensei_Data_Cleaner {
234234
'sensei_answers_feedback_[0-9]+_[0-9]+',
235235
'quiz_grades_[0-9]+_[0-9]+',
236236
'sensei_comment_counts_[0-9]+',
237-
'sensei_activation_redirect', // @deprecated $$next-version$$ Changed to an option.
237+
'sensei_activation_redirect', // @deprecated 4.23.1 Changed to an option.
238238
'sensei_woocommerce_plugin_information',
239239
'sensei_extensions_.*',
240240
'sensei_background_job_.*',

includes/class-sensei-frontend.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ public function sensei_course_start() {
12151215
/**
12161216
* Filter the course ID for the course being started.
12171217
*
1218-
* @since $$next-version$$
1218+
* @since 4.23.1
12191219
*
12201220
* @hook sensei_course_start_course_id
12211221
*

includes/class-sensei-learner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public function get_enrolled_courses_query_args( $user_id, $base_query_args = []
434434
*
435435
* @hook sensei_learner_get_enrolled_courses_query_args_term_id
436436
*
437-
* @since $$next-version$$
437+
* @since 4.23.1
438438
*
439439
* @param {int} $term_id The term ID.
440440
* @return {int} The term ID.

includes/class-sensei-settings.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function get( $setting_name ) {
7878
/**
7979
* Get my courses page ID.
8080
*
81-
* @since $$next-version$$
81+
* @since 4.23.1
8282
*
8383
* @return int
8484
*/
@@ -88,7 +88,7 @@ public function get_my_courses_page_id() {
8888
*
8989
* @hook sensei_settings_my_course_page_id
9090
*
91-
* @since $$next-version$$
91+
* @since 4.23.1
9292
*
9393
* @param {int} $page_id The My Courses page ID.
9494
* @return {int} Filtered My Courses page ID.

includes/class-sensei.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ public function initialize_global_objects() {
781781
/**
782782
* Filter whether to read student progress from tables.
783783
*
784-
* @since $$next_version$$
784+
* @since 4.17.0
785785
*
786786
* @hook sensei_student_progress_read_from_tables
787787
*

includes/internal/quiz-submission/answer/models/class-answer-abstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
class Answer_Abstract implements Answer_Interface {
2424
/**

includes/internal/quiz-submission/answer/models/class-answer-interface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
interface Answer_Interface {
2424
/**

includes/internal/quiz-submission/answer/models/class-comments-based-answer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
class Comments_Based_Answer extends Answer_Abstract {
2424
/**

includes/internal/quiz-submission/answer/models/class-tables-based-answer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*
19-
* @since $$next_version$$
19+
* @since 4.18.0
2020
*/
2121
class Tables_Based_Answer extends Answer_Abstract {
2222

includes/internal/quiz-submission/answer/repositories/class-comments-based-answer-repository.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
4040
*
4141
* @hook sensei_quiz_answer_create_submission_id
4242
*
43-
* @since $$next-version$$
43+
* @since 4.23.1
4444
*
4545
* @param {int} $submission_id The submission ID.
4646
* @param {string} $context The context.
@@ -53,7 +53,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
5353
*
5454
* @hook sensei_quiz_answer_create_question_id
5555
*
56-
* @since $$next-version$$
56+
* @since 4.23.1
5757
*
5858
* @param {int} $question_id The question ID.
5959
* @return {int} The question ID.
@@ -87,7 +87,7 @@ public function get_all( int $submission_id ): array {
8787
*
8888
* @hook sensei_quiz_answer_get_all_submission_id
8989
*
90-
* @since $$next-version$$
90+
* @since 4.23.1
9191
*
9292
* @param {int} $submission_id The submission ID.
9393
* @param {string} $context The context.
@@ -118,7 +118,7 @@ public function delete_all( Submission_Interface $submission ): void {
118118
*
119119
* @hook sensei_quiz_answer_delete_all_submission_id
120120
*
121-
* @since $$next-version$$
121+
* @since 4.23.1
122122
*
123123
* @param {int} $submission_id The submission ID.
124124
* @param {string} $context The context.

includes/internal/quiz-submission/answer/repositories/class-tables-based-answer-repository.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
6161
*
6262
* @hook sensei_quiz_answer_create_submission_id
6363
*
64-
* @since $$next-version$$
64+
* @since 4.23.1
6565
*
6666
* @param {int} $submission_id The submission ID.
6767
* @param {string} $context The context.
@@ -74,7 +74,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
7474
*
7575
* @hook sensei_quiz_answer_create_question_id
7676
*
77-
* @since $$next-version$$
77+
* @since 4.23.1
7878
*
7979
* @param {int} $question_id The question ID.
8080
* @return {int} The question ID.
@@ -127,7 +127,7 @@ public function get_all( int $submission_id ): array {
127127
*
128128
* @hook sensei_quiz_answer_get_all_submission_id
129129
*
130-
* @since $$next-version$$
130+
* @since 4.23.1
131131
*
132132
* @param {int} $submission_id The submission ID.
133133
* @param {string} $context The context.
@@ -170,7 +170,7 @@ public function delete_all( Submission_Interface $submission ): void {
170170
*
171171
* @hook sensei_quiz_answer_delete_all_submission_id
172172
*
173-
* @since $$next-version$$
173+
* @since 4.23.1
174174
*
175175
* @param {int} $submission_id The submission ID.
176176
* @param {string} $context The context.

includes/internal/quiz-submission/grade/models/class-comments-based-grade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
class Comments_Based_Grade extends Grade_Abstract {
2424
/**

includes/internal/quiz-submission/grade/models/class-grade-abstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
class Grade_Abstract implements Grade_Interface {
2424
/**

includes/internal/quiz-submission/grade/models/class-grade-interface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
interface Grade_Interface {
2424
/**

includes/internal/quiz-submission/grade/models/class-tables-based-grade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*
19-
* @since $$next_version$$
19+
* @since 4.18.0
2020
*/
2121
class Tables_Based_Grade extends Grade_Abstract {
2222

includes/internal/quiz-submission/grade/repositories/class-comments-based-grade-repository.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
4343
*
4444
* @hook sensei_quiz_grade_create_submission_id
4545
*
46-
* @since $$next-version$$
46+
* @since 4.23.1
4747
*
4848
* @param {int} $submission_id The submission ID.
4949
* @param {string} $context The context.
@@ -56,7 +56,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
5656
*
5757
* @hook sensei_quiz_grade_create_question_id
5858
*
59-
* @since $$next-version$$
59+
* @since 4.23.1
6060
*
6161
* @param {int} $question_id The question ID.
6262
* @return {int} The question ID.
@@ -97,7 +97,7 @@ public function get_all( int $submission_id ): array {
9797
*
9898
* @hook sensei_quiz_grade_get_all_submission_id
9999
*
100-
* @since $$next-version$$
100+
* @since 4.23.1
101101
*
102102
* @param {int} $submission_id The submission ID.
103103
* @param {string} $context The context.
@@ -136,7 +136,7 @@ public function save_many( Submission_Interface $submission, array $grades ): vo
136136
*
137137
* @hook sensei_quiz_grade_save_many_submission_id
138138
*
139-
* @since $$next-version$$
139+
* @since 4.23.1
140140
*
141141
* @param {int} $submission_id The submission ID.
142142
* @param {string} $context The context.
@@ -153,7 +153,7 @@ public function save_many( Submission_Interface $submission, array $grades ): vo
153153
*
154154
* @hook sensei_quiz_grade_save_many_question_id
155155
*
156-
* @since $$next-version$$
156+
* @since 4.23.1
157157
*
158158
* @param {int} $question_id The question ID.
159159
* @return {int} The question ID.
@@ -180,7 +180,7 @@ public function delete_all( Submission_Interface $submission ): void {
180180
*
181181
* @hook sensei_quiz_grade_delete_all_submission_id
182182
*
183-
* @since $$next-version$$
183+
* @since 4.23.1
184184
*
185185
* @param {int} $submission_id The submission ID.
186186
* @param {string} $context The context.

includes/internal/quiz-submission/grade/repositories/class-tables-based-grade-repository.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
6262
*
6363
* @hook sensei_quiz_grade_create_question_id
6464
*
65-
* @since $$next-version$$
65+
* @since 4.23.1
6666
*
6767
* @param {int} $question_id The question ID.
6868
* @return {int} The question ID.
@@ -74,7 +74,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
7474
*
7575
* @hook sensei_quiz_grade_create_answer_id
7676
*
77-
* @since $$next-version$$
77+
* @since 4.23.1
7878
*
7979
* @param {int} $answer_id The answer ID.
8080
* @param {string} $context The context.
@@ -131,7 +131,7 @@ public function get_all( int $submission_id ): array {
131131
*
132132
* @hook sensei_quiz_grade_get_all_submission_id
133133
*
134-
* @since $$next-version$$
134+
* @since 4.23.1
135135
*
136136
* @param {int} $submission_id The submission ID.
137137
* @param {string} $context The context.
@@ -192,7 +192,7 @@ public function delete_all( Submission_Interface $submission ): void {
192192
*
193193
* @hook sensei_quiz_grade_delete_all_submission_id
194194
*
195-
* @since $$next-version$$
195+
* @since 4.23.1
196196
*
197197
* @param {int} $submission_id The submission ID.
198198
* @param {string} $context The context.

includes/internal/quiz-submission/submission/models/class-comments-based-submission.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*
19-
* @since $$next_version$$
19+
* @since 4.18.0
2020
*/
2121
class Comments_Based_Submission extends Submission_Abstract {
2222

includes/internal/quiz-submission/submission/models/class-submission-abstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
class Submission_Abstract implements Submission_Interface {
2424
/**

includes/internal/quiz-submission/submission/models/class-submission-interface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*
21-
* @since $$next_version$$
21+
* @since 4.18.0
2222
*/
2323
interface Submission_Interface {
2424
/**

includes/internal/quiz-submission/submission/models/class-tables-based-submission.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @internal
1818
*
19-
* @since $$next_version$$
19+
* @since 4.18.0
2020
*/
2121
class Tables_Based_Submission extends Submission_Abstract {
2222

0 commit comments

Comments
 (0)