.js issue, added to all pages
-
Hi!
I noticed that I got “Are you sure”-messages when I clicked on links when I edited a page and found that your plugin add its javascript to all admin pages.
I fixed it on my site, but thought it would be nice to add it to the plugin in case other people have the same problem, or will have.
Row 65, in pagecommentsoffplease.php
Instead of
add_action('admin_print_scripts-settings_page_page_comments_off_please', array(&$this, 'register_admin_scripts'));
Write this to only load the javascript on the right option page
add_action('admin_print_scripts-settings_page_page_comments_off_please', array(&$this, 'register_admin_scripts'));
I also noted that row 273 to row 284 seem a bit wonky. The variable string doesn’t start with an ” and ENDIT; is added to after the “.
But, still, great plugin and thank you for taking the time to make it and update it ??
https://www.ads-software.com/plugins/page-comments-off-please/
- The topic ‘.js issue, added to all pages’ is closed to new replies.