WordPress.org

Ready to get started?Download WordPress

Forums

HeadNFoot
[resolved] Extra escape characters (6 posts)

  1. archedimes
    Member
    Posted 3 years ago #

    this plugin is adding escape characters to my script tags, breaking them. ie. text="" becomes text=\"\". I tried using " and of course that doesn't work. Kind of defeats the stated purpose of the plugin. Any ideas before I go looking elsewhere?

    http://wordpress.org/extend/plugins/wp-headfoot/

  2. archedimes
    Member
    Posted 3 years ago #

    I fixed the problem - just add stripslashes() to the content echo:
    HeadNfootActionsController.php lines 36,63
    change
    echo $data['footer'];
    to
    echo stripslashes($data['footer']);

  3. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the heads up. I slipped past the testing.
    This fix will be added to the next version.

  4. archedimes
    Member
    Posted 3 years ago #

    I just installed the upgrade and I saw that you did add it, unfortunately there was one you missed: in wp_footerAction which is at the bottom of that same file. Thanks for keeping it updated, and thanks for a great plugin - simple and does exactly what I need!

  5. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Doh.
    I think the last release should be the one.

    Thanks

  6. archedimes
    Member
    Posted 3 years ago #

    wow that update came a lot quicker than I expected, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic