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:
parent
6f9f33e399
commit
3015057d58
|
@ -3613,6 +3613,7 @@ abbr.required {
|
||||||
.media-item .post_content textarea,
|
.media-item .post_content textarea,
|
||||||
.media-item textarea#caption {
|
.media-item textarea#caption {
|
||||||
min-height: 5em;
|
min-height: 5em;
|
||||||
|
font-family: Consolas, Monaco, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
|
|
|
@ -806,7 +806,7 @@ function wp_caption_input_textarea($edit_post) {
|
||||||
// post data is already escaped
|
// post data is already escaped
|
||||||
$name = "attachments[{$edit_post->ID}][post_excerpt]";
|
$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">
|
<th valign="top" scope="row" class="label">
|
||||||
<span class="alignleft"><label for="caption">' . __('Image Caption') . '</label></span>
|
<span class="alignleft"><label for="caption">' . __('Image Caption') . '</label></span>
|
||||||
</th>
|
</th>
|
||||||
<td class="field"><textarea id="caption" class="code" name="caption"></textarea></td>
|
<td class="field"><textarea id="caption" name="caption"></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
';
|
';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue