CoreFiles by mySites.guru
wp-tinymce.php38 lines, 1,046 bytes, from wordpress-3.7.zip
Raw History Compare with 3.6.1
md5
bcc3817e0e12e9517033613edc097851
sha1
724dd56b0a1ab9a8fe1fbc646988d452ca7644f0
sha256
ca579421e41c9e3f2eb4fbbc6ca1316084c2374fb1134ee026f1d9e224f785cc
<?php
/**
 * Disable error reporting
 *
 * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
 */
error_reporting(0);

$basepath = dirname(__FILE__);

function get_file($path) {

	if ( function_exists('realpath') )
		$path = realpath($path);

	if ( ! $path || ! @is_file($path) )
		return false;

	return @file_get_contents($path);
}

$expires_offset = 31536000; // 1 year

header('Content-Type: application/x-javascript; charset=UTF-8');
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']) && 1 == $_GET['c'] && isset($_SERVER['HTTP_ACCEPT_ENCODING'])
	&& false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && ( $file = get_file($basepath . '/wp-tinymce.js.gz') ) ) {

	header('Content-Encoding: gzip');
	echo $file;
} else {
	echo get_file($basepath . '/tiny_mce.js');
	echo get_file($basepath . '/wp-tinymce-schema.js');
}
exit;

The same content is in 107 releases, WordPress 3.5 to 3.9-RC1. See them all, or every version of this file.