Merge pull request #6798 from bryceadams/patch-2906
#2906 - Set reviews count in tab to only count actual reviews
This commit is contained in:
commit
7df9f20e18
|
@ -1022,7 +1022,7 @@ if ( ! function_exists( 'woocommerce_default_product_tabs' ) ) {
|
|||
// Reviews tab - shows comments
|
||||
if ( comments_open() ) {
|
||||
$tabs['reviews'] = array(
|
||||
'title' => sprintf( __( 'Reviews (%d)', 'woocommerce' ), get_comments_number( $post->ID ) ),
|
||||
'title' => sprintf( __( 'Reviews (%d)', 'woocommerce' ), $product->get_rating_count() ),
|
||||
'priority' => 30,
|
||||
'callback' => 'comments_template'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue