{"id":8802885,"date":"2017-02-14T10:47:55","date_gmt":"2017-02-14T10:47:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/double-javascript-injection\/"},"modified":"2017-02-14T10:47:55","modified_gmt":"2017-02-14T10:47:55","slug":"double-javascript-injection","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/double-javascript-injection\/","title":{"rendered":"Double JavaScript injection"},"content":{"rendered":"<p>Hi,<\/p>\n<p>the debug bar js is injected twice, one time in the main plugin code and another one in the debug_bar_js class. The second is wrong and does not declare the jquery dependency.<\/p>\n<p>See the line<\/p>\n<p>wp_enqueue_script( &#8216;debug-bar-js&#8217;&#8230;<\/p>\n<p>in the file <\/p>\n<p>class-debug-bar-js.php<\/p>\n<p>Thank you, Stefano Lissa.<\/p>\n","protected":false},"template":"","class_list":["post-8802885","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8802885","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\/8802885\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8802885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}