Fix visibility of rating widgets
This commit is contained in:
parent
4b0775151a
commit
fba428efed
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue