Ticket #29974: 29974.4.patch
File 29974.4.patch, 2.8 KB (added by , 10 years ago) |
---|
-
src/wp-includes/comment-template.php
2256 2256 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2257 2257 /** This filter is documented in wp-includes/link-template.php */ 2258 2258 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2259 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( '<a href="%1$s" aria-label="Logged in as %2$s. Edit your profile.">Logged in as %2$s</a>. <a href="%3$s">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2259 2260 'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>', 2260 2261 'comment_notes_after' => '<p class="form-allowed-tags" id="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 2261 2262 'id_form' => 'commentform', … … 2346 2347 ?> 2347 2348 <?php else : ?> 2348 2349 <?php echo $args['comment_notes_before']; ?> 2350 <?php endif; ?> 2351 <?php 2352 /** 2353 * Filter the content of the comment textarea field for display. 2354 * 2355 * @since 3.0.0 2356 * 2357 * @param string $args_comment_field The content of the comment textarea field. 2358 */ 2359 echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); 2360 ?> 2361 <?php echo $args['comment_notes_after']; ?> 2362 <?php if ( ! is_user_logged_in() ) : ?> 2349 2363 <?php 2350 2364 /** 2351 2365 * Fires before the comment fields in the comment form. … … 2374 2388 do_action( 'comment_form_after_fields' ); 2375 2389 ?> 2376 2390 <?php endif; ?> 2377 <?php2378 /**2379 * Filter the content of the comment textarea field for display.2380 *2381 * @since 3.0.02382 *2383 * @param string $args_comment_field The content of the comment textarea field.2384 */2385 echo apply_filters( 'comment_form_field_comment', $args['comment_field'] );2386 ?>2387 <?php echo $args['comment_notes_after']; ?>2388 2391 2389 2392 <?php 2390 2393 $submit_button = sprintf(