Skip to content

Commit

Permalink
Override the individual quiz text data in quiz options
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-pranav committed Oct 18, 2024
1 parent 21301d9 commit c095ba7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions php/classes/class-qsm-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,7 @@ public function get_quiz_options() {
}

$text = $this->get_setting('quiz_text');
if ( is_array($text) ) {
foreach ( $text as $key => $value ) {
if ( ! empty($value) ) {
$quiz_options[ $key ] = $value;
}
}
}
$quiz_options = array_merge( $quiz_options, $text );

// Return as old object model
return (object) $quiz_options;
Expand Down

0 comments on commit c095ba7

Please sign in to comment.