WordPress.org

Make WordPress Core

Ticket #16206: 16206.2.patch

File 16206.2.patch, 1.6 KB (added by rianrietveld, 5 years ago)

adds * to label comment textarea

  • wp-includes/comment-template.php

     
    12421242 * @global int        $user_ID
    12431243 * @global string     $user_identity
    12441244 * @global bool       $overridden_cpage
    1245  * @global bool       $withcomments 
     1245 * @global bool       $withcomments
    12461246 *
    12471247 * @param string $file              Optional. The file to load. Default '/comments.php'.
    12481248 * @param bool   $separate_comments Optional. Whether to separate the comments by comment type.
     
    21352135        $fields = apply_filters( 'comment_form_default_fields', $fields );
    21362136        $defaults = array(
    21372137                'fields'               => $fields,
    2138                 'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" aria-required="true" required="required"></textarea></p>',
     2138                'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . ' <span class="required">*</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" aria-required="true" required="required"></textarea></p>',
    21392139                /** This filter is documented in wp-includes/link-template.php */
    21402140                '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>',
    21412141                /** This filter is documented in wp-includes/link-template.php */