Make WordPress Core


Ignore:
Timestamp:
09/09/2021 01:59:03 AM (3 years ago)
Author:
azaozz
Message:

Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases.

Props desrosj, davidbinda, azaozz.
Merges [51768] to the 5.8 branch.
Fixes #53762.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/class-wp-editor.php

    r51749 r51770  
    971971        window.wp = window.wp || {};
    972972        window.wp.editor = window.wp.editor || {};
    973         window.wp.oldEditor = window.wp.oldEditor || {};
    974 
    975         // Add getDefaultSettings() to both wp.editor and wp.oldEditor for back compat.
    976         // Use of wp.editor for "old editor" functionality should be deprecated.
    977         window.wp.editor.getDefaultSettings = window.wp.oldEditor.getDefaultSettings = function() {
     973        window.wp.editor.getDefaultSettings = function() {
    978974            return {
    979975                tinymce: <?php echo $settings; ?>,
Note: See TracChangeset for help on using the changeset viewer.