• Resolved WP Masters

    (@wpmasterscom)


    Hi. In file social-warfare/lib/frontend-output/SWP_Script.php:189 you have code that breaks up the script.

    So instead of var swp_ajax_url = "https://domain.com/wp-admin/admin-ajax.php"; var swp_post_id = "1000"; it goes var swp_ajax_url = "https://domain.com/wp-admin/admin-ajax.php"; var swp_post_id = "1000";

    This leads to JS Parse syntax error and breaks that completely.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WarfarePlugins

    (@warfareplugins)

    Thank you for bringing this to our attention. We will get his on the GIT board and looked at ASAP.

    Plugin Author WarfarePlugins

    (@warfareplugins)

    This has been fixed in the most recent version. You might need to manually update depending on the version number you have. Please manually update and let us know it is fixed please.
    Thank you

    Hi with version 4.4.0, the problem still occurs.

    Uncaught SyntaxError: Unexpected token ';'

    This is a part of the code shown in the html page, which is misinterpreted:

    /*.....*/
    if (links[i].getAttribute("rel") === "canonical") { canonical = links[i].getAttribute("href")}}; canonical = canonical.replace("?sfr=1", "");top.location = canonical; console.log(canonical);};var swpFloatBeforeContent = false;/*****/
    Plugin Author WarfarePlugins

    (@warfareplugins)

    Hi @vincent06 I am sorry, I misspoke. This is fixed in 4.4.1 which is being released later today. Thanks for the bug report and feedback.
    Do you know we also have a GIT repo where you can fork and share your ideas and findings? https://github.com/warfare-plugins/social-warfare

    Plugin Author WarfarePlugins

    (@warfareplugins)

    hi @wpmasterscom this has been fixed and the new version has been released

    thank you for your support and feedback

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong usage of wp_kses(), errors with JS in footer_output’ is closed to new replies.