WordPress.org

Ready to get started?Download WordPress

Forums

CDN Sync Tool
Not excluding JS (3 posts)

  1. iraweissman
    Member
    Posted 2 years ago #

    I use WP Super Popup which apparently needs to have its JS loaded separately, or else the popup doesn't pop up. I'm trying to list the two JS files that load in the "exclude JS" box, but it's not working. I've tried to list the files several different ways, ie:
    http://www.domain.com/wp-content/plugins/...
    /wp-content/plugins...
    wp-content/plugins...
    /home/MYDOMAIN/public_html/wp-content...

    Nothing seems to work. What is the proper way to list files in that box? And assuming I've done that already, is there any way to get it to work?

    http://wordpress.org/extend/plugins/cdn-sync-tool/

  2. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    I'm looking into this

  3. alexvs
    Member
    Posted 2 years ago #

    It's problem in function 'doCombine' in file 'cdn-sync-tool\lib\Cst\JsCss.php'.

    You have a choice:
    1. Write in exclude list full path to file, like:
    http://your-domain.com/wp-content/themes/jcarusel/jcarusel.css

    2. Edit function 'doCombine' in file 'cdn-sync-tool\lib\Cst\JsCss.php':
    Change

    if (in_array($file, explode("\n",$filesConfig["exclude_js"])) ||
    in_array($file, explode("\n",$filesConfig["exclude_css"]))) {
    continue;
    }

    to

    if (in_array(basename($match[1]), explode("\n",$filesConfig["exclude_js"])) ||
    in_array(basename($match[1]), explode("\n",$filesConfig["exclude_css"]))) {
    continue;
    }

    then use only file name in exclude list (ex.: jcarusel.css)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic