Make WordPress Core

Changeset 23918


Ignore:
Timestamp:
04/05/2013 02:37:13 AM (13 years ago)
Author:
helen
Message:

Show labels and remove improperly-used placeholders for post format fields. props Ipstenu, azaozz. see #23938.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.css

    r23908 r23918  
    31803180}
    31813181
     3182.wp-format-video label,
     3183.wp-format-audio label {
     3184    float: left;
     3185}
     3186
    31823187.wp-format-media-holder {
    31833188    float: left;
  • trunk/wp-admin/includes/post-formats.php

    r23878 r23918  
    1010
    1111    <div class="field wp-format-quote">
    12         <label for="_wp_format_quote" class="screen-reader-text"><?php _e( 'Quote' ); ?>:</label>
    13         <textarea name="_wp_format_quote" placeholder="<?php esc_attr_e( 'Quote' ); ?>" class="widefat"><?php echo esc_textarea( $format_meta['quote'] ); ?></textarea>
     12        <label for="_wp_format_quote"><?php _e( 'Quote' ); ?></label>
     13        <textarea name="_wp_format_quote" class="widefat"><?php echo esc_textarea( $format_meta['quote'] ); ?></textarea>
    1414    </div>
    1515
    1616    <div class="field wp-format-quote">
    17         <label for="_wp_format_quote_source" class="screen-reader-text"><?php _e( 'Quote source' ); ?>:</label>
    18         <input type="text" name="_wp_format_quote_source" value="<?php echo esc_attr( $format_meta['quote_source'] ); ?>" placeholder="<?php esc_attr_e( 'Quote source' ); ?>" class="widefat" />
     17        <label for="_wp_format_quote_source"><?php _e( 'Quote source' ); ?></label>
     18        <input type="text" name="_wp_format_quote_source" value="<?php echo esc_attr( $format_meta['quote_source'] ); ?>" class="widefat" />
    1919    </div>
    2020
     
    3939            </a>
    4040        </div>
    41         <label for="_wp_format_image" class="screen-reader-text"><?php _e( 'Attachment ID' ); ?>:</label>
     41        <label for="_wp_format_image" class="screen-reader-text"><?php _e( 'Attachment ID' ); ?></label>
    4242        <input id="wp_format_image" type="hidden" name="_wp_format_image" value="<?php echo esc_attr( $format_meta['image'] ); ?>" placeholder="<?php esc_attr_e( 'Attachment ID' ); ?>" class="widefat" />
    4343    </div>
    4444
    4545    <div class="field wp-format-link wp-format-quote wp-format-image">
    46         <label for="_wp_format_url" class="screen-reader-text"><?php _e( 'Link URL' ); ?>:</label>
    47         <input type="text" name="_wp_format_url" value="<?php echo esc_url( $format_meta['url'] ); ?>" placeholder="<?php esc_attr_e( 'Link URL' ); ?>" class="widefat" />
     46        <label for="_wp_format_url"><?php _e( 'Link URL' ); ?></label>
     47        <input type="text" name="_wp_format_url" value="<?php echo esc_url( $format_meta['url'] ); ?>" class="widefat" />
    4848    </div>
    4949
     
    7171        </div>
    7272        <?php endif ?>
    73         <label for="_wp_format_video" class="screen-reader-text"><?php _e( 'Video embed code or URL' ); ?>:</label>
    74         <textarea id="wp_format_video" type="text" name="_wp_format_video" placeholder="<?php esc_attr_e( 'Video embed code or URL' ); ?>" class="widefat"><?php esc_html_e( $format_meta['video'] ); ?></textarea>
     73        <label for="_wp_format_video"><?php _e( 'Video embed code or URL' ); ?></label>
     74        <textarea id="wp_format_video" type="text" name="_wp_format_video" class="widefat"><?php esc_html_e( $format_meta['video'] ); ?></textarea>
    7575        <div data-format="video" class="wp-format-media-holder hide-if-no-js<?php if ( ! $image ) echo ' empty'; ?>">
    7676            <a href="#" class="wp-format-media-select"
     
    105105        </div>
    106106        <?php endif ?>
    107         <label for="_wp_format_audio" class="screen-reader-text"><?php _e( 'Audio embed code or URL' ); ?>:</label>
    108         <textarea id="wp_format_audio" name="_wp_format_audio" placeholder="<?php esc_attr_e( 'Audio embed code or URL' ); ?>" class="widefat"><?php esc_html_e( $format_meta['audio'] );
     107        <label for="_wp_format_audio"><?php _e( 'Audio embed code or URL' ); ?></label>
     108        <textarea id="wp_format_audio" name="_wp_format_audio" class="widefat"><?php esc_html_e( $format_meta['audio'] );
    109109?></textarea>
    110110        <div data-format="audio" class="wp-format-media-holder hide-if-no-js<?php if ( empty( $format_meta['audio'] ) ) echo ' empty'; ?>">
Note: See TracChangeset for help on using the changeset viewer.