Skip to content

Commit

Permalink
Handle returned parten ids
Browse files Browse the repository at this point in the history
  • Loading branch information
merkushin committed Oct 10, 2023
1 parent f6e3e7b commit ac5e9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-sensei-quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function get_lesson_ids( array $quiz_ids ) {
)
);

return wp_list_pluck( $quiz_parents, 'post_parent' );
return array_unique( array_values( $quiz_parents ) );
}

/**
Expand Down

0 comments on commit ac5e9a4

Please sign in to comment.