Make WordPress Core


Ignore:
Timestamp:
02/02/2020 04:13:25 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Editor: Remove back-compat stub for Classic Editor's old distraction-free writing mode.

The original script was deprecated in [30338] and removed in [32677].

Props Presskopp, ketuchetan.
Fixes #39448.

File:
1 edited

Legend:

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

    r47122 r47164  
    2626    private static $editor_buttons_css = true;
    2727    private static $drag_drop_upload   = false;
    28     private static $old_dfw_compat     = false;
    2928    private static $translation;
    3029    private static $tinymce_scripts_printed = false;
     
    5958     *     @type bool       $teeny             Whether to output the minimal editor config. Examples include
    6059     *                                         Press This and the Comment editor. Default false.
    61      *     @type bool       $dfw               Deprecated in 4.1. Since 4.3 used only to enqueue wp-fullscreen-stub.js
    62      *                                         for backward compatibility.
     60     *     @type bool       $dfw               Deprecated in 4.1. Unused.
    6361     *     @type bool|array $tinymce           Whether to load TinyMCE. Can be used to pass settings directly to
    6462     *                                         TinyMCE using an array. Default true.
     
    9896                'editor_class'        => '',
    9997                'teeny'               => false,
    100                 'dfw'                 => false,
    10198                '_content_editor_dfw' => false,
    10299                'tinymce'             => true,
     
    122119        if ( self::$this_quicktags ) {
    123120            self::$has_quicktags = true;
    124         }
    125 
    126         if ( $set['dfw'] ) {
    127             self::$old_dfw_compat = true;
    128121        }
    129122
     
    871864            wp_enqueue_script( 'wplink' );
    872865            wp_enqueue_script( 'jquery-ui-autocomplete' );
    873         }
    874 
    875         if ( self::$old_dfw_compat ) {
    876             wp_enqueue_script( 'wp-fullscreen-stub' );
    877866        }
    878867
Note: See TracChangeset for help on using the changeset viewer.