#13036 closed defect (bug) (fixed)
comment_form incorrectly includes </p> in translatable string
| Reported by: | chrisjean | Owned by: | nbachiyski |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | I18N | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch test commit |
| Cc: | Focuses: |
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>'
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [14119]) Move stray closing p tag out of a translation. props chrisbliss18, fixes #13036.