Fix visibility of rating widgets

This commit is contained in:
Mike Jolley 2017-06-15 11:29:10 +01:00
parent 4b0775151a
commit fba428efed
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function wc_register_widgets() {
register_widget( 'WC_Widget_Products' );
register_widget( 'WC_Widget_Recently_Viewed' );
if ( post_type_supports( 'product', 'comments' ) ) {
if ( 'yes' === get_option( 'woocommerce_enable_reviews', 'yes' ) ) {
register_widget( 'WC_Widget_Top_Rated_Products' );
register_widget( 'WC_Widget_Recent_Reviews' );
register_widget( 'WC_Widget_Rating_Filter' );