Changeset 44651 for trunk/src/js/_enqueues/vendor/tinymce/wp-tinymce.php
- Timestamp:
- 01/18/2019 07:50:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/tinymce/wp-tinymce.php
r43309 r44651 1 1 <?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 2 7 /** 3 8 * Disable error reporting … … 29 34 header( "Cache-Control: public, max-age=$expires_offset" ); 30 35 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' ); 36 if ( isset( $_GET['c'] ) && ( $file = get_file( $basepath . '/wp-tinymce.js' ) ) ) { 35 37 echo $file; 36 38 } 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. 38 40 echo get_file( $basepath . '/tinymce.min.js' ); 39 41 echo get_file( $basepath . '/plugins/compat3x/plugin.min.js' );
Note: See TracChangeset
for help on using the changeset viewer.