Hello,
Using the latest WPLMS and Advanced Custom Fields, select2.min.js is conflicting with Advanced Custom Fields (ACF) post selection type and breaking javascript on our admin edit screen.
Here's how to reproduce:
- Install WPLMS.
- Install ACF Plugin.
- Create an ACF Custom Field Group, targeting the Unit or Course post type.
- Add a Custom Field using the Post Object type.
- Visit the edit post page where both the ACF Field and WPLMS Field editors co-exist. The Javascript on the page is broken.
I believe this is because ACF also includes the select 2 library.
The console error reads:
Error: No select2/compat/initSelection
/wp-content/plugins/vibe-customtypes/metaboxes/js/select2.min.js:1:1449