You are using a fix for TheThe Fly’s Accordions and Tabs plugin

In this quick article I discuss moving from TheThe Tabs and Accordions to Squelch Tabs and Accordions Shortcodes plugin. Moving should prove relatively painless as the plugin is designed to be compatible with TheThe Tabs and Accordions, but if you find any issues please do get in touch via the plugin page on WordPress.org. One slight hiccup you might encounter is with the fix I provided a while back for keeping TheThe Tabs and Accordions running:

TheThe Fly’s Tabs and Accordions Fix: TheThe Fix

If you’ve followed my advice in the past to create a temporary fix for TheThe Fly’s TheThe Tabs and Accordions plugin, then you will have some code in your functions.php file which will fix your website onto jQuery 1.8.3. This fix was never intended to be a long term solution and, with the release of Squelch Tabs and Accordions Shortcodes, is no longer required. If you receive the following message:

Squelch Tabs and Accordions Shortcodes has detected that you are using a fix for TheThe Fly’s Accordions and Tabs plugin that was made available by Squelch some time ago. The fix in question is NOT intended as a long-term solution and should be removed as soon as possible. By using Squelch Tabs and Accordions you do NOT need the fix. Please see this article for instructions on how to remove the fix from your website.

Then you still have the fix active in your code. You need to go into your functions.php file and find the offending code:

[raw]function thethe_fix() {
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https:" : "http:";

wp_deregister_script(‘jquery’);
wp_enqueue_script(“jquery”, $protocol.”//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”, array(‘json2’), ‘1.8.3’);
}
if (!is_admin() && function_exists( ‘TheTheTS_head_scripts’ )) add_action( ‘wp_print_scripts’, ‘thethe_fix’, 20 );[/raw]

Simply comment it out or delete it from the file altogether. On removing the code the error message will disappear. Your site will now start pulling in a newer version of jQuery UI and so will benefit from all the latest and greatest benefits of the newer versions of jQuery UI.

About Matt Lowe

Matt Lowe is a WordPress web designer / developer based in Newbury, Berkshire. After 8 years of doing the nine-to-five for other companies and watching them make the same mistakes over and over he set out in business on his own, forming Squelch Design to help businesses get online and make money.

Leave a Reply

Your email address will not be published. Required fields are marked *