diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 42584ee5c0..8a356ddb73 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1656,7 +1656,6 @@ function get_media_item( $attachment_id, $args = null ) { $required = $field['required'] ? '*' : ''; $required_attr = $field['required'] ? ' required' : ''; - $aria_required = $field['required'] ? " aria-required='true'" : ''; $class = $id; $class .= $field['required'] ? ' form-required' : ''; @@ -1669,9 +1668,9 @@ function get_media_item( $attachment_id, $args = null ) { $field['value'] = htmlspecialchars( $field['value'], ENT_QUOTES ); } // Post_excerpt is already escaped by sanitize_post() in get_attachment_fields_to_edit(). - $item .= "'; + $item .= "'; } else { - $item .= ""; + $item .= ""; } if ( ! empty( $field['helps'] ) ) { $item .= "
" . join( "
\n", array_unique( (array) $field['helps'] ) ) . '
'; @@ -1829,7 +1828,6 @@ function get_compat_media_markup( $attachment_id, $args = null ) { $readonly = ! $user_can_edit && ! empty( $field['taxonomy'] ) ? " readonly='readonly' " : ''; $required = $field['required'] ? '*' : ''; $required_attr = $field['required'] ? ' required' : ''; - $aria_required = $field['required'] ? " aria-required='true'" : ''; $class = 'compat-field-' . $id; $class .= $field['required'] ? ' form-required' : ''; @@ -1844,9 +1842,9 @@ function get_compat_media_markup( $attachment_id, $args = null ) { // sanitize_post() skips the post_content when user_can_richedit. $field['value'] = htmlspecialchars( $field['value'], ENT_QUOTES ); } - $item .= "'; + $item .= "'; } else { - $item .= ""; + $item .= ""; } if ( ! empty( $field['helps'] ) ) { $item .= "" . join( "
\n", array_unique( (array) $field['helps'] ) ) . '
'; @@ -2753,14 +2751,14 @@ function wp_media_insert_url_form( $default_view = 'image' ) { -' . __( 'Link text, e.g. “Ransom Demands (PDF)”' ) . '
' . __( 'Alt text for the image, e.g. “The Mona Lisa”' ) . '