WordPress.org

Make WordPress Core

Changeset 42192


Ignore:
Timestamp:
11/15/2017 06:59:58 PM (3 years ago)
Author:
westonruter
Message:

Editor: Disable wp_keep_scroll_position in IE11 since buggy; fix matches polyfill conflict with ME.js by doing runtime feature detection in context window.

Props westonruter, SergeyBiryukov, Clorith for testing.
See #41962, #42029.
Fixes #42553 for 4.9.

Location:
branches/4.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/edit-form-advanced.php

    r41829 r42192  
    640640        'wp_autoresize_on' => $_wp_editor_expand,
    641641        'add_unload_trigger' => false,
    642         'wp_keep_scroll_position' => true,
     642        'wp_keep_scroll_position' => ! $is_IE,
    643643    ),
    644644) ); ?>
  • branches/4.9/src/wp-includes/js/tinymce/tinymce.js

    r41604 r42192  
    1638716387
    1638816388  function (Arr, Option, Element, NodeTypes, Error, document) {
    16389     /*
    16390      * There's a lot of code here; the aim is to allow the browser to optimise constant comparisons,
    16391      * instead of doing object lookup feature detection on every call
    16392      */
    16393     var STANDARD = 0;
    16394     var MSSTANDARD = 1;
    16395     var WEBKITSTANDARD = 2;
    16396     var FIREFOXSTANDARD = 3;
    16397 
    16398     var selectorType = (function () {
    16399       var test = document.createElement('span');
    16400       // As of Chrome 34 / Safari 7.1 / FireFox 34, everyone except IE has the unprefixed function.
    16401       // Still check for the others, but do it last.
    16402       return test.matches !== undefined ? STANDARD :
    16403              test.msMatchesSelector !== undefined ? MSSTANDARD :
    16404              test.webkitMatchesSelector !== undefined ? WEBKITSTANDARD :
    16405              test.mozMatchesSelector !== undefined ? FIREFOXSTANDARD :
    16406              -1;
    16407     })();
    16408 
    16409 
    1641016389    var ELEMENT = NodeTypes.ELEMENT;
    1641116390    var DOCUMENT = NodeTypes.DOCUMENT;
     
    1641716396      // As of Chrome 34 / Safari 7.1 / FireFox 34, everyone except IE has the unprefixed function.
    1641816397      // Still check for the others, but do it last.
    16419       else if (selectorType === STANDARD) return elem.matches(selector);
    16420       else if (selectorType === MSSTANDARD) return elem.msMatchesSelector(selector);
    16421       else if (selectorType === WEBKITSTANDARD) return elem.webkitMatchesSelector(selector);
    16422       else if (selectorType === FIREFOXSTANDARD) return elem.mozMatchesSelector(selector);
     16398      else if (elem.matches !== undefined) return elem.matches(selector);
     16399      else if (elem.msMatchesSelector !== undefined) return elem.msMatchesSelector(selector);
     16400      else if (elem.webkitMatchesSelector !== undefined) return elem.webkitMatchesSelector(selector);
     16401      else if (elem.mozMatchesSelector !== undefined) return elem.mozMatchesSelector(selector);
    1642316402      else throw new Error('Browser lacks native selectors'); // unfortunately we can't throw this on startup :(
    1642416403    };
  • branches/4.9/src/wp-includes/version.php

    r42180 r42192  
    1919 * @global string $tinymce_version
    2020 */
    21 $tinymce_version = '4607-20170918';
     21$tinymce_version = '4607-20171115';
    2222
    2323/**
Note: See TracChangeset for help on using the changeset viewer.