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

Fixes #34548.
Built from https://develop.svn.wordpress.org/trunk@35493


git-svn-id: http://core.svn.wordpress.org/trunk@35457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2015-11-03 16:02:25 +00:00
parent d7485cf10b
commit 862cf19772
2 changed files with 4 additions and 4 deletions

View File

@ -2778,7 +2778,7 @@ function edit_form_image_editor( $post ) {
);
?>
<label for="content"><strong><?php _e( 'Description' ); ?></strong><?php
<label for="attachment_content"><strong><?php _e( 'Description' ); ?></strong><?php
if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
echo ': ' . __( 'Displayed on attachment pages.' );
} ?></label>
@ -2812,8 +2812,8 @@ function attachment_submitbox_metadata() {
$att_url = wp_get_attachment_url( $post->ID );
?>
<div class="misc-pub-section misc-pub-attachment">
<label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
<input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" value="<?php echo esc_attr($att_url); ?>" />
<label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
<input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" id="attachment_url" value="<?php echo esc_attr( $att_url ); ?>" />
</div>
<div class="misc-pub-section misc-pub-filename">
<?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta2-35492';
$wp_version = '4.4-beta2-35493';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.