Skip to content

Commit

Permalink
Call parent method to get default values
Browse files Browse the repository at this point in the history
  • Loading branch information
gikaragia committed Oct 10, 2022
1 parent c16e93d commit 1cf6e34
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -141,6 +141,8 @@ public function auth_callback( $allowed, $meta_key, $post_id ) {
protected function add_additional_fields_to_object( $prepared, $request ) {
global $pagenow;

$prepared = parent::add_additional_fields_to_object( $prepared, $request );

if ( ! Sensei()->quiz->is_block_based_editor_enabled() || 'post-new.php' === $pagenow ) {
return $prepared;
}
Expand Down

0 comments on commit 1cf6e34

Please sign in to comment.