WordPress.org

Make WordPress Core

Changeset 20247


Ignore:
Timestamp:
03/21/2012 10:48:36 PM (6 years ago)
Author:
azaozz
Message:

Don't use class="code" for the captions textareas as it resets RTL, see #18311

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r20236 r20247  
    36143614.media-item textarea#caption {
    36153615    min-height: 5em;
     3616    font-family: Consolas, Monaco, monospace;
    36163617}
    36173618
  • trunk/wp-admin/includes/media.php

    r20174 r20247  
    807807    $name = "attachments[{$edit_post->ID}][post_excerpt]";
    808808
    809     return '<textarea class="code" name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
     809    return '<textarea name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
    810810}
    811811
     
    19561956                <span class="alignleft"><label for="caption">' . __('Image Caption') . '</label></span>
    19571957            </th>
    1958             <td class="field"><textarea id="caption" class="code" name="caption"></textarea></td>
     1958            <td class="field"><textarea id="caption" name="caption"></textarea></td>
    19591959        </tr>
    19601960';
Note: See TracChangeset for help on using the changeset viewer.