Make WordPress Core

Changeset 47164


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.

Location:
trunk/src
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/deprecated/media-gallery.js

    r43347 r47164  
    22 * This file is used on media-upload.php which has been replaced by media-new.php and upload.php
    33 *
    4  * @deprecated  3.5.0
     4 * @deprecated 3.5.0
    55 * @output wp-admin/js/media-gallery.js
    66 */
  • trunk/src/wp-admin/includes/update-core.php

    r47122 r47164  
    790790    'wp-includes/js/wp-a11y.js',     // Moved to: wp-includes/js/dist/a11y.js
    791791    'wp-includes/js/wp-a11y.min.js', // Moved to: wp-includes/js/dist/a11y.min.js
     792    // 5.4
     793    'wp-admin/js/wp-fullscreen-stub.js',
     794    'wp-admin/js/wp-fullscreen-stub.min.js',
    792795);
    793796
  • 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
  • trunk/src/wp-includes/script-loader.php

    r47122 r47164  
    716716
    717717    $scripts->add( 'clipboard', "/wp-includes/js/clipboard$suffix.js", array(), false, 1 );
    718 
    719     // Back-compat for old DFW. To-do: remove at the end of 2016.
    720     $scripts->add( 'wp-fullscreen-stub', "/wp-admin/js/wp-fullscreen-stub$suffix.js", array(), false, 1 );
    721718
    722719    $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array( 'jquery' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.