Fixed incorrect sprintf specifier which caused missing closing <a> tag.
This commit is contained in:
parent
2ab36a9151
commit
bd619d0b91
|
@ -95,7 +95,7 @@ if ( ! comments_open() ) {
|
||||||
$account_page_url = wc_get_page_permalink( 'myaccount' );
|
$account_page_url = wc_get_page_permalink( 'myaccount' );
|
||||||
if ( $account_page_url ) {
|
if ( $account_page_url ) {
|
||||||
/* translators: %s opening and closing link tags respectively */
|
/* 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() ) {
|
if ( wc_review_ratings_enabled() ) {
|
||||||
|
|
Loading…
Reference in New Issue