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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2012-03-21 22:48:36 +00:00
parent 6f9f33e399
commit 3015057d58
2 changed files with 3 additions and 2 deletions

View File

@ -3613,6 +3613,7 @@ abbr.required {
.media-item .post_content textarea,
.media-item textarea#caption {
min-height: 5em;
font-family: Consolas, Monaco, monospace;
}
/*------------------------------------------------------------------------------

View File

@ -806,7 +806,7 @@ function wp_caption_input_textarea($edit_post) {
// post data is already escaped
$name = "attachments[{$edit_post->ID}][post_excerpt]";
return '<textarea class="code" name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
return '<textarea name="' . $name . '" id="' . $name . '">' . $edit_post->post_excerpt . '</textarea>';
}
/**
@ -1955,7 +1955,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) {
<th valign="top" scope="row" class="label">
<span class="alignleft"><label for="caption">' . __('Image Caption') . '</label></span>
</th>
<td class="field"><textarea id="caption" class="code" name="caption"></textarea></td>
<td class="field"><textarea id="caption" name="caption"></textarea></td>
</tr>
';
} else {