kallookoo / wp-color-picker-alpha

Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
GNU General Public License v2.0
131 stars 88 forks source link

Add a custom flag to prevent re-init of the alpha colorpicker. Fixes #13 #15

Closed jtsternberg closed 6 years ago

jtsternberg commented 6 years ago

If this script is enqueued multiple times (e.g. by different WP plugins), then it will cause issues, documented in #13. By setting and checking a flag, we can prevent multiple initiations.

jtsternberg commented 6 years ago

Obviously the minified dist script will need to be regenerated, and version bumped, etc.

jtsternberg commented 6 years ago

Also, as a heads up, the version in the pull request is now in CMB2 core. Thank you for your work on this library. https://github.com/CMB2/CMB2/compare/4b53f2a3e180f8761e433a281ccefb3b91440f89...784cf92049405c8e704e5ec2c5531f0adfe62941