Make WordPress Core


Ignore:
Timestamp:
04/06/2013 09:40:58 PM (13 years ago)
Author:
azaozz
Message:

Post formats: connect labels with fields, move the two css blocks dealing with formats next to each other, see #23938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post-formats.php

    r23918 r23926  
    1111    <div class="field wp-format-quote">
    1212        <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>
     13        <textarea id="_wp_format_quote" name="_wp_format_quote" class="widefat"><?php echo esc_textarea( $format_meta['quote'] ); ?></textarea>
    1414    </div>
    1515
    1616    <div class="field wp-format-quote">
    1717        <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" />
     18        <input type="text" id="_wp_format_quote_source" name="_wp_format_quote_source" value="<?php echo esc_attr( $format_meta['quote_source'] ); ?>" class="widefat" />
    1919    </div>
    2020
     
    4545    <div class="field wp-format-link wp-format-quote wp-format-image">
    4646        <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" />
     47        <input type="text" id="_wp_format_url" name="_wp_format_url" value="<?php echo esc_url( $format_meta['url'] ); ?>" class="widefat" />
    4848    </div>
    4949
     
    5151    $show_video_preview = ! empty( $format_meta['video'] );
    5252    ?>
    53     <div class="field wp-format-video<?php if ( $show_video_preview ) echo ' has-media-preview' ?>">
     53    <div class="field wp-format-video<?php if ( $show_video_preview ) echo ' has-media-preview'; ?>">
    5454        <?php if ( $show_video_preview ): ?>
    5555        <div id="video-preview" class="wp-format-media-preview">
     
    7070            ?>
    7171        </div>
    72         <?php endif ?>
     72        <?php endif; ?>
    7373        <label for="_wp_format_video"><?php _e( 'Video embed code or URL' ); ?></label>
    7474        <textarea id="wp_format_video" type="text" name="_wp_format_video" class="widefat"><?php esc_html_e( $format_meta['video'] ); ?></textarea>
     
    104104            ?>
    105105        </div>
    106         <?php endif ?>
     106        <?php endif; ?>
    107107        <label for="_wp_format_audio"><?php _e( 'Audio embed code or URL' ); ?></label>
    108108        <textarea id="wp_format_audio" name="_wp_format_audio" class="widefat"><?php esc_html_e( $format_meta['audio'] );
Note: See TracChangeset for help on using the changeset viewer.