Transposh jQuery patch for WordPress 5.5.x
-
I made the following patch based on the warning log of Enable jQuery Migrate Helper.
Now Transposh may work without jQuery Migrate!?Transposh uses the live method, which is obsolete in jQuery version 1.9.
/wp-content/plugins/transposh-translation-filter-for-wordpress/js/admin/contexthelp.js:
!function(l){l(“.tp_help”).live(“click”,function(e){e.preventDefault(),window.scrollTo(0,0),l(“#tab-link-“+jQuery(this).attr(“rel”)+” a”).trigger(“click”),l(“#contextual-help-link”).hasClass(“screen-meta-active”)||l(“#contextual-help-link”).trigger(“click”)})}(jQuery);
//# sourceMappingURL=contexthelp.js.map↓
!function(l){l(document).on(“click”,”.tp_help”,function(e){e.preventDefault(),window.scrollTo(0,0),l(“#tab-link-“+jQuery(this).attr(“rel”)+” a”).trigger(“click”),l(“#contextual-help-link”).hasClass(“screen-meta-active”)||l(“#contextual-help-link”).trigger(“click”)})}(jQuery);
//# sourceMappingURL=contexthelp.js.mapFor other plugin fixes, please refer to my blog below:
- The topic ‘Transposh jQuery patch for WordPress 5.5.x’ is closed to new replies.