[wp-trac] [WordPress Trac] #13036: comment_form incorrectly includes </p> in translatable string
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 16 22:17:16 UTC 2010
#13036: comment_form incorrectly includes </p> in translatable string
--------------------------+-------------------------------------------------
Reporter: chrisbliss18 | Owner: nbachiyski
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: i18n | Version: 3.0
Severity: normal | Keywords: has-patch test commit
--------------------------+-------------------------------------------------
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>'`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13036>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list