WordPress.org

Ready to get started?Download WordPress

Forums

CSS & JavaScript Toolbox
[resolved] Broken on SSL Admin (3 posts)

  1. Frederick D.
    Member
    Posted 1 year ago #

    For whatever reason, the plugin tries to load JS and CSS files on the Admin page from my site over HTTP when I'm using forced SSL on wp-admin. As a result, my browser is prohibiting execution of JavaScript, which somewhat breaks the page.

    I think WordPress has dynamic functions meant to avoid this kind of problem -- http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    Could you explore a fix?

    Thanks.

    http://wordpress.org/extend/plugins/css-javascript-toolbox/

  2. Frederick D.
    Member
    Posted 1 year ago #

    Actually, I fixed it. On line 56,

    Changing
    define('CJTOOLBOX_URL', WP_PLUGIN_URL . '/' . CJTOOLBOX_NAME );
    and the block immediately after it to

    define('CJTOOLBOX_URL', plugin_dir_url(__FILE__) );
    define('CJTOOLBOX_MEDIA_URL', CJTOOLBOX_URL . 'public/media');
    define('CJTOOLBOX_CSS_URL', CJTOOLBOX_URL . 'public/css');
    define('CJTOOLBOX_JS_URL', CJTOOLBOX_URL . 'public/js');

    seems to work.

  3. wipeoutmedia
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Frederick,

    I apologise for the delay in getting back to you, I have been very busy on a number of other projects.

    I thoroughly appreciate you taking the time to solve the issue yourself and then write down your findings and code fix on here. I will keep this issue in mind when I release the next version. Thanks very much. :)

    Regards,
    Damian

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags