WordPress.org

Make WordPress Core

Changeset 7675


Ignore:
Timestamp:
04/14/2008 08:34:31 PM (10 years ago)
Author:
ryan
Message:

Allow TinyMCE to work under SSL. Fixes #6544 for 2.5. Hat tip: blenjee, azaozz.

File:
1 edited

Legend:

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

    r7636 r7675  
    5050   
    5151$baseurl = get_option('siteurl') . '/wp-includes/js/tinymce';
    52 if ( $https ) str_replace('http://', 'https://', $baseurl);
     52if ( $https ) $baseurl = str_replace('http://', 'https://', $baseurl);
    5353
    5454$mce_css = $baseurl . '/wordpress.css';
    5555$mce_css = apply_filters('mce_css', $mce_css);
    56 if ( $https ) str_replace('http://', 'https://', $mce_css);
     56if ( $https ) $mce_css = str_replace('http://', 'https://', $mce_css);
    5757
    5858$mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1
     
    105105    foreach ( $mce_external_plugins as $name => $url ) {
    106106       
    107         if ( $https ) str_replace('http://', 'https://', $url);
     107        if ( $https ) $url = str_replace('http://', 'https://', $url);
    108108       
    109109        $plugins[] = '-' . $name;
Note: See TracChangeset for help on using the changeset viewer.