Make WordPress Core

Ticket #60187: post.js.diff

File post.js.diff, 799 bytes (added by dartiss, 19 months ago)
  • wp-admin/js/post.js

    diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js
    index eb577013d5ad..bba9c17358df 100644
    a b jQuery( function($) { 
    11731173                }
    11741174
    11751175                /**
    1176                  * When the dragging stopped make sure we return focus and do a sanity check on the height.
     1176                 * When the dragging stopped make sure we return focus and do a confidence check on the height.
    11771177                 */
    11781178                function endDrag() {
    11791179                        var height, toolbarHeight;
    jQuery( function($) { 
    11981198
    11991199                        $document.off( '.wp-editor-resize' );
    12001200
    1201                         // Sanity check: normalize height to stay within acceptable ranges.
     1201                        // Confidence check: normalize height to stay within acceptable ranges.
    12021202                        if ( height && height > 50 && height < 5000 ) {
    12031203                                setUserSetting( 'ed_size', height );
    12041204                        }