WordPress.org

Make WordPress Core

Ticket #17739: 17739.2.diff

File 17739.2.diff, 3.0 KB (added by voldemortensen, 7 years ago)
  • src/wp-includes/comment-template.php

     
    20492049 *     @type string $must_log_in          HTML element for a 'must be logged in to comment' message.
    20502050 *     @type string $logged_in_as         HTML element for a 'logged in as <user>' message.
    20512051 *     @type string $comment_notes_before HTML element for a message displayed before the comment form.
    2052  *                                        Default 'Your email address will not be published.'.
    20532052 *     @type string $comment_notes_after  HTML element for a message displayed after the comment form.
    20542053 *                                        Default 'You may use these HTML tags and attributes ...'.
    20552054 *     @type string $id_form              The comment form element id attribute. Default 'commentform'.
     
    21052104                '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>',
    21062105                /** This filter is documented in wp-includes/link-template.php */
    21072106                '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>',
    2108                 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
     2107                'comment_notes_before' => '<p class="comment-notes">' . ( $req ? $required_text : '' ) . '</p>',
    21092108                'comment_notes_after'  => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
    21102109                'id_form'              => 'commentform',
    21112110                'id_submit'            => 'submit',
  • src/wp-includes/theme-compat/comments.php

     
    7777<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    7878
    7979<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    80 <label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
     80<label for="email"><small><?php if ($req) _e('(required)'); ?></small></label></p>
    8181
    8282<p><input type="text" name="url" id="url" value="<?php echo  esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    8383<label for="url"><small><?php _e('Website'); ?></small></label></p>