Fixed incorrect sprintf specifier which caused missing closing <a> tag.

This commit is contained in:
Peter Fabian 2019-04-23 10:51:04 +02:00
parent 2ab36a9151
commit bd619d0b91
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ if ( ! comments_open() ) {
$account_page_url = wc_get_page_permalink( 'myaccount' );
if ( $account_page_url ) {
/* translators: %s opening and closing link tags respectively */
$comment_form['must_log_in'] = '<p class="must-log-in">' . sprintf( esc_html__( 'You must be %slogged in%S to post a review.', 'woocommerce' ), '<a href="' . esc_url( $account_page_url ) . '">', '</a>' ) . '</p>';
$comment_form['must_log_in'] = '<p class="must-log-in">' . sprintf( esc_html__( 'You must be %1$slogged in%2$s to post a review.', 'woocommerce' ), '<a href="' . esc_url( $account_page_url ) . '">', '</a>' ) . '</p>';
}
if ( wc_review_ratings_enabled() ) {