Ticket #6544: 6544.2.diff
File 6544.2.diff, 1.0 KB (added by , 17 years ago) |
---|
-
tiny_mce_config.php
49 49 $https = ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 50 50 51 51 $baseurl = get_option('siteurl') . '/wp-includes/js/tinymce'; 52 if ( $https ) str_replace('http://', 'https://', $baseurl);52 if ( $https ) $baseurl = str_replace('http://', 'https://', $baseurl); 53 53 54 54 $mce_css = $baseurl . '/wordpress.css'; 55 55 $mce_css = apply_filters('mce_css', $mce_css); 56 if ( $https ) str_replace('http://', 'https://', $mce_css);56 if ( $https ) $mce_css = str_replace('http://', 'https://', $mce_css); 57 57 58 58 $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1 59 59 … … 104 104 105 105 foreach ( $mce_external_plugins as $name => $url ) { 106 106 107 if ( $https ) str_replace('http://', 'https://', $url);107 if ( $https ) $url = str_replace('http://', 'https://', $url); 108 108 109 109 $plugins[] = '-' . $name; 110 110