WordPress.org

Make WordPress Core

Changeset 22123


Ignore:
Timestamp:
10/05/2012 04:34:32 PM (7 years ago)
Author:
ryan
Message:

Put required field indicators within labels. Update styling of bundled themes to accommodate. Props MikeHansenMe. fixes #21897

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/style.css

    r21604 r22123  
    21242124    left: 75%;
    21252125    position: absolute;
    2126     top: 45px;
    21272126    z-index: 1;
    21282127}
  • trunk/wp-content/themes/twentytwelve/style.css

    r22096 r22123  
    12381238    color: red;
    12391239}
    1240 label ~ span.required {
    1241     display: block;
    1242     float: left;
    1243     margin: -18px 0 0 -16px;
    1244     margin: -1.285714286rem 0 0 -1.142857143rem;
    1245 }
    12461240
    12471241
  • trunk/wp-includes/comment-template.php

    r22115 r22123  
    15221522    $aria_req = ( $req ? " aria-required='true'" : '' );
    15231523    $fields =  array(
    1524         'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
     1524        'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
    15251525                    '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
    1526         'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
     1526        'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
    15271527                    '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
    15281528        'url'    => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' .
Note: See TracChangeset for help on using the changeset viewer.