#13036 closed defect (bug) (fixed)
comment_form incorrectly includes </p> in translatable string
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | I18N | Keywords: | has-patch test commit |
Focuses: | Cc: |
Description
The logged_in_as string in the comment_form function incorrectly includes the </p> tag as can be seen below:
'<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) )
This patch moves the closing tag outside of the translate string by appending it afterwords:
'<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>'
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [14119]) Move stray closing p tag out of a translation. props chrisbliss18, fixes #13036.