Make WordPress Core

Changeset 18666


Ignore:
Timestamp:
09/13/2011 08:03:28 PM (13 years ago)
Author:
azaozz
Message:

Make DFW content width match exactly the reported width from the theme, props helenyhou, fixes #18138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r18572 r18666  
    577577
    578578        $width = isset($content_width) && 800 > $content_width ? $content_width : 800;
    579         $width = $width + 10; // compensate for the padding
     579        $width = $width + 22; // compensate for the padding and border
    580580        $dfw_width = get_user_setting( 'dfw_width', $width );
    581581        $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
Note: See TracChangeset for help on using the changeset viewer.