Link directly to a tab fails in WP 4.5 update
-
You used to be able to have a link to a page which displayed a certain tab directly.
e.g. xyz.com#this-tab
This got broken when the good people at WP upgraded to 4.5. They included the latest version of jQuery (their usual policy) which turns out the misguided people who run that decided to fix a “bug” that allowed you to pass parameters not in quotes. By fixing this and enforcing stricter adherence to the line of the law they must have broken millions of websites. I mean. Come on. What on earth were they thinking? They certainly didn’t make an even half intelligent call on the implications of what this would do in practice. Maybe they didn’t realise that people use plugins and code that ISN’T under their full control, so saying it’s the responsibility of the developers to fix just passes the buck and leaves many people stranded.
For a FIX to this in OLEVMEDIA plugin for WordPress 4.5 (which hasn’t caught up with this update yet) edit:
wp-content\plugins\olevmedia-shortcodes\assets\js\shortcodes.js
Near Line 151
jQuery(this).find(‘.omsc-tabs-control a[href$=#’+hash+’]’).parent().addClass(‘omsc-active’);and make it
jQuery(this).find(‘.omsc-tabs-control a[href$=”#’+hash+'”]’).parent().addClass(‘omsc-active’);
So that puts ” around the string passed to jQueryHaving to fix 3rd party plugins yourself is not nice and I hope OLEVMEDIA are able to update soon. BUT the fault for this lies at the feet of the jQuery folks. I hope they learn their lesson from this and understand more how their incredible, amazing, enabling, generous work is used in real life and don’t trip up again.
- The topic ‘Link directly to a tab fails in WP 4.5 update’ is closed to new replies.