- Timestamp:
- 07/02/2008 11:07:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-includes/js/tinymce/tiny_mce_config.php
r8151 r8242 52 52 53 53 // Set up init variables 54 $https = ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 55 56 $baseurl = get_option('siteurl') . '/wp-includes/js/tinymce'; 57 if ( $https ) $baseurl = str_replace('http://', 'https://', $baseurl); 54 $baseurl = includes_url('js/tinymce'); 58 55 59 56 $mce_css = $baseurl . '/wordpress.css'; 60 57 $mce_css = apply_filters('mce_css', $mce_css); 61 if ( $https ) $mce_css = str_replace('http://', 'https://', $mce_css);62 58 63 59 $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1 … … 110 106 foreach ( $mce_external_plugins as $name => $url ) { 111 107 112 if ( $https) $url = str_replace('http://', 'https://', $url);108 if ( is_ssl() ) $url = str_replace('http://', 'https://', $url); 113 109 114 110 $plugins[] = '-' . $name; … … 227 223 if ( $disk_cache ) { 228 224 229 $cacheKey = apply_filters('tiny_mce_version', '200806 18');225 $cacheKey = apply_filters('tiny_mce_version', '20080626'); 230 226 231 227 foreach ( $initArray as $v ) … … 274 270 $mce_options = rtrim( trim($mce_options), '\n\r,' ); 275 271 276 $content = 'var tinyMCEPreInit = { settings : { themes : "' . $theme . '", plugins : "' . $initArray['plugins'] . '", languages : "' . $language . '", debug : false }, base : "' . $baseurl . '", suffix : "", query : "ver=31 01" };';272 $content = 'var tinyMCEPreInit = { settings : { themes : "' . $theme . '", plugins : "' . $initArray['plugins'] . '", languages : "' . $language . '", debug : false }, base : "' . $baseurl . '", suffix : "", query : "ver=311" };'; 277 273 278 274 // Load patch
Note: See TracChangeset
for help on using the changeset viewer.