Merge pull request #23445 from woocommerce/fix/23415
Fixed incorrect sprintf specifier which caused missing closing <a> tag.
This commit is contained in:
commit
e6e5206771
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue