Unnecessary files loading in front end..??

Issue #80 closed
Drew Angell repo owner created an issue

User reporting he sees these files being loaded in all pages of his site on the front end:

<link rel='stylesheet' id='paypal-ipnpublic-css'  href='http://magiversity.com/wp-content/plugins/paypal-ipn/public/css/paypal-ipn-for-wordpress-public.css?ver=1.0.8' type='text/css' media='all' />
<link rel='stylesheet' id='paypal-ipnpublicDataTablecss-css'  href='//cdn.datatables.net/1.10.7/css/jquery.dataTables.css?ver=1.0.8' type='text/css' media='all' />
<link rel='stylesheet' id='paypal-ipnpublicDataTable-css'  href='//cdn.datatables.net/responsive/1.0.6/css/dataTables.responsive.css?ver=1.0.8' type='text/css' media='all' />
<script type='text/javascript' src='http://magiversity.com/wp-content/plugins/paypal-ipn/admin/js/paypal-ipn-for-wordpress.js?ver=1.0.8'></script>
<script type='text/javascript' src='//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js?ver=1.0.8'></script>
<script type='text/javascript' src='//cdn.datatables.net/responsive/1.0.6/js/dataTables.responsive.js?ver=1.0.8'></script>
<script type='text/javascript' src='http://magiversity.com/wp-content/plugins/paypal-ipn/public/js/paypal-ipn-for-wordpress-public.js?ver=1.0.8'></script>

If these are admin only resources we need to add some logic so they don't load unless you're in the admin panel.

Comments (3)

  1. Log in to comment