Merge pull request #6798 from bryceadams/patch-2906

#2906 - Set reviews count in tab to only count actual reviews
This commit is contained in:
Mike Jolley 2014-11-20 12:16:02 +00:00
commit 7df9f20e18
1 changed files with 1 additions and 1 deletions

View File

@ -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'
);