WordPress.org

Make WordPress Core

Changeset 22444


Ignore:
Timestamp:
11/07/12 21:41:31 (2 years ago)
Author:
nacin
Message:

Put the label outside the span to ensure margins when the text wraps. props waclawjacek. fixes #19254.

File:
1 edited

Legend:

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

    r22433 r22444  
    19411941        <tr class="image-only"> 
    19421942            <th valign="top" scope="row" class="label"> 
    1943                 <span class="alignleft"><label for="caption">' . __('Image Caption') . '</label></span> 
     1943                <label for="caption"><span class="alignleft">' . __('Image Caption') . '</span></label> 
    19441944            </th> 
    19451945            <td class="field"><textarea id="caption" name="caption"></textarea></td> 
     
    19661966        <tr> 
    19671967            <th valign="top" scope="row" class="label" style="width:130px;"> 
    1968                 <span class="alignleft"><label for="src">' . __('URL') . '</label></span> 
     1968                <label for="src"><span class="alignleft">' . __('URL') . '</span></label> 
    19691969                <span class="alignright"><abbr id="status_img" title="required" class="required">*</abbr></span> 
    19701970            </th> 
     
    19741974        <tr> 
    19751975            <th valign="top" scope="row" class="label"> 
    1976                 <span class="alignleft"><label for="title">' . __('Title') . '</label></span> 
     1976                <label for="title"><span class="alignleft">' . __('Title') . '</span></label> 
    19771977                <span class="alignright"><abbr title="required" class="required">*</abbr></span> 
    19781978            </th> 
     
    19841984        <tr class="image-only"> 
    19851985            <th valign="top" scope="row" class="label"> 
    1986                 <span class="alignleft"><label for="alt">' . __('Alternative Text') . '</label></span> 
     1986                <label for="alt"><span class="alignleft">' . __('Alternative Text') . '</span></label> 
    19871987            </th> 
    19881988            <td class="field"><input id="alt" name="alt" value="" type="text" aria-required="true" /> 
     
    20062006        <tr class="image-only"> 
    20072007            <th valign="top" scope="row" class="label"> 
    2008                 <span class="alignleft"><label for="url">' . __('Link Image To:') . '</label></span> 
     2008                <label for="url"><span class="alignleft">' . __('Link Image To:') . '</span></label> 
    20092009            </th> 
    20102010            <td class="field"><input id="url" name="url" value="" type="text" /><br /> 
Note: See TracChangeset for help on using the changeset viewer.