mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Make DFW content width match exactly the reported width from the theme, props helenyhou, fixes #18138
git-svn-id: http://svn.automattic.com/wordpress/trunk@18666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
020e620769
commit
b55485592b
@ -576,7 +576,7 @@ class WP_Editor {
|
|||||||
global $content_width, $post;
|
global $content_width, $post;
|
||||||
|
|
||||||
$width = isset($content_width) && 800 > $content_width ? $content_width : 800;
|
$width = isset($content_width) && 800 > $content_width ? $content_width : 800;
|
||||||
$width = $width + 10; // compensate for the padding
|
$width = $width + 22; // compensate for the padding and border
|
||||||
$dfw_width = get_user_setting( 'dfw_width', $width );
|
$dfw_width = get_user_setting( 'dfw_width', $width );
|
||||||
$save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
|
$save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user