Skip to content

Commit

Permalink
Merge pull request #7669 from Automattic/revert/quiz-question-rendering
Browse files Browse the repository at this point in the history
Fix question description not being displayed
  • Loading branch information
donnapep committed Aug 20, 2024
2 parents ed5e840 + 5a96809 commit 226c7ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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',
],
[],
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

0 comments on commit 226c7ac

Please sign in to comment.