WordPress.org

Make WordPress Core

Ticket #11569: media.php.validation.fix.patch

File media.php.validation.fix.patch, 1.2 KB (added by Simek, 8 years ago)
  • wp-admin/includes/media.php

     
    12771277                        continue;
    12781278                }
    12791279
    1280                 $required = $field['required'] ? '<abbr title="required" class="required">*</abbr>' : '';
     1280                $required = $field['required'] ? '<span class="alignright"><abbr title="required" class="required">*</abbr></span>' : '';
    12811281                $aria_required = $field['required'] ? " aria-required='true' " : '';
    12821282                $class  = $id;
    12831283                $class .= $field['required'] ? ' form-required' : '';
    12841284
    1285                 $item .= "\t\t<tr class='$class'>\n\t\t\t<th valign='top' scope='row' class='label'><label for='$name'><span class='alignleft'>{$field['label']}</span><span class='alignright'>$required</span><br class='clear' /></label></th>\n\t\t\t<td class='field'>";
     1285                $item .= "\t\t<tr class='$class'>\n\t\t\t<th valign='top' scope='row' class='label'><label for='$name'><span class='alignleft'>{$field['label']}</span>$required<br class='clear' /></label></th>\n\t\t\t<td class='field'>";
    12861286                if ( !empty($field[$field['input']]) )
    12871287                        $item .= $field[$field['input']];
    12881288                elseif ( $field['input'] == 'textarea' ) {