Make WordPress Core


Ignore:
Timestamp:
01/18/2019 07:50:19 PM (7 years ago)
Author:
azaozz
Message:

TinyMCE: retire wp-tinymce.php and remove pre-compression of wp-tinymce.js.

Fixes #45645.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/tinymce/wp-tinymce.php

    r43309 r44651  
    11<?php
     2/**
     3 * Not used in core since 5.1.
     4 * This is a back-compat for plugins that may be using this method of loading directly.
     5 */
     6
    27/**
    38 * Disable error reporting
     
    2934header( "Cache-Control: public, max-age=$expires_offset" );
    3035
    31 if ( isset( $_GET['c'] ) && 1 == $_GET['c'] && isset( $_SERVER['HTTP_ACCEPT_ENCODING'] )
    32     && false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) && ( $file = get_file( $basepath . '/wp-tinymce.js.gz' ) ) ) {
    33 
    34     header( 'Content-Encoding: gzip' );
     36if ( isset( $_GET['c'] ) && ( $file = get_file( $basepath . '/wp-tinymce.js' ) ) ) {
    3537    echo $file;
    3638} else {
    37     // Back compat. This file shouldn't be used if this condition can occur (as in, if gzip isn't accepted).
     39    // Even further back compat.
    3840    echo get_file( $basepath . '/tinymce.min.js' );
    3941    echo get_file( $basepath . '/plugins/compat3x/plugin.min.js' );
Note: See TracChangeset for help on using the changeset viewer.