WordPress.org

Ready to get started?Download WordPress

Forums

Spam Free WordPress
[resolved] W3 Total Cache and filemtime (2 posts)

  1. Steve Truman
    Member
    Posted 1 year ago #

    Hi Scott,

    Sorry about posting this here - but Spam free Word{Press don't like code in comments - would not let me post.

    By the way tremendous plugin - the best in fact. Nothing better. Use it on all my clients sites - kills spam dead as. Actually don't know why you give it away - I'd happily pay an annual sub to have you maintain it.

    Anyway upgrade 1.7.6 and 1.7.7 don't work on any site of mine that has W3 Total cache - between the upgraded plugin and W3 they add code to the end of the javascript and it can't load the password.

    example
    /wp-content/plugins/spam-free-wordpress/js/sfw-click-pwd-button.js

    loads the password fine

    But between the upgrade plugin and W3 Total this is what gets added and the js can't load.

    wp-content/plugins/spam-free-wordpress/js/sfw-click-pwd-button.js&ver=3.4.1?cda6c1

    We have edited the plugin and it works fine with W3 Total ex

    $js_path =  SFW_URL . 'js/sfw-click-pwd-button.js?' . filemtime( SFW_PATH . 'js/sfw-click-pwd-button.js' );
    to
    $js_path =  SFW_URL . 'js/sfw-click-pwd-button.js';

    Please don't use filemtime for wp_enqueue_script

    anyway - keep up the great work and hope that helps.

    Thanks - Steve a3rev

    http://wordpress.org/extend/plugins/spam-free-wordpress/

  2. Todd Lahman
    Member
    Plugin Author

    Posted 1 year ago #

    I appreciate your observations Steve. I have made this change to 1.7.8. The URL appends the plugin version to the end in 1.7.8 rather than using the file time, which I don't believe will break in W3TC, but if it does let me know, and I'll remove the version altogether.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic