kirki
kirki copied to clipboard
The field-dependencies JS implementation doesn't work
Internally the previous implementation (via PHP) is used instead of the new field-dependencies module. This was working at some point, I have to see where/when it broke
https://github.com/aristath/kirki/commit/84c881ab7b01c8a541497810e52d389d621acf67 partially fixed the issue.
Now the JS implementation kicks in immediately so we don't have to wait for the ajax call in order to hide the control.
However, if we completely deprecate the PHP implementation, as soon as the ajax call is made, the control gets shown no matter what because it defaults to __return_true
.
No time to investigate today so I'll leave it the way it is now.
Will continue another day
Moving to the 3.1 milestone. The current implementation (a combo of PHP & JS) works. It's not perfect, but it works fine and there are no issues with it. This refactoring item can be taken care of after the release of 3.0