Ticket #55718: 55718.2.diff
File 55718.2.diff, 2.3 KB (added by , 2 years ago) |
---|
-
src/wp-includes/comment-template.php
2294 2294 * } 2295 2295 * @type string $comment_field The comment textarea field HTML. 2296 2296 * @type string $must_log_in HTML element for a 'must be logged in to comment' message. 2297 * @type string $logged_in_as HTML element for a 'logged in as [user]' message. 2297 * @type string $logged_in_as The HTML for the 'logged in as [user]' message, the Edit profile link, 2298 * and the Log out link. 2298 2299 * @type string $comment_notes_before HTML element for a message displayed before the comment fields 2299 2300 * if the user is not logged in. 2300 2301 * Default 'Your email address will not be published.'. … … 2463 2464 'logged_in_as' => sprintf( 2464 2465 '<p class="logged-in-as">%s%s</p>', 2465 2466 sprintf( 2466 /* translators: 1: Edit user link, 2: Accessibility text, 3: User name, 4: Logout URL. */ 2467 __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ), 2467 /* translators: 1: User name, 2: Edit user link, 3: Logout URL. */ 2468 __( 'Logged in as %1$s. <a href="%2$s">Edit your profile</a>. <a href="%3$s">Log out?</a>' ), 2469 $user_identity, 2468 2470 get_edit_user_link(), 2469 /* translators: %s: User name. */2470 esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),2471 $user_identity,2472 2471 /** This filter is documented in wp-includes/link-template.php */ 2473 2472 wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) ) 2474 2473 ), … … 2584 2583 * 2585 2584 * @since 3.0.0 2586 2585 * 2587 * @param string $args_logged_in The logged-in-as HTML-formatted message. 2586 * @param string $args_logged_in The HTML for the 'logged in as [user]' message, 2587 * the Edit profile link, and the Log out link. 2588 2588 * @param array $commenter An array containing the comment author's 2589 2589 * username, email, and URL. 2590 2590 * @param string $user_identity If the commenter is a registered user,