Fix for submitting comments

This commit is contained in:
Mike Jolley 2013-09-24 11:48:42 +01:00
parent 9b446508a7
commit a5d71a8113
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ class WC_Comments {
add_comment_meta( $comment_id, 'rating', (int) esc_attr( $_POST['rating'] ), true );
woocommerce_clear_comment_rating_transients( $comment_id );
$this->clear_transients( $comment_id );
}
}

View File

@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average ).'"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'woocommerce' ).'</span></div>';
echo '<h2>'.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), '<span itemprop="ratingCount" class="count">'.$count.'</span>', wptexturize(get_the_title()) ).'</h2>';
echo '<h2>'.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), '<span itemprop="ratingCount" class="count">'.$count.'</span>', get_the_title() ).'</h2>';
echo '</div>';
@ -66,7 +66,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
else :
$title_reply = __( 'Be the first to review', 'woocommerce' ).' &ldquo;'.get_the_title().'&rdquo;';
$title_reply = __( 'Be the first to review', 'woocommerce' ).' &ldquo;' . get_the_title() . '&rdquo;';
echo '<p class="noreviews">' . sprintf( __( 'There are no reviews yet, would you like to %s submit yours%s?', 'woocommerce' ), '<a href="#review_form" class="inline show_review_form" title="' . __( 'Add Your Review', 'woocommerce' ) . '">', '</a>' ) . '</p>';