• Resolved Angel Hess

    (@akissz)


    There seems to be a bug in function add_media_categories between lines 115 and 139 in file photographers-galleries.php
    The bug disables or removes all theme customizer html/php so the customizer is not visible.
    Are you able to reproduce this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author aurelienpierre

    (@aurelienpierre)

    What is the theme customizer ?

    Thread Starter Angel Hess

    (@akissz)

    Customizer is a core main feature in all wordpress. Its been around since version 3.4, or since June 2012… Started 9 years ago.

    Plugin Author aurelienpierre

    (@aurelienpierre)

    Ok, I tested the customizer on a couple of sites, they behave properly. What makes you think this function could be the culprit ?

    Thread Starter Angel Hess

    (@akissz)

    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.

    Plugin Author aurelienpierre

    (@aurelienpierre)

    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…

    Plugin Author aurelienpierre

    (@aurelienpierre)

    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.

    Plugin Author aurelienpierre

    (@aurelienpierre)

    @akissz Can you check if the latest update fixed it ?

    Plugin Author aurelienpierre

    (@aurelienpierre)

    Dead topic, no answer.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bug in php function’ is closed to new replies.