{"id":15705544,"date":"2022-06-03T09:23:36","date_gmt":"2022-06-03T09:23:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/recaptcha-script-enqueue-issue\/"},"modified":"2022-06-03T09:23:36","modified_gmt":"2022-06-03T09:23:36","slug":"recaptcha-script-enqueue-issue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/recaptcha-script-enqueue-issue\/","title":{"rendered":"Recaptcha script enqueue issue"},"content":{"rendered":"<p>Hello,<br \/>\nI managed to find small issue with reCaptcha Enqueues. I don&#8217;t know if it&#8217;s just on my site or if it happens on every page. But the thing is scripts are not replaced. Mainly it is about:<\/p>\n<blockquote><p>remove_action( &#8216;wp_enqueue_scripts&#8217;, &#8216;wpcf7_recaptcha_enqueue_scripts&#8217;, 20 );<\/p><\/blockquote>\n<p>Line 23 file recaptcha-v2.php<\/p>\n<p>The thing is Contact Form 7&#8217;s action is not with 20 priority. It&#8217;s with 10. So it should be replaced to:<\/p>\n<blockquote><p>remove_action( &#8216;wp_enqueue_scripts&#8217;, &#8216;wpcf7_recaptcha_enqueue_scripts&#8217;, 10 );<\/p><\/blockquote>\n<p>But as I said earlier it happened on my site. So I&#8217;m not 100% sure that this issue might happend on other sites, but i thought that you might have a look on this.<\/p>\n<p>Kind regards,<br \/>\nMateusz<\/p>\n","protected":false},"template":"","class_list":["post-15705544","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15705544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15705544\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15705544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}