Releases: aucor/polylang-smart-language-select-disabler
Disable default language change select and code style
Changing site default language will probably cause some issues if you don't knows what you are doing. Disable the availability to do so, unless the user know what they are doing. Also, use WordPress coding standards to make contributing easier. Props to @timiwahalahti for changes in this release.
Minor fixes
- Fix occasinally appearing "headers already sent" PHP warning
- Fix valid composer.json license
Remove create_function usage and include license
- Replace create_function() with anonymous function props @ville6000
- Inluce GPL2 license
More stable select disable functionality
The HTML attribute "disabled" caused many problems. The disabling was changed so that the select is hidden with CSS and in its place, plain paragraph with current language is displayed. This is also better for a11y. Bugs with terms should be history.
Made this a "major" release because lot changes in the background and there is even a small change in the front-end (the disabled select). All filters etc will work as before.
Fix bug when adding a new term translation
Disabling the language select messes up creating new term translation. The translation wasn't linked to the original term because of the disabled attribute. Tried to remove the disabled attribute on submit but couldn't get it work for some reason with WordPress admin form. Removed the disabling for now on that view. Props to @tnottu
Fixed composer.json GPL line to be valid. Props to @onnimonni
Initial release
0.1.0 init