{"id":10029319,"date":"2018-03-01T18:49:32","date_gmt":"2018-03-01T18:49:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-php-warning-notices\/"},"modified":"2018-03-01T18:49:45","modified_gmt":"2018-03-01T18:49:45","slug":"plugin-php-warning-notices","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-php-warning-notices\/","title":{"rendered":"Plugin PHP Warning Notices"},"content":{"rendered":"<p>The plugin is outputting two PHP warning notices with <code>WP_DEBUG<\/code> set to <code>true<\/code>. These are:<\/p>\n<p><code>wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)<\/code><\/p>\n<p><code>wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)<\/code><\/p>\n<p>This is caused because scripts styles in the <code>admin\/menu.php<\/code> file are enqueued without being hooked into one of WordPress&#8217; actions. They are not inside a function and enqueued but just called straight from that file.<\/p>\n<p>Is there any plans to fix this please?<\/p>\n","protected":false},"template":"","class_list":["post-10029319","topic","type-topic","status-publish","hentry","topic-tag-enqueue"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10029319","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10029319\/revisions"}],"predecessor-version":[{"id":10029320,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10029319\/revisions\/10029320"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10029319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}