Support » Plugin: WordPress Website Tools Plugin – AddThis » AddThisPlugin.php Syntax

  • Hi Friends , please fix the syntax of line 846 of the file \plugins\addthis\backend\AddThisPlugin.php.

    Wrong syntax :$script .= ' <script data-cfasync="false" type="text/javascript"'
    Ok syntax :$script .= ' <script data-cfasync="false" type="text/javascript" '

    Wrong HTML :
    <script data-cfasync="false" type="text/javascript"src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=wp-81a07af1af0264d84f62a18043307078" async="async"></script><style type="text/css">/** Mega Menu CSS: fs **/</style>

    Ok HTML :
    <script data-cfasync="false" type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=wp-81a07af1af0264d84f62a18043307078" async="async"></script><style type="text/css">/** Mega Menu CSS: fs **/</style>

    Bad HTML :
    <script data-cfasync="false" type="text/javascript"src="https://s7.addthis.com/js/300/addthis_widget.js#pubid=wp-81a07af1af0264d84f62a18043307078" async="async"></script><style type="text/css">/** Mega Menu CSS: fs **/</style>

    It is a space but this marks an error in HTML validation.

    Thanks !

    • This topic was modified 2 years, 1 month ago by loorlab.
    • This topic was modified 2 years, 1 month ago by loorlab.
    • This topic was modified 2 years, 1 month ago by loorlab.
  • The topic ‘AddThisPlugin.php Syntax’ is closed to new replies.