• Resolved kcargile

    (@kcargile)


    Hi folks,

    I’m forcing SSL for the admin section of my WordPress site (via define('FORCE_SSL_ADMIN', true);).

    In this configuration, the plugin dialog is broken. It will load, however, the dialog hangs when attempting to insert a shortcode (either via new or existing link) in a post. The loading bar is displayed, but no content is added to the post and it is neccessary to reload the page to remove the popup.

    Upon further investigation, it appears that the TinyMCE Javascript is being blocked by the browser (I’m using Chrome latest) as mixed content.

    Looks like line 21 of ctt-dialog.php is the culprit:

    
    <script language="javascript" type="text/javascript" src="<?php echo get_option( 'siteurl' ) ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
    

    This will use HTTP versus HTTPS, assuming that’s what configured as the site URL in general options (which will normally be the case).

    Changing the same line to use a relative path fixed the issue for me:

    
    <script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
    

    Cheers,
    Kristopher

    • This topic was modified 7 years, 3 months ago by kcargile.
Viewing 1 replies (of 1 total)
  • Plugin Author clicktotweet

    (@clicktotweet)

    Kristopher,

    Sorry for the delay in responding. We’ve updated the plugin to reflect your suggested change. Version 2.0.6 should be available in a few minutes.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin broken when forcing SSL admin’ is closed to new replies.