Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix question description not being displayed #7669

Merged
merged 9 commits into from
Aug 20, 2024
4 changes: 4 additions & 0 deletions changelog/revert-quiz-question-rendering
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Ensure quiz description is displayed to the student
10 changes: 4 additions & 6 deletions includes/blocks/class-sensei-block-quiz-question.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,16 @@ public function __construct() {
],
Sensei()->assets->src_path( 'blocks/quiz/question-block' )
);

Sensei_Blocks::register_sensei_block(
'sensei-lms/question-description',
[
'render_callback' => '__return_empty_string',
donnapep marked this conversation as resolved.
Show resolved Hide resolved
],
[],
Sensei()->assets->src_path( 'blocks/quiz/question-description-block' )
);

Sensei_Blocks::register_sensei_block(
'sensei-lms/question-answers',
[
'render_callback' => '__return_empty_string',
],
[],
Sensei()->assets->src_path( 'blocks/quiz/question-answers-block' )
);
}
Expand Down
2 changes: 1 addition & 1 deletion includes/blocks/class-sensei-block-quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct() {
[
'render_callback' => [ $this, 'render_quiz' ],
],
Sensei()->assets->src_path( 'blocks/quiz/quiz-block' )
donnapep marked this conversation as resolved.
Show resolved Hide resolved
Sensei()->assets->src_path( 'blocks/quiz' )
);
}

Expand Down
26 changes: 0 additions & 26 deletions includes/blocks/class-sensei-course-actions-block.php

This file was deleted.

1 change: 0 additions & 1 deletion includes/blocks/class-sensei-global-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function initialize_blocks() {
new Sensei_Course_Progress_Block();
new Sensei_Course_Overview_Block();
new Sensei_Course_List_Block();
new Sensei_Course_Actions_Block();
donnapep marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down
Loading