javascript not properly enqueued
-
Hi, great plugin.
I found that the call for the javascript has not been properly enqueued and causes conflicts with other plugins.
So I made some changes to the plugin and now it works fine. Wanted to share those changes with you, so you can implement them (and show that the plugin is still in active development, hahaha).
change function butc_script() into:
function butc_script() { if (!isset($_GET['page']) || !$_GET['page'] == "bind-user.php") return; wp_enqueue_script('bind-user.js'); }
Then change the add_action to that function into:
add_action('init', 'butc_script');
One more thing:
I was trying to bind multiple taxonomies to a user as I would like to bind a category as well as a custom taxonomy to a user. As it turns out, your plugin only remembers the last input. Would it be possible to change the plugin so it does the trick for more than one taxonomies?
- The topic ‘javascript not properly enqueued’ is closed to new replies.