From 59f69e6ea324eb830ae68db82109e925655ac01c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 13 Sep 2011 20:03:28 +0000 Subject: [PATCH] Make DFW content width match exactly the reported width from the theme, props helenyhou, fixes #18138 git-svn-id: https://develop.svn.wordpress.org/trunk@18666 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 15f188827a..834c302428 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -576,7 +576,7 @@ class WP_Editor { global $content_width, $post; $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 ); $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save'); ?>