Title: Issue with your code
Last modified: September 24, 2024

---

# Issue with your code

 *  Resolved [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/issue-with-your-code/)
 * Since 2.5.1 your code unconditionally loads a script on any admin call, see the
   end of
   [https://plugins.svn.wordpress.org/wpscreens/tags/2.5.2/admin/class-wp-screens-admin.php](https://plugins.svn.wordpress.org/wpscreens/tags/2.5.2/admin/class-wp-screens-admin.php)
   This breaks any plugin that uses wp admin ajax as it ouputs that script on ajax
   responses.Please use wp enqueue instead.Also loading jquery from a cdn is against
   wp plugin guidelines so you should use enqueue with a jquery dependency[https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#13-plugins-must-use-wordpress-default-libraries](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#13-plugins-must-use-wordpress-default-libraries)
 * > WordPress includes a number of useful libraries, such as jQuery, Atom Lib, 
   > SimplePie, PHPMailer, PHPass, and more. For security and stability reasons 
   > plugins may not include those libraries in their own code. Instead plugins 
   > must use the versions of those libraries packaged with WordPress.
 * [https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#8-plugins-may-not-send-executable-code-via-third-party-systems](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#8-plugins-may-not-send-executable-code-via-third-party-systems)
 * > Calling third party CDNs for reasons other than font inclusions; all non-service
   > related JavaScript and CSS must be included locally

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpscreens](https://wordpress.org/support/users/wpscreens/)
 * (@wpscreens)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-your-code/#post-18053729)
 * Hello Alan,
 * Last days development worked hard to fix the error. The new version should be
   working fine.
 * Erik from WPScreens.

Viewing 1 replies (of 1 total)

The topic ‘Issue with your code’ is closed to new replies.

 * ![](https://ps.w.org/wpscreens/assets/icon.svg?rev=2342113)
 * [WPScreens](https://wordpress.org/plugins/wpscreens/)
 * [Support Threads](https://wordpress.org/support/plugin/wpscreens/)
 * [Active Topics](https://wordpress.org/support/plugin/wpscreens/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpscreens/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpscreens/reviews/)

 * 1 reply
 * 4 participants
 * Last reply from: [wpscreens](https://wordpress.org/support/users/wpscreens/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/issue-with-your-code/#post-18053729)
 * Status: resolved