Make WordPress Core


Ignore:
Timestamp:
01/24/2014 07:05:15 PM (11 years ago)
Author:
azaozz
Message:

Remove all "valign" attributes from tables in wp-admin, props MikeHansenMe, Marventus. Fixes #22712.

File:
1 edited

Legend:

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

    r26908 r27029  
    13781378    <table class='slidetoggle describe $class'>
    13791379        <thead class='media-item-info' id='media-head-$post->ID'>
    1380         <tr valign='top'>
     1380        <tr>
    13811381            <td class='A1B1' id='thumbnail-head-$post->ID'>
    13821382            <p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a></p>
     
    14631463        $class .= $field['required'] ? ' form-required' : '';
    14641464
    1465         $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'>";
     1465        $item .= "\t\t<tr class='$class'>\n\t\t\t<th 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'>";
    14661466        if ( !empty( $field[ $field['input'] ] ) )
    14671467            $item .= $field[ $field['input'] ];
     
    16101610
    16111611        $item .= "\t\t<tr class='$class'>";
    1612         $item .= "\t\t\t<th valign='top' scope='row' class='label'><label for='$id_attr'><span class='alignleft'>{$field['label']}</span>$required<br class='clear' /></label>";
     1612        $item .= "\t\t\t<th scope='row' class='label'><label for='$id_attr'><span class='alignleft'>{$field['label']}</span>$required<br class='clear' /></label>";
    16131613        $item .= "</th>\n\t\t\t<td class='field'>";
    16141614
     
    24302430        $caption = '
    24312431        <tr class="image-only">
    2432             <th valign="top" scope="row" class="label">
     2432            <th scope="row" class="label">
    24332433                <label for="caption"><span class="alignleft">' . __('Image Caption') . '</span></label>
    24342434            </th>
     
    24552455    <table class="describe ' . $table_class . '"><tbody>
    24562456        <tr>
    2457             <th valign="top" scope="row" class="label" style="width:130px;">
     2457            <th scope="row" class="label" style="width:130px;">
    24582458                <label for="src"><span class="alignleft">' . __('URL') . '</span></label>
    24592459                <span class="alignright"><abbr id="status_img" title="required" class="required">*</abbr></span>
     
    24632463
    24642464        <tr>
    2465             <th valign="top" scope="row" class="label">
     2465            <th scope="row" class="label">
    24662466                <label for="title"><span class="alignleft">' . __('Title') . '</span></label>
    24672467                <span class="alignright"><abbr title="required" class="required">*</abbr></span>
     
    24732473
    24742474        <tr class="image-only">
    2475             <th valign="top" scope="row" class="label">
     2475            <th scope="row" class="label">
    24762476                <label for="alt"><span class="alignleft">' . __('Alternative Text') . '</span></label>
    24772477            </th>
     
    24812481        ' . $caption . '
    24822482        <tr class="align image-only">
    2483             <th valign="top" scope="row" class="label"><p><label for="align">' . __('Alignment') . '</label></p></th>
     2483            <th scope="row" class="label"><p><label for="align">' . __('Alignment') . '</label></p></th>
    24842484            <td class="field">
    24852485                <input name="align" id="align-none" value="none" onclick="addExtImage.align=\'align\'+this.value" type="radio"' . ($default_align == 'none' ? ' checked="checked"' : '').' />
     
    24952495
    24962496        <tr class="image-only">
    2497             <th valign="top" scope="row" class="label">
     2497            <th scope="row" class="label">
    24982498                <label for="url"><span class="alignleft">' . __('Link Image To:') . '</span></label>
    24992499            </th>
Note: See TracChangeset for help on using the changeset viewer.