Error after WordPress 6.2 update
-
After WordPress 6.2 update, it is not possible to add or edit fields.
I attach error messages in console after pressing the “Add Filed” buttonUncaught TypeError: Cannot read properties of undefined (reading 'replace') at copy-shortcode-min.js?ver=3.15.3:1:711 at o (acf.min.js?ver=6.1.3:1:1405) at Object.doAction (acf.min.js?ver=6.1.3:1:575) at n.doAction (acf.min.js?ver=6.1.3:1:18989) at acf.Model.addField (acf-field-group.min.js?ver=6.1.3:1:24394) at acf.Model.onClickAdd (acf-field-group.min.js?ver=6.1.3:1:23875) at acf.Model.<anonymous> (acf.min.js?ver=6.1.3:1:4733) at HTMLAnchorElement.i (jquery.min.js?ver=3.6.3:2:89049) at HTMLDocument.dispatch (jquery.min.js?ver=3.6.3:2:43184) at y.handle (jquery.min.js?ver=3.6.3:2:41168)
!function(e) { e(document).on("click", ".copy-shortcode", (function(o) { var c = "[" + e(this).data("prefix") + "=" + e(this).data("value") + "]"; navigator.clipboard.writeText(c); var t = e(this).html(); e(this).addClass("copied-text").html(t.replace(acf.__("Copy Code"), acf.__("Code Copied"))).css({ "background-color": "#4BB543", color: "#fff" }), setTimeout((function() { e("body").find(".copied-text").removeClass("copied-text").html(t.replace(acf.__("Code Copied"), acf.__("Copy Code"))).css({ "background-color": "#fff", color: "#000" }) } ), 1e3) } )), acf.addAction("add_field_object", (function(e) { var o = e.get("key").replace("field_", "") , c = e.$el.find(".copy-shortcode"); c.attr("data-value", o), c.siblings("code").html(c.siblings("code").html().replace(/acfcloneindex/g, o)) } ), 12) }(jQuery);
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Error after WordPress 6.2 update’ is closed to new replies.