Make WordPress Core


Ignore:
Timestamp:
07/02/2008 11:07:56 PM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8151:8240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-includes/js/tinymce/tiny_mce_config.php

    r8151 r8242  
    5252
    5353// 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');
    5855
    5956$mce_css = $baseurl . '/wordpress.css';
    6057$mce_css = apply_filters('mce_css', $mce_css);
    61 if ( $https ) $mce_css = str_replace('http://', 'https://', $mce_css);
    6258
    6359$mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1
     
    110106    foreach ( $mce_external_plugins as $name => $url ) {
    111107       
    112         if ( $https ) $url = str_replace('http://', 'https://', $url);
     108        if ( is_ssl() ) $url = str_replace('http://', 'https://', $url);
    113109       
    114110        $plugins[] = '-' . $name;
     
    227223if ( $disk_cache ) {
    228224
    229     $cacheKey = apply_filters('tiny_mce_version', '20080618');
     225    $cacheKey = apply_filters('tiny_mce_version', '20080626');
    230226
    231227    foreach ( $initArray as $v )
     
    274270$mce_options = rtrim( trim($mce_options), '\n\r,' );
    275271
    276 $content = 'var tinyMCEPreInit = { settings : { themes : "' . $theme . '", plugins : "' . $initArray['plugins'] . '", languages : "' . $language . '", debug : false }, base : "' . $baseurl . '", suffix : "", query : "ver=3101" };';
     272$content = 'var tinyMCEPreInit = { settings : { themes : "' . $theme . '", plugins : "' . $initArray['plugins'] . '", languages : "' . $language . '", debug : false }, base : "' . $baseurl . '", suffix : "", query : "ver=311" };';
    277273
    278274// Load patch
Note: See TracChangeset for help on using the changeset viewer.