https fix: wrong jquery inclusion and/or more fast inclusion – patch
-
A patch to file addons/page-forum.php to get jquery libs within WP and with correct https inclusion for the library, avoiding eventually jquery vers. conflicts and with more fast loading time. This is valid also for non https install.
You can download the archive and substitute the page-forum.php of your WP template folder, with the new one you download and you found in folder plugins/wp-w3all-phpbb-integration/addons/ that has been just patched.
If you have made common changes to your page-forum.php or whatever you have name it), you may choose to patch just in this way:
open you page-forum(or board or etc).php inside your active template folder, search for the following code (function):function wp_w3all_hook_jresizer() { $s = "<script type=\"text/javascript\" src=\"".plugins_url()."/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.min.js\"></script> <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js\"></script> "; echo $s; }just replace with:
function wp_w3all_hook_jresizer() { $s = "<script type=\"text/javascript\" src=\"".get_home_url()."/wp-includes/js/jquery/jquery.js\"></script> <script type=\"text/javascript\" src=\"".get_home_url()."/wp-includes/js/jquery/jquery-migrate.min.js\"></script> <script type=\"text/javascript\" src=\"".plugins_url()."/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.min.js\"></script> "; echo $s; }
The topic ‘https fix: wrong jquery inclusion and/or more fast inclusion – patch’ is closed to new replies.