jQuery 3.x patch
-
Currently, when you select the jQuery version as “WordPress default” in the jQuery Migrate settings, Transposh’s translation edit mode does not work.
So, I tried to modify Transposh’s jQuery program from legacy 1.12.4 to jQuery 3.x as follows, but it doesn’t work. Maybe there’s a problem with the core of WordPress 5.6, but I’m not sure.
I would like to receive a professor from someone who has any other hints.If there is no patch for Transposh as it is, “jQuery Migrate” will be abolished in the release of WordPress 5.7 (jQuery 3.5.1), and Transposh may not work completely, so I would like to ask the author for support.
◇ transposh.js
c(“.”+r+”setdeflang”).click(function(){return c.ajax({url:t_jp.ajaxurl
↓
c(“.”+r+”setdeflang”).on(“click”,function(){return c.ajax({url:t_jp.ajaxurl◇ jquery.ui.menu.js
.bind → .on
.unbind → .offremoveAttr → ???
◇ 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.map◇ admin/languages.js
i(this).click(clickfunction)})}}),
↓
i(this).on(“click”,clickfunction)})}}),
etc.,◇ admin/contexthelp.js.map
$(‘.tp_help’).live(‘click’, function (event) {\n
↓
$(document).on(‘click’, ‘.tp_help’, function (event) {\nThe page I need help with: [log in to see the link]
- The topic ‘jQuery 3.x patch’ is closed to new replies.