Skip to content

Commit

Permalink
Fixed default schema type option not working
Browse files Browse the repository at this point in the history
  • Loading branch information
surajv committed Jan 20, 2020
1 parent 406f2a0 commit faa1af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/options/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
'wp_review_item_star' => '',
);
}
$default_schema = $default_options['default_schema_type'];
$default_schema = wp_review_option( 'default_schema_type' ) ? wp_review_option( 'default_schema_type' ) : $default_options['default_schema_type'];
$default_user_review_type = empty( $options['default_user_review_type'] ) ? WP_REVIEW_REVIEW_DISABLED : $options['default_user_review_type'];

$options['colors'] = apply_filters( 'wp_review_colors', $options['colors'], 0 );
Expand Down

0 comments on commit faa1af4

Please sign in to comment.