Skip to content

Commit

Permalink
Merge pull request #7589 from Automattic/release/4.23.1
Browse files Browse the repository at this point in the history
Release 4.23.1
  • Loading branch information
donnapep authored Apr 15, 2024
2 parents 16178aa + cb94707 commit 2928f41
Show file tree
Hide file tree
Showing 55 changed files with 1,074 additions and 1,070 deletions.
13 changes: 13 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
*** Changelog ***

## 4.23.1 - 2024-04-15
### Added
- WPML: Setting to disable Sensei slugs translation for better compatibility [#7569](https://github.com/Automattic/sensei/pull/7569)
- WPML: Share student progress and quiz submission across translations [#7492](https://github.com/Automattic/sensei/pull/7492)
- WPML: Show user courses for different languages using `sensei_user_courses` shortcode [#7583](https://github.com/Automattic/sensei/pull/7583)

### Changed
- Open setup wizard if necessary when navigating through relevant pages in WP admin [#7581](https://github.com/Automattic/sensei/pull/7581)

### Fixed
- Usage of question categories in translated quizzes [#7559](https://github.com/Automattic/sensei/pull/7559)
- Lessons being automatically published when course is updated [#7582](https://github.com/Automattic/sensei/pull/7582)

## 4.23.0 - 2024-04-04
### Added
- Sensei pro upsell task in Sensei Home [#7562](https://github.com/Automattic/sensei/pull/7562)
Expand Down
4 changes: 0 additions & 4 deletions changelog/change-setup-wizard-redirect

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-publishing-lessons-in-course-updates

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion includes/blocks/class-sensei-block-take-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function render_take_course_block( $attributes, $content ): string {
*
* @hook sensei_block_take_course_course_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $course_id The course ID.
* @return {int} The course ID.
Expand Down
4 changes: 2 additions & 2 deletions includes/class-sensei-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ public static function is_user_enrolled( $course_id, $user_id = null ) {
*
* @hook sensei_block_course_progress_course_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $course_id The course ID.
* @return {int} The course ID.
Expand Down Expand Up @@ -3345,7 +3345,7 @@ public static function get_course_completed_page_url( $course_id ) {
/**
* Filter the course completed page ID.
*
* @since $$next-version$$
* @since 4.23.1
*
* @hook sensei_course_completed_page_id
*
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-data-cleaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class Sensei_Data_Cleaner {
'sensei_answers_feedback_[0-9]+_[0-9]+',
'quiz_grades_[0-9]+_[0-9]+',
'sensei_comment_counts_[0-9]+',
'sensei_activation_redirect', // @deprecated $$next-version$$ Changed to an option.
'sensei_activation_redirect', // @deprecated 4.23.1 Changed to an option.
'sensei_woocommerce_plugin_information',
'sensei_extensions_.*',
'sensei_background_job_.*',
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ public function sensei_course_start() {
/**
* Filter the course ID for the course being started.
*
* @since $$next-version$$
* @since 4.23.1
*
* @hook sensei_course_start_course_id
*
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-learner.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public function get_enrolled_courses_query_args( $user_id, $base_query_args = []
*
* @hook sensei_learner_get_enrolled_courses_query_args_term_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $term_id The term ID.
* @return {int} The term ID.
Expand Down
4 changes: 2 additions & 2 deletions includes/class-sensei-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function get( $setting_name ) {
/**
* Get my courses page ID.
*
* @since $$next-version$$
* @since 4.23.1
*
* @return int
*/
Expand All @@ -88,7 +88,7 @@ public function get_my_courses_page_id() {
*
* @hook sensei_settings_my_course_page_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $page_id The My Courses page ID.
* @return {int} Filtered My Courses page ID.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ public function initialize_global_objects() {
/**
* Filter whether to read student progress from tables.
*
* @since $$next_version$$
* @since 4.17.0
*
* @hook sensei_student_progress_read_from_tables
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Answer_Abstract implements Answer_Interface {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
interface Answer_Interface {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Comments_Based_Answer extends Answer_Abstract {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Tables_Based_Answer extends Answer_Abstract {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
*
* @hook sensei_quiz_answer_create_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand All @@ -53,7 +53,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
*
* @hook sensei_quiz_answer_create_question_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $question_id The question ID.
* @return {int} The question ID.
Expand Down Expand Up @@ -87,7 +87,7 @@ public function get_all( int $submission_id ): array {
*
* @hook sensei_quiz_answer_get_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down Expand Up @@ -118,7 +118,7 @@ public function delete_all( Submission_Interface $submission ): void {
*
* @hook sensei_quiz_answer_delete_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
*
* @hook sensei_quiz_answer_create_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand All @@ -74,7 +74,7 @@ public function create( Submission_Interface $submission, int $question_id, stri
*
* @hook sensei_quiz_answer_create_question_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $question_id The question ID.
* @return {int} The question ID.
Expand Down Expand Up @@ -127,7 +127,7 @@ public function get_all( int $submission_id ): array {
*
* @hook sensei_quiz_answer_get_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down Expand Up @@ -170,7 +170,7 @@ public function delete_all( Submission_Interface $submission ): void {
*
* @hook sensei_quiz_answer_delete_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Comments_Based_Grade extends Grade_Abstract {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Grade_Abstract implements Grade_Interface {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
interface Grade_Interface {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Tables_Based_Grade extends Grade_Abstract {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
*
* @hook sensei_quiz_grade_create_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand All @@ -56,7 +56,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
*
* @hook sensei_quiz_grade_create_question_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $question_id The question ID.
* @return {int} The question ID.
Expand Down Expand Up @@ -97,7 +97,7 @@ public function get_all( int $submission_id ): array {
*
* @hook sensei_quiz_grade_get_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down Expand Up @@ -136,7 +136,7 @@ public function save_many( Submission_Interface $submission, array $grades ): vo
*
* @hook sensei_quiz_grade_save_many_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand All @@ -153,7 +153,7 @@ public function save_many( Submission_Interface $submission, array $grades ): vo
*
* @hook sensei_quiz_grade_save_many_question_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $question_id The question ID.
* @return {int} The question ID.
Expand All @@ -180,7 +180,7 @@ public function delete_all( Submission_Interface $submission ): void {
*
* @hook sensei_quiz_grade_delete_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
*
* @hook sensei_quiz_grade_create_question_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $question_id The question ID.
* @return {int} The question ID.
Expand All @@ -74,7 +74,7 @@ public function create( Submission_Interface $submission, Answer_Interface $answ
*
* @hook sensei_quiz_grade_create_answer_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $answer_id The answer ID.
* @param {string} $context The context.
Expand Down Expand Up @@ -131,7 +131,7 @@ public function get_all( int $submission_id ): array {
*
* @hook sensei_quiz_grade_get_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down Expand Up @@ -192,7 +192,7 @@ public function delete_all( Submission_Interface $submission ): void {
*
* @hook sensei_quiz_grade_delete_all_submission_id
*
* @since $$next-version$$
* @since 4.23.1
*
* @param {int} $submission_id The submission ID.
* @param {string} $context The context.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Comments_Based_Submission extends Submission_Abstract {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Submission_Abstract implements Submission_Interface {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
interface Submission_Interface {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @internal
*
* @since $$next_version$$
* @since 4.18.0
*/
class Tables_Based_Submission extends Submission_Abstract {

Expand Down
Loading

0 comments on commit 2928f41

Please sign in to comment.