What is the theme customizer ?
Customizer is a core main feature in all wordpress. Its been around since version 3.4, or since June 2012… Started 9 years ago.
Ok, I tested the customizer on a couple of sites, they behave properly. What makes you think this function could be the culprit ?
I put the plugin through hard tests. I was testing 500 plugins and themes over the past few weeks and for some reason that section of your code or some other part of your code intermittently made problems with the customizer. I tried for 5 hours yesterday to try and find a pattern and there was not a pattern besides when your plugin is active. Your plugin functions ok on a new fresh install and new database. But that’s not saying the code is bug free. I did find one strange pattern. If I rename the theme directories and reactivate, that seemed to help. I also copied a 100% bugfree theme into a directory that was causing the issue and the customizer disappeared again but there was zero connection to the bug and the directory. I had no other similar issue with the other 500 plugins/themes. So its possible there is a bug in your code, but maybe not.
I did a test and it seems that the functions between lines 109 and 153 are not needed anymore, WordPress automatically adds the metaboxes to the media GUI for all taxinomies.
I will remove them and post an update, then we will see…
Can you download https://github.com/aurelienpierre/wp-photographers-galleries/releases/tag/1.0.3 and report ? If that behaves well, I will push the change in WP extensions repository.
@akissz Can you check if the latest update fixed it ?