Make WordPress Core

Ticket #29974: 29974.4.patch

File 29974.4.patch, 2.8 KB (added by afercia, 9 years ago)
  • src/wp-includes/comment-template.php

     
    22562256                '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>',
    22572257                /** This filter is documented in wp-includes/link-template.php */
    22582258                '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>',
    22592260                'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
    22602261                '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>',
    22612262                'id_form'              => 'commentform',
     
    23462347                                                        ?>
    23472348                                                <?php else : ?>
    23482349                                                        <?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() ) : ?>
    23492363                                                        <?php
    23502364                                                        /**
    23512365                                                         * Fires before the comment fields in the comment form.
     
    23742388                                                        do_action( 'comment_form_after_fields' );
    23752389                                                        ?>
    23762390                                                <?php endif; ?>
    2377                                                 <?php
    2378                                                 /**
    2379                                                  * Filter the content of the comment textarea field for display.
    2380                                                  *
    2381                                                  * @since 3.0.0
    2382                                                  *
    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']; ?>
    23882391
    23892392                                                <?php
    23902393                                                $submit_button = sprintf(