--- a/wp/wp-includes/js/tinymce/wp-tinymce.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/js/tinymce/wp-tinymce.php Tue Dec 15 13:49:49 2020 +0100
@@ -11,7 +11,7 @@
*/
error_reporting( 0 );
-$basepath = dirname( __FILE__ );
+$basepath = __DIR__;
function get_file( $path ) {
@@ -26,14 +26,15 @@
return @file_get_contents( $path );
}
-$expires_offset = 31536000; // 1 year
+$expires_offset = 31536000; // 1 year.
header( 'Content-Type: application/javascript; charset=UTF-8' );
-header( 'Vary: Accept-Encoding' ); // Handle proxies
+header( 'Vary: Accept-Encoding' ); // Handle proxies.
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' );
header( "Cache-Control: public, max-age=$expires_offset" );
-if ( isset( $_GET['c'] ) && ( $file = get_file( $basepath . '/wp-tinymce.js' ) ) ) {
+$file = get_file( $basepath . '/wp-tinymce.js' );
+if ( isset( $_GET['c'] ) && $file ) {
echo $file;
} else {
// Even further back compat.