WordPress.org

Make WordPress Core

Changeset 12582


Ignore:
Timestamp:
12/30/2009 08:19:34 AM (8 years ago)
Author:
azaozz
Message:

Remove unneeded empty span and add form closing tag in media.php, props Simek and hakre, fixes #11569

File:
1 edited

Legend:

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

    r12543 r12582  
    12921292        }
    12931293
    1294         $required      = $field['required'] ? '<abbr title="required" class="required">*</abbr>' : '';
     1294        $required      = $field['required'] ? '<span class="alignright"><abbr title="required" class="required">*</abbr></span>' : '';
    12951295        $aria_required = $field['required'] ? " aria-required='true' " : '';
    12961296        $class  = $id;
    12971297        $class .= $field['required'] ? ' form-required' : '';
    12981298
    1299         $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'>";
     1299        $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'>";
    13001300        if ( !empty( $field[ $field['input'] ] ) )
    13011301            $item .= $field[ $field['input'] ];
     
    15321532<input type="submit" class="button" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
    15331533</p>
     1534</form>
    15341535<?php
    15351536}
Note: See TracChangeset for help on using the changeset viewer.