Ticket #29974: 29974.3.patch
File 29974.3.patch, 3.1 KB (added by , 10 years ago) |
---|
-
src/wp-includes/comment-template.php
2203 2203 /** This filter is documented in wp-includes/link-template.php */ 2204 2204 '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>', 2205 2205 /** This filter is documented in wp-includes/link-template.php */ 2206 '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>',2206 '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>', 2207 2207 'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>', 2208 2208 '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>', 2209 2209 'id_form' => 'commentform', … … 2289 2289 ?> 2290 2290 <?php else : ?> 2291 2291 <?php echo $args['comment_notes_before']; ?> 2292 <?php endif; ?> 2293 <?php 2294 /** 2295 * Filter the content of the comment textarea field for display. 2296 * 2297 * @since 3.0.0 2298 * 2299 * @param string $args_comment_field The content of the comment textarea field. 2300 */ 2301 echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); 2302 ?> 2303 <?php echo $args['comment_notes_after']; ?> 2304 <?php if ( ! is_user_logged_in() ) : ?> 2292 2305 <?php 2293 2306 /** 2294 2307 * Fires before the comment fields in the comment form. … … 2317 2330 do_action( 'comment_form_after_fields' ); 2318 2331 ?> 2319 2332 <?php endif; ?> 2320 <?php2321 /**2322 * Filter the content of the comment textarea field for display.2323 *2324 * @since 3.0.02325 *2326 * @param string $args_comment_field The content of the comment textarea field.2327 */2328 echo apply_filters( 'comment_form_field_comment', $args['comment_field'] );2329 ?>2330 <?php echo $args['comment_notes_after']; ?>2331 2333 <p class="form-submit"> 2332 2334 <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" class="<?php echo esc_attr( $args['class_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 2333 2335 <?php comment_id_fields( $post_id ); ?>