Make WordPress Core

Changeset 35493


Ignore:
Timestamp:
11/03/2015 04:01:11 PM (9 years ago)
Author:
afercia
Message:

Media: Improve form fields labels association in the Edit Media screen.

Fixes #34548.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r35439 r35493  
    27792779    ?>
    27802780
    2781     <label for="content"><strong><?php _e( 'Description' ); ?></strong><?php
     2781    <label for="attachment_content"><strong><?php _e( 'Description' ); ?></strong><?php
    27822782    if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
    27832783        echo ': ' . __( 'Displayed on attachment pages.' );
     
    28132813?>
    28142814    <div class="misc-pub-section misc-pub-attachment">
    2815             <label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
    2816             <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" value="<?php echo esc_attr($att_url); ?>" />
     2815        <label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
     2816        <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
    28172817    </div>
    28182818    <div class="misc-pub-section misc-pub-filename">
Note: See TracChangeset for help on using the changeset viewer.